Hello.
Basically, I'm struggling to build CSFML from sources for the last two days. And I was quite succesful up until the moment when I was actually trying to "make" the library.
So, what I did was - got SFML 2.1 -> statically build it. During that process, I've got bunch of error with 'del' command missing, but I typed 'make' 5 or 6 times and SFML succesfully builded. (/bin/sh: del: command not found)
Then, I used cmake to create MSYS Makefiles. After that - typed make aaaaand that is the moment when I stuck.
This is the output:
Scanning dependencies of target csfml-system
[ 2%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Clock.cpp.obj
[ 4%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Mutex.cpp.obj
[ 6%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Sleep.cpp.obj
[ 8%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Thread.cpp.obj
[ 11%] Building CXX object src/SFML/System/CMakeFiles/csfml-system.dir/Time.cpp.obj
Linking CXX shared library ../../../lib/csfml-system-2.dll
[ 11%] Built target csfml-system
Scanning dependencies of target csfml-window
[ 13%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Context.cpp.obj
[ 15%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Joystick.cpp.obj
[ 17%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Keyboard.cpp.obj
[ 20%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Mouse.cpp.obj
[ 22%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/VideoMode.cpp.obj
[ 24%] Building CXX object src/SFML/Window/CMakeFiles/csfml-window.dir/Window.cpp.obj
Linking CXX shared library ../../../lib/csfml-window-2.dll
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../lib\libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.text+0xb): undefined reference to `__imp_joyGetPosEx'
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../lib\libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.text+0xd5): undefined reference to `__imp_joyGetPosEx'
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../lib\libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.text+0x106): undefined reference to `__imp_joyGetDevCapsA'
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../lib\libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.text+0x214): undefined reference to `__imp_joyGetPosEx'
C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../lib\libsfml-window-s.a(JoystickImpl.cpp.obj): bad reloc address 0x0 in section `.pdata'
collect2.exe: error: ld returned 1 exit status
(And then bunch of text in russian, which doesn't matter)
So, the questions are:
a) Is this a problem of my statically builded SFML, maybe those errors were not those, which I may ignore.
b) If it is - how does one builds SFML statically without such annoying things.
c) If it's a problem with CSFML and SFML is builded correctly- how to fix it?
P.S. Sorry for my english in advance