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 Menu
Quote 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
The C compiler identification is GNU 4.7.1
The CXX compiler identification is GNU 4.7.1
Check for working C compiler: H:/Program Files/CodeBlocks/MinGW/bin/gcc.exe
Check for working C compiler: H:/Program Files/CodeBlocks/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: H:/Program Files/CodeBlocks/MinGW/bin/g++.exe
Check for working CXX compiler: H:/Program Files/CodeBlocks/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of void*
Check size of void* - done
Could NOT find SFML (missing: SFML_GRAPHICS_LIBRARY SFML_WINDOW_LIBRARY SFML_SYSTEM_LIBRARY)
CMake Error at CMakeLists.txt:84 (message):
CMake couldn't find SFML. Set the SFML_ROOT entry to SFML's root directory
(containing "include" and "lib" directories).
Configuring incomplete, errors occurred!
Quote from: texus on 22 September 2013, 19:49:26Ar you able to compile sfml, or is this only a problem with tgui?I can compile SFML fine.
Quote from: texus on 22 September 2013, 20:05:02I'll see if I can manually set it to choose the CodeBlocks compiler. And also, my main hard drive failed a year or two back. I installed a new one, and it just was "H:/" ever since.QuoteUsing the CodeBlocks MinGW compilerQuoteThat is not the compiler from CodeBlocks!Check for working C compiler: h:/MinGW/bin/gcc.exe
The one from CodeBlocks is in the 'C:\Program Files\CodeBlocks\MinGW\bin' folder.
Why are you on the H drive instead of the C drive anyway? It isn't really the default.
The C compiler identification is GNU 4.8.1
The CXX compiler identification is GNU 4.8.1
Check for working C compiler: h:/MinGW/bin/gcc.exe
Check for working C compiler: h:/MinGW/bin/gcc.exe -- works
Detecting C compiler ABI info
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'H:/Program Files/TGUI/build/CMakeFiles/2.8.11.2/CMakeDetermineCompilerABI_C.bin'
Unable to find the executable at any of:
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/cmTryCompileExec2339646467.exe
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2339646467.exe
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec2339646467.exe
Call Stack (most recent call first):
H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:21 (project)
Detecting C compiler ABI info - done
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:52 (file):
file STRINGS file "H:/Program
Files/TGUI/build/CMakeFiles/2.8.11.2/CMakeDetermineCompilerABI_C.bin"
cannot be read.
Call Stack (most recent call first):
H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:21 (project)
Check for working CXX compiler: h:/MinGW/bin/g++.exe
Check for working CXX compiler: h:/MinGW/bin/g++.exe -- works
Detecting CXX compiler ABI info
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'H:/Program Files/TGUI/build/CMakeFiles/2.8.11.2/CMakeDetermineCompilerABI_CXX.bin'
Unable to find the executable at any of:
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/cmTryCompileExec484653838.exe
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec484653838.exe
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec484653838.exe
Call Stack (most recent call first):
H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:21 (project)
Detecting CXX compiler ABI info - done
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:52 (file):
file STRINGS file "H:/Program
Files/TGUI/build/CMakeFiles/2.8.11.2/CMakeDetermineCompilerABI_CXX.bin"
cannot be read.
Call Stack (most recent call first):
H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:21 (project)
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of void*
CMake Error at H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CheckTypeSize.cmake:89 (try_compile):
Cannot copy output executable
''
to destination specified by COPY_FILE:
'H:/Program Files/TGUI/build/CMakeFiles/CheckTypeSize/SIZEOF_VOID_PTR.bin'
Unable to find the executable at any of:
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/cmTryCompileExec1542734059.exe
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec1542734059.exe
H:/Program Files/TGUI/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec1542734059.exe
Call Stack (most recent call first):
H:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CheckTypeSize.cmake:174 (__check_type_size_impl)
cmake/Config.cmake:8 (check_type_size)
CMakeLists.txt:24 (include)
CMake Error at cmake/Config.cmake:14 (message):
Unsupported architecture
Call Stack (most recent call first):
CMakeLists.txt:24 (include)
Configuring incomplete, errors occurred!