Closed genpfault closed 2 years ago
How? We don't use or link to opusurl - at least we shouldn't. @madebr?
Looks like it's building opusfile examples and opus tests. Should we set
OP_DISABLE_EXAMPLES
to TRUE for opusfile and BUILD_TESTING
to FALSE for
opus?? (Maybe some others, as well??..)
Looks like it's building opusfile examples and opus tests. Should we set
OP_DISABLE_EXAMPLES
to TRUE for opusfile andBUILD_TESTING
to FALSE for opus?? (Maybe some others, as well??..)
Yes, this sounds like a good idea.
Well, with those two PRs applied (main
pulled up to 58497bdb6ae7dee132bc538072ea3ce12a6e7c50) the ld: cannot find -lopusurl
issue is fixed but now it can't find libopus.so
:
$ ./gradlew build
...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildCMakeDebug'.
> Expected output file at /project-name/android/build/intermediates/cxx/Debug/6w2m3w14/obj/arm64-v8a/libopus.so for target opus but there was none
...
Setting SDL2MIXER_DEPS_SHARED=OFF
lets the build complete.
ld
can't findopusurl
with SDL2MIXER_OPUS=ON, causing the build to fail:CMakeLists.txt
:src/main.cpp
:The same
CMakeLists.txt
builds successfully withSDL2MIXER_OPUS=OFF
, as well as on the host Debian 11 system with: