Closed Dechode closed 12 months ago
I am now able to compile it when i changed the windows part of SConscript to following:
if env["platform"] == "windows":
env.Append(CPPPATH=['include/'])
env.Append(LIBPATH=['lib/SDL2/'])
env.Append(LIBS=['SDL2.dll.dll'])
Last line where i append the sdl2.dll is sort of a hack, since i believe that scons looks at the lib name and removes the last .dll suffix but not the other. This way it gets straight linked to the dll.
I will close this issue and open a new one for proper fix in the ffb plugin repository.
When compiling the ffb plugin for windows, the final build command fails because it did not link to the sdl2.dll file.
I am able to finish compilation with following command: x86_64-w64-mingw32-g++ -o bin/libffbplugin.windows.template_debug.x86_64.dll --static -Wl,--no-undefined -static-libgcc -static-libstdc++ -shared src/ffb_plugin.os src/register_types.os -Lgodot-cpp/bin -Llib/SDL2 -lgodot-cpp.windows.template_debug.x86_64 -lSDL2.dll
I am cross compiling from linux with mingw.