I’ve just updated my Android game to the latest SDL2 code, but now I get this error:
C:/Work/Android/androidSDK/ndk-bundle/build//../build/core/build-binary.mk:654: Android NDK: Module SDL2_mixer depends on undefined modules: wavpack
C:/Work/Android/androidSDK/ndk-bundle/build//../build/core/build-binary.mk:667: *** Android NDK: Note that old versions of ndk-build silently ignored this error case. If your project worked on those versions, the missing libraries were not needed and you can remove those dependencies from the module to fix your build. Alternatively, set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies. . Stop.
in my game’s Application.mk file, but that just gives this:
[CXX1429] error when building with ndkBuild using C:\Work\Android\androidprojects\Firefight\app\src\main\jni\Android.mk: C++ build system [configure] failed while executing: @echo off
“C:\Work\Android\androidSDK\ndk-bundle\ndk-build.cmd” ^
“NDK_PROJECT_PATH=null” ^
“APP_BUILD_SCRIPT=C:\Work\Android\androidprojects\Firefight\app\src\main\jni\Android.mk” ^
“NDK_APPLICATION_MK=C:\Work\Android\androidprojects\Firefight\app\src\main\jni\Application.mk” ^
“APP_ABI=arm64-v8a” ^
“NDK_ALL_ABIS=arm64-v8a” ^
“NDK_DEBUG=1” ^
“APP_PLATFORM=android-23” ^
“NDK_OUT=C:\Work\Android\androidprojects\Firefight\app\build\intermediates\cxx\Debug\p1d1xc4r/obj” ^
“NDK_LIBS_OUT=C:\Work\Android\androidprojects\Firefight\app\build\intermediates\cxx\Debug\p1d1xc4r/lib” ^
“APP_SHORT_COMMANDS=false” ^
“LOCAL_SHORT_COMMANDS=false” ^
-B ^
-n
from C:\Work\Android\androidprojects\Firefight\app
fcntl(): Bad file descriptor
C:/Work/Android/androidSDK/ndk-bundle/build//…/build/core/build-binary.mk:654: Android NDK: Module SDL2_mixer depends on undefined modules: wavpack gme
C:/Work/Android/androidSDK/ndk-bundle/build//…/build/core/build-binary.mk:667: *** Android NDK: Note that old versions of ndk-build silently ignored this error case. If your project worked on those versions, the missing libraries were not needed and you can remove those dependencies from the module to fix your build. Alternatively, set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies. . Stop.
I got the same error before.
While building for android, there are external libraries for mixer, image etc.
wavpack is one of those for mixer.
For solve that you should go to sdl2_mixer’s folder on your building area
go to sdl2_mixer/external folder. there must be download.sh located run it, problem is probably gonna be solved.
.sh files are executable for linux/unix. You can read the code, it only clones the necessary repos to current folder -sdl_mixer/external- , if you are useing windows you can do it by yourself via
git clone
Do it for all necessary external repos, it will solve the problem probably.
I’m on Windows and git cloning things is beyond me. Not sure why the download of SDL_Mixer doesn’t just include everything? I’ve never had to do separate downloads before.