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.

  1. Create empty folder for 3rd party libraries: /home/<usr_name>/linux_3rd_party_libs

  2. Create a separate build folder whenever you want on your file system for Linux build

  3. 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

  1. 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/

  1. Run make install

  2. You should get a successful SDL build as usually get for OpenSDL.

⚠️ **GitHub.com Fallback** ⚠️