[SOLVED]SFML window turns black after creating a widget and loading a .conf

Started by JohnGreek, 03 August 2014, 05:01:34

JohnGreek

Hello, i' m trying to use TGUI v6.4 for my game but i am stuck on something very weird.
I have a GameWindow class as a base for my test and i create the tgui::GUI object dynamically.
After this i initialize an EditBox defined in my header like this

Header:
tgui::EditBox::Ptr textBoxUsername;

Source:
textBoxUsername= tgui::EditBox::Ptr(*myGUI);


1st of all is this the correct way to do it?

If not please tell me how. Now on to the point.
After i initialize my EditBox and call this: textBoxUsername->load("widgets/Black.conf");
my windows becomes black whatever i try.

My enviroment is Windows 7
Compiler MinGW (DW)
I compiled from source through CMAKE but i set it to shared though i use SFML in my game statically. Could this be an issue?


Thanks in advance!



Edit: How stupid of me.. i just read on the forum that linkage must be the same for SFML AND TGUI
i had SFML static and TGUI dynamic..