Android version ZEROMQ compilation

Source: Internet
Author: User

Download ZEROMQ

Http://download.zeromq.org/zeromq-3.2.4.tar.gz

Download JZMQ

Https://github.com/zeromq/jzmq/archive/v3.1.0.tar.gz


Operating system using ubuntu14.04-i386

Cd/zeromq
wget http://dl.google.com/android/ndk/android-ndk-r9-linux-x86.tar.bz2
Tar xvfj android-ndk-r9-linux-x86.tar.bz2
sudo./android-ndk-r9/build/tools/make-standalone-toolchain.sh--install-dir=/opt/android-toolchain
Export Path=/opt/android-toolchain/bin: $PATH
Export Output_dir=/zeromq/zeromq-android
CD zeromq-3.2.4/
sudo apt-get install autoconf
sudo apt-get install Libtool
./autogen.sh
./configure--enable-static--disable-shared--host=arm-linux-androideabi--prefix= $OUTPUT _dir LDFLAGS= "-L$OUTPUT_ Dir/lib "cppflags="-fpic-i$output_dir/include "libs="-LGCC "
Make
Make install


Cd..
CD jzmq-3.1.0/
./autogen.sh
sudo apt-get install DEFAULT-JDK
./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

Android version ZEROMQ compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.