static build SDL2MIXER_SAMPLES error
jinfeihan57 opened this issue · comments
What is the link command?
Also post the contents of the .rsp
response files that are used as input.
I assume you are using non-vendored modplug libraries (-DSDL2MIXER_VENDORED=OFF
).
We look for modplug using this find module.
Please post the contents of all modplug_*
variables in your CMakeCache.txt
file.
If I set(SDL2MIXER_DEPS_SHARED ON), use Dynamically load modplug. It will compiler OK.
But just because the compilation is successful does not indicate that modplug is available.
and I want use static link,not dynamic load.
Thanks for the logs.
Fixed in 32381df and libsdl-org/libmodplug@1e03298
You can fix it in your project by adding the following after add_subdirectory(SDL_mixer)
if(TARGET modplug)
target_compile_definitions(modplug PUBLIC MODPLUG_STATIC)
endif()