SDL icon indicating copy to clipboard operation
SDL copied to clipboard

android project reports an error on first open.

Open BruceWayen66 opened this issue 3 years ago • 2 comments

[CXX1405] error when building with ndkBuild using C:\Users\lee\Projects\SDL\android-project\app\jni\Android.mk: Build command failed. Error while executing process C:\Users\lee\AppData\Local\Android\Sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\lee\Projects\SDL\android-project\app\jni\Android.mk NDK_APPLICATION_MK=C:\Users\lee\Projects\SDL\android-project\app\jni\Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 NDK_OUT=C:\Users\lee\Projects\SDL\android-project\app\build\intermediates\cxx\Debug\3q4g6la6/obj NDK_LIBS_OUT=C:\Users\lee\Projects\SDL\android-project\app\build\intermediates\cxx\Debug\3q4g6la6/lib APP_PLATFORM=android-16 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}

C:/Users/lee/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:651: Android NDK: Module main depends on undefined modules: SDL3
C:/Users/lee/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:664: *** 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.

BruceWayen66 avatar Dec 10 '22 13:12 BruceWayen66

How should I fix it?

BruceWayen66 avatar Dec 10 '22 13:12 BruceWayen66

Can you please post a reproducer? We test building SDL with Android.mk using the following driver script: androidbuildlibs.sh.

madebr avatar Dec 11 '22 21:12 madebr

SDL 2.0 is now in maintenance mode, and all inactive issues are being closed. If this issue is impacting you, please feel free to reopen it with additional information.

slouken avatar Nov 08 '23 00:11 slouken