Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Compiling SFML 2.0  (Read 1658 times)

0 Members and 1 Guest are viewing this topic.

purkskis

  • Newbie
  • *
  • Posts: 22
    • View Profile
Compiling SFML 2.0
« on: December 02, 2011, 12:29:13 am »
Hi,
i'm trying to build sfml 2.0 ...
according to tutorial i generated CodeBlock project file, but when i open it and try to build i get this:

Code: [Select]

-------------- 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
 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiling SFML 2.0
« Reply #1 on: December 02, 2011, 07:59:46 am »
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.
Laurent Gomila - SFML developer

purkskis

  • Newbie
  • *
  • Posts: 22
    • View Profile
Compiling SFML 2.0
« Reply #2 on: December 02, 2011, 09:19:29 am »
Thanks, everything is working!