Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash
- OUTPUT_DIR=/tmp/zeromq-android
- #The steps i used to install the NDK
- #cd /tmp/
- #wget http://dl.google.com/android/ndk/android-ndk-r8-linux-x86.tar.bz2
- #tar xvfj android-ndk-r8-linux-x86.tar.bz2
- #sudo ./android-ndk-r8/build/tools/make-standalone-toolchain.sh --install-dir=/opt/android-toolchain
- #export PATH=/opt/android-toolchain/bin:$PATH
- #e2fsprogs
- cd /tmp/
- rm -rf e2fsprogs/
- git clone git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
- cd e2fsprogs/
- ./configure --host=arm-linux-androideabi --prefix=$OUTPUT_DIR CFLAGS="-fPIC"
- cd lib/uuid
- make
- make install
- #zeromq
- cd /tmp/
- rm -rf zeromq-2.2.0/ zeromq-2.2.0.tar.gz
- wget http://download.zeromq.org/zeromq-2.2.0.tar.gz
- tar xzf zeromq-2.2.0.tar.gz
- cd zeromq-2.2.0/
- ./autogen.sh
- ./configure --enable-static --disable-shared --host=arm-linux-androideabi --prefix=$OUTPUT_DIR --with-uuid=$OUTPUT_DIR LDFLAGS="-L$OUTPUT_DIR/lib" CPPFLAGS="-fPIC -I$OUTPUT_DIR/include" LIBS="-lgcc"
- make
- make install
- #jzmq
- cd /tmp/
- rm -rf jzmq/
- git clone https://github.com/zeromq/jzmq.git
- cd jzmq/
- ./autogen.sh
- ./configure --host=arm-linux-androideabi --prefix=$OUTPUT_DIR --with-zeromq=$OUTPUT_DIR CPPFLAGS="-fPIC -I$OUTPUT_DIR/include" LDFLAGS="-L$OUTPUT_DIR/lib" --disable-version
- make
- make install
Advertisement
Add Comment
Please, Sign In to add comment