J'utilise MXE comme base de développement. J'ai compiler toutes les applications et librairies nécessaires à mon projet.

Mon programme fonctionne sous Linux.

Il compile sous MXE mais gros problèmes d'édition de liens à la fin avec SFML.
............................
/home/dominique/MXE/mxe/usr/i686-w64-mingw32.static/lib/libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.text+0x224c): undefined reference to `_imp__joyGetPosEx@8'
/home/dominique/MXE/mxe/usr/i686-w64-mingw32.static/lib/libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.text+0x2d4d): undefined reference to `_imp__joyGetDevCapsW@12'
/home/dominique/MXE/mxe/usr/i686-w64-mingw32.static/lib/libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.text+0x339f): undefined reference to `_imp__joyGetPosEx@8'
/home/dominique/MXE/mxe/usr/i686-w64-mingw32.static/lib/libsfml-system-s.a(SleepImpl.cpp.obj):SleepImpl.cpp:(.text+0x24): undefined reference to `_imp__timeGetDevCaps@8'
/home/dominique/MXE/mxe/usr/i686-w64-mingw32.static/lib/libsfml-system-s.a(SleepImpl.cpp.obj):SleepImpl.cpp:(.text+0x34): undefined reference to `_imp__timeBeginPeriod@4'
/home/dominique/MXE/mxe/usr/i686-w64-mingw32.static/lib/libsfml-system-s.a(SleepImpl.cpp.obj):SleepImpl.cpp:(.text+0x59): undefined reference to `_imp__timeEndPeriod@4'
collect2: error: ld returned 1 exit status
Makefile:13*: la recette pour la cible «*oscSpace3D*» a échouée
make: *** [oscSpace3D] Erreur 1

J'utilise ceci dans mon make

Code bash : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
    $(CC)  -std=c++11 -O3 oscSpace3D.cpp -o oscSpace3D.exe -DSFML_STATIC -L/home/dominique/MXE/mxe/usr/i686-w64-mingw32.static/lib -lboost_filesystem-mt -lboost_system-mt  -lpng -lwinmm -lfreetype -lgdi32 -lopengl32 -lglu32  -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -llo -DGL_GLEXT_PROTOTYPES  -lpthread `pkg-config ` -lws2_32 -lwsock32 -liphlpapi
 
 make CROSS=i686-w64-mingw32.static-

Boost et liblo passe très bien. Sfml est bien définie. Le programme compile mais le linker me jette.

Je ne comprends pas.