Path: blob/main/dependencies/android/README.md
817 views
Android
Install dependencies
SDL2: Download the source code of 2.28.3 and unzip it in
dependencies/android/SDL.GLEW: Download the binaries and unzip it in
dependencies/android/glew.libogg: Download and unzip it in
dependencies/android/libogg. Then, copy "config_types.h" from here and paste it in "./libogg/include/ogg/".libvorbis: Download and unzip it in
dependencies/android/libvorbis.Ensure the symbolic links in
[root]/android/app/jniare correct:SDL-> Root of the Android SDL dependencysrc-> Root of the RSDKv4 repositoryTo add symbolic links, do the following:
Windows:
mklink /d "[name-of-symlink]" "[path]"Linux:
ln -s "[path]" "[name-of-symlink]"
Open
[root]/android/in Android Studio, install the NDK and everything else that it asks for, and build.
Common build issues (Windows)
make: *** INTERNAL: readdir: No such file or directory
Delete android/app/build and try again. This occurs when the path is short enough to build, but too long for a rebuild.
make: Interrupt/exception caught (code = 0xc0000005)
Your paths are too long. Try renaming the symbolic links to something shorter, or make a symbolic link to RSDKv4 closer to the root of the drive and open the project through there (e.x. C:/RSDKv4/android). I haven't had either issue since I did this.