Thank you! That worked great
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: texus on 25 March 2014, 21:40:15I downloaded the precompiled version, and linked everything up. I've gotten everything to configure and generate fine. And on top of that, I've just finished building the tgui.cbp project with Code::Blocks. Thank you for helping me work through my foolish mistake!
Not only does it include the static versions, it also includes a copy of the sfml extlibs folder (since v0.6.2).
Quote from: texus on 24 March 2014, 10:13:16
When linking statically, sfml now forces you to link to its dependencies yourself.
You can solve your problem by changing the FREETYPE_LIBRARY property to "H:/Program Files/SFML/extlibs/mingw/x68/freetype.a" (or something like that). Same for GLEW_LIBRARY and FREETYPE_LIBRARY.
Quote from: texus on 24 March 2014, 10:13:16
But what tgui version are u using? I tried to make tgui automatically find these extlibs in v0.6.1. Maybe my fix is no longer working?
Quote from: texus on 24 March 2014, 10:13:16I thought the precompiled tgui libraries wouldn't include a static version like I needed.
Any reason why you are not using the precompiled tgui libraries? (if you are using mingw 4.8 then you would have a valid reason).
tgui::Button::Ptr button(gui);
button->load("gfx/GUI.conf");
button->setSize(120, 39);
button->setPosition(630, 250);
button->setText("Login");
button->setTextSize(14);
button->setTextColor(sf::Color(255, 255, 255));
button->bindCallback(tgui::Button::LeftMouseClicked);
button->setCallbackId(1);
Button:
NormalImage_L = "gui/button/Normal.png" (0, 0, 9, 39)
NormalImage_M = "gui/button/Normal.png" (10, 0, 100, 39)
NormalImage_R = "gui/button/Normal.png" (111, 0, 9, 39)
HoverImage_L = "gui/button/Hover.png" (0, 0, 9, 39)
HoverImage_M = "gui/button/Hover.png" (10, 0, 100, 39)
HoverImage_R = "gui/button/Hover.png" (111, 0, 9, 39)
DownImage_L = "gui/button/Down.png" (0, 0, 9, 39)
DownImage_M = "gui/button/Down.png" (10, 0, 100, 39)
DownImage_R = "gui/button/Down.png" (111, 0, 9, 39)
TextColor = (100, 100, 100)
SeparateHoverImage = true