Building in docker Android machine

From PeerFreedom Wiki
Jump to navigation Jump to search

- docker run --net=host -ti peerfreedom/android-ndk-toolchain bash - git fetch - git merge - git submodule update --init --recursive - cd build - cmake -DANDROID_PLATFORM="android-22" -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake" -DSODIUM_INCLUDE_DIR=/opt/include -DSODIUM_LIBRARY=/opt/lib/libsodium.a -DBoost_INCLUDE_DIR=/opt/include -DBoost_SYSTEM_LIBRARY_DEBUG=/opt/lib/libboost_system.a -DBoost_FILESYSTEM_LIBRARY_DEBUG=/opt/lib/libboost_filesystem.a -DBoost_THREAD_LIBRARY_DEBUG=/opt/lib/libboost_thread.a .. - make