Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » AGUI

This thread is locked; no one can reply to it. rss feed Print
AGUI
Michael Branin
Member #15,864
January 2015

I am using MSVC 2013 and I have built AGUI 0.2 best I can tell. In my build folder I have

agui.dll
agui.lib
agui_allegro5.lib

But I am not sure what I need to include to use AGUI. There is no readme that I can find that tells me what needs to go where to use AGUI? anyone with experience using AGUI willing to talk me through the process?

jmasterx
Member #11,410
October 2009

Hi!

I would recommend you use the master branch straight from GIT. It is stable and has improvements.

Make sure you build agui and agui_allegro5 static. (No dll's). Once you have that, try to compile the example https://github.com/jmasterx/Agui/blob/master/example/agui_example_a5.cpp

Link against the 2 .lib files and link to Allegro5.

As to what you should include, check out what the examples include.

There is no official tutorial or documentation, but the Demo https://github.com/jmasterx/Agui/tree/master/demo/AguiCalc gives a good idea on skinning and using the library.

For more advanced usage, check out https://github.com/jmasterx/StemwaterSpades/tree/master/Spades%20Game/Game/UI which makes heavy use of Agui.

Let me know if you run into any issues, but please be specific, with any error messages you encountered etc.

Thanks!

Michael Branin
Member #15,864
January 2015

Thanks that is exactly what I needed to know. I downloaded from git and successfully compiled the libraries with no issues. Now I am off to learn how to use AGUI!!!

EDIT:
Ok where are you putting your include folder and your 2 libraries? Are you just dropping them in the project folder and linking to the libs there or Do you have an AGUI folder and have the includes there and the libs as well in a lib folder.

jmasterx
Member #11,410
October 2009

Like with any library, you put Agui in your include and lib folders respectively.

https://msdn.microsoft.com/en-us/library/73f9s62w.aspx

Michael Branin
Member #15,864
January 2015

Sorry I meant for organizational purposes do you keep your Agui stuff together in one main in case of updates ect. But I have it working

jmasterx
Member #11,410
October 2009

I'm not sure what you mean by 1 main.

I consider Agui, like Allegro, to be an external library. Thus, when I update Agui, it updates it for all the projects I use it with because they all include it from the same place. But if you prefer to include Agui as part of each project, that's fine too. It's up to you.

Sorry if that wasn't what you were asking.

Go to: