Guest User

Untitled

a guest
Jul 25th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.26 KB | None | 0 0
  1. #/bin/bash
  2.  
  3. OUTPUT_DIR=/tmp/zeromq-android
  4.  
  5. #The steps i used to install the NDK
  6. #cd /tmp/
  7. #wget http://dl.google.com/android/ndk/android-ndk-r8-linux-x86.tar.bz2
  8. #tar xvfj android-ndk-r8-linux-x86.tar.bz2
  9. #sudo ./android-ndk-r8/build/tools/make-standalone-toolchain.sh --install-dir=/opt/android-toolchain
  10. #export PATH=/opt/android-toolchain/bin:$PATH
  11.  
  12. #e2fsprogs
  13. cd /tmp/
  14. rm -rf e2fsprogs/
  15. git clone git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
  16. cd e2fsprogs/
  17. ./configure --host=arm-linux-androideabi --prefix=$OUTPUT_DIR CFLAGS="-fPIC"
  18. cd lib/uuid
  19. make
  20. make install
  21.  
  22. #zeromq
  23. cd /tmp/
  24. rm -rf zeromq-2.2.0/ zeromq-2.2.0.tar.gz
  25. wget http://download.zeromq.org/zeromq-2.2.0.tar.gz
  26. tar xzf zeromq-2.2.0.tar.gz
  27. cd zeromq-2.2.0/
  28. ./autogen.sh
  29. ./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"
  30. make
  31. make install
  32.  
  33. #jzmq
  34. cd /tmp/
  35. rm -rf jzmq/
  36. git clone https://github.com/zeromq/jzmq.git
  37. cd jzmq/
  38. ./autogen.sh
  39. ./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
  40. make
  41. make install
Advertisement
Add Comment
Please, Sign In to add comment