SFML community forums
Help => General => Topic started by: purkskis on December 02, 2011, 12:29:13 am
-
Hi,
i'm trying to build sfml 2.0 ...
according to tutorial (http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php) i generated CodeBlock project file, but when i open it and try to build i get this:
-------------- Clean: all in SFML ---------------
Cleaned "SFML - all"
-------------- Build: all in SFML ---------------
Using makefile: Makefile
[ 1%]
Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Clock.cpp.obj
[ 2%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Err.cpp.obj
[ 3%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Lock.cpp.obj
[ 4%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Mutex.cpp.obj
[ 6%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Sleep.cpp.obj
[ 7%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/String.cpp.obj
[ 8%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Thread.cpp.obj
[ 9%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/ThreadLocal.cpp.obj
[ 10%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/MutexImpl.cpp.obj
[ 12%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/Platform.cpp.obj
[ 13%] Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadImpl.cpp.obj
[ 14%]
Building CXX object src/SFML/System/CMakeFiles/sfml-system.dir/Win32/ThreadLocalImpl.cpp.obj
Linking CXX shared library ..\..\..\lib\sfml-system-2.dll
mingw32-g++.exe: unrecognized option '-static-libstdc++'
Creating library file: ..\..\..\lib\libsfml-system.a
process_begin: CreateProcess((null), echo Built target sfml-system, ...) failed.
make (e=2): The system cannot find the file specified.
make.exe[1]: *** [src/SFML/System/CMakeFiles/sfml-system.dir/all] Error 2
make.exe: *** [all] Error 2
[ 14%]
Process terminated with status 2 (0 minutes, 4 seconds)
0 errors, 0 warnings
-
Things always fail with Code::Blocks, don't use it for such a task. You don't need to edit SFML, you just want to compile it. Therefore there's no point generating an IDE project, just generate a MinGW makefile and compile with "mingw32-make" on the command line.
-
Thanks, everything is working!