Last active
December 17, 2015 00:59
-
-
Save andreasjk/5525205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script used to cmake and then make mosquitto for android on MacOSX with android-ndk-r8e and a patched mosquitto source. | |
# Update paths below and run it from inside the root mosquitto dir (right in the one you clone from hg) | |
# Used patched mosquitto from: https://bitbucket.org/andreasjk/mosquitto | |
# Used NDK: http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86_64.tar.bz2 | |
# Used cmake toolchain file from https://github.com/Itseez/opencv/blob/master/android/android.toolchain.cmake | |
# Threading has to be disabled since android doesn't support it fully | |
# Also disabled TLS since I couldn't get cmake to find the openssl lib properly | |
rm -rf build | |
mkdir -p build | |
cd build | |
cmake \ | |
-DANDROID_NDK="/Users/andreas/SDKs/android-ndk-r8e" \ | |
-DANDROID_ABI="armeabi" \ | |
-DANDROID_NDK_HOST_X64="YES" \ | |
-DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.7" \ | |
-DCMAKE_TOOLCHAIN_FILE="/Users/andreas/SDKs/android.toolchain.cmake" \ | |
-DWITH_TLS=OFF \ | |
-DWITH_THREADING=OFF .. | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment