SFML community forums
Help => General => Topic started by: Martin336 on May 07, 2015, 07:01:07 pm
-
Hi there,
I have following problem for bothe SFML and SFGUI compilation. I have followed SFGUI and SFML tutorial with following inputs:
Windows 7;
CodeBlocks 13.12 with MinGW 4.9.2;
PC has 2 GPUs: Intel and Nvidia (I have read that might cause troubles);
SFML 2.2;
SFGUI 0.2.3;
CMake 3.2.2;
Step-by-Step:
1) I have downloaded SFML-2.2-windows-gcc-4.9.2-mingw-64-bit and lastetst SFGUI.
2) In CMake I have set the source and build location, added necessary variables
CMAKE_MODULE_PATH : D:/SFML/SFML-2.2 - SOURCE/cmake/Modules
GLEW_INCLUDE_DIR : D:/SFML/Glew/include
GLEW_LIBRARY : glew32.dll
SFML_ROOT : D:/SFML/SFML-2.2 - SOURCE
SFML_INCLUDE_DIR : D:/SFML/SFML-2.2 - SOURCE/include
SFML_DIR - NOT FOUND !?!
3) the Current Generator (in CMake) is set to CodeBlock - MinGW MakeFiles (only one that works for me)
4) hit Configure & Generate - EVERYTHING FINE (miner warining about Policy CMP0037)
5) then run CMD.EXE as administrator
6) navigate to BUILD Folder
7) execute : mingw32-make install
then there is following error after 76 % (check the attached picture)
I have done very same thing with SFGUI (I am new to this, so I dunno whether I need SFML already compiled to build SFGUI or does the SFGUI compilation requires only SFML source files ???). Anyway, the same error is for SFGUI.
-
The error pretty much tells you what went wrong, though it might not be obvious to you that you can't directly link a DLL and GLEW_LIBRARY only found the DLL and not the static (or import) library.
All of that doesn't really matter anyways, because you should instead use the testing branch (https://github.com/TankOs/SFGUI/tree/testing) of SFGUI. It has a lot more fixes and doesn't use GLEW anymore.
And by the way, SFGUI has its own forum (http://sfgui.sfml-dev.de/forum/). ;)
-
Ok,I am still pretty unexpirienced and already spent few hours searching the internet, I would be glad for something more specific. Like what to change in order to link it as static (?).
UFF, it might not be obvious from the previous post, but the described error is the same for building the SFML (1 thing) and SFGUI (the other thing). Therefore I have posted the question to SFML forum.
Actually, I dont understand why there is error including SFGUI.DLL when I am trying to build SFML ... ? Do I even need to build SFML separately? (A bit of a simple clarification regarding the SFML - file that I downloaded, would be appreciated)