SDL
SDL copied to clipboard
An error occurs when compiling to Android using cmake
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?