SDL icon indicating copy to clipboard operation
SDL copied to clipboard

An error occurs when compiling to Android using cmake

Open leamus opened this issue 5 months ago • 12 comments

Under windows, I compile the latest sdl3 with NDK23 and CMake3.28.1 with the following command:

$cmake.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="%NDK_HOME%/build/cmake/android.toolchain.cmake" -DANDROID_ABI="arm64-v8a" -DANDROID_PLATFORM="latest", $make

error message after completing immediately:

[92%] Linking CXX shared library libSDL3.so ld: error: undefined symbol: ACameraManager_openCamera

referenced by SDL_android_video_capture.c:250 (D:/Documents/Desktop/Pleafles/_Yes/_Programming/_SDL/SDL/src/video/androidSDL_android_video_capture.c:250), ...

how can I solve it?

leamus avatar Jan 29 '24 13:01 leamus