How to build Android ported SDL for Linux - CustomSDL/sdl_android_launcher GitHub Wiki
Note: If you have already built 3rd party libraries from OpenSDL, do not reuse them here because latest OpenSDL contains boost 1.72, however Android port is currently using boost 1.68 so in case of reuse you will get compilation error on attempt to build boost-based components! Use another folders for this build for now.
-
Create empty folder for 3rd party libraries:
/home/<usr_name>/linux_3rd_party_libs
-
Create a separate build folder whenever you want on your file system for Linux build
-
In terminal, go to created build folder and export environment variables:
export THIRD_PARTY_INSTALL_PREFIX=/home/<usr_name>/linux_3rd_party_libs
export THIRD_PARTY_INSTALL_PREFIX_ARCH=/home/<usr_name>/linux_3rd_party_libs
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$THIRD_PARTY_INSTALL_PREFIX/lib
- Run cmake and point it to your Android sdl_core sources. For example:
cmake <path-to-repository-with-android-ported_sdl>/sdl_android_launcher/app/src/main/cpp/
-
Run
make install
-
You should get a successful SDL build as usually get for OpenSDL.