jkuhlmann / gainput

Cross-platform C++ input library supporting gamepads, keyboard, mouse, touch
http://gainput.johanneskuhlmann.de/
MIT License
858 stars 103 forks source link

Mingw64&MSYS2 : Erreur de compilation #39

Open NicolasRicard opened 7 years ago

NicolasRicard commented 7 years ago

CMakeFiles/gainput.dir/source/gainput/pad/GainputInputDevicePad.cpp.o:GainputInputDevicePad.cpp:(.text$_ZN 7gainput21InputDevicePadImplWin6UpdateEPNS_15InputDeltaStateE[_ZN7gainput21InputDevicePadImplWin6UpdateEPN S_15InputDeltaStateE]+0x1e): undefined reference to XInputGetState' CMakeFiles/gainput.dir/source/gainput/pad/GainputInputDevicePad.cpp.o:GainputInputDevicePad.cpp:(.text$_ZN 7gainput21InputDevicePadImplWin7VibrateEff[_ZN7gainput21InputDevicePadImplWin7VibrateEff]+0xc6): undefined reference toXInputSetState' CMakeFiles/gainput.dir/source/gainput/recorder/GainputInputRecording.cpp.o:GainputInputRecording.cpp:(.tex t$ZN7gainput6Stream4ReadIjEEyRT[ZN7gainput6Stream4ReadIjEEyRT]+0x3d): undefined reference to __imp_nt ohl' CMakeFiles/gainput.dir/source/gainput/recorder/GainputInputRecording.cpp.o:GainputInputRecording.cpp:(.tex t$_ZN7gainput6Stream4ReadIfEEyRT_[_ZN7gainput6Stream4ReadIfEEyRT_]+0x3d): undefined reference toimp_nt ohl' CMakeFiles/gainput.dir/source/gainput/recorder/GainputInputRecording.cpp.o:GainputInputRecording.cpp:(.tex t$ZN7gainput6Stream5WriteIjEEyRKT[ZN7gainput6Stream5WriteIjEEyRKT]+0x1b): undefined reference to __im p_htonl' CMakeFiles/gainput.dir/source/gainput/recorder/GainputInputRecording.cpp.o:GainputInputRecording.cpp:(.tex t$_ZN7gainput6Stream5WriteIfEEyRKT_[_ZN7gainput6Stream5WriteIfEEyRKT_]+0x1b): undefined reference toim p_htonl' collect2.exe: error: ld returned 1 exit status make[2]: [lib/CMakeFiles/gainput.dir/build.make:849: lib/msys-gainput-1.dll] Error 1 make[1]: [CMakeFiles/Makefile2:88: lib/CMakeFiles/gainput.dir/all] Error 2 make: *** [Makefile:128: all] Error 2