Ice3.4.2/3.3.1 poco1.4.2 Google-protobuf installation on ARM-Linux

Source: Internet
Author: User
Tags install openssl

Background: required by the project. The ice, Poco, and protobuf libraries used in windows are transplanted to arm-Linux for running.

If you don't talk about it, go to the topic:

1. ice3.3.1

General compilation process:

1) Compile iceutil. So first

2) Compile the ice interpreter slice2cpp and slice2java using iceutil. So.

3) use the interpreter to generate related. cpp and. H code to compile other libraries.

1.1 compile ice3.3.1/3.4.2 On Linux Redhat enterparse6.1 (the process is the same ).

1.1.1 download some libraries required for ice3.3.1 and ice Compilation

ThirdParty-Sources-3.3.1.tar.gz

Note: Modify the related folder permissions or use the root user

Unzip tar-xvf./ThirdParty-Sources-3.3.1.tar.gz

1) install MCPP

Mkdir/usr/local/src/ice-3.3.1/

Tar-xvf./mcpp-2.7.2.tar.gz-C/usr/local/src/ice-3.3.1/

CD/usr/local/src/ice-3.3.1/mcpp-2.7.2/

./Configure -- prefix =/usr/local/ice-3.3.1/mcpp-2.7.2/cflags =-FPIC-enable-mcpplib-Disable-shared

Make

Make install

Make clean

2) install berkeleydb

Tar-xvf./db-4.6.21.NC.tar.gz-C/usr/local/src/ice-3.3.1/

CD/usr/local/src/ice-3.3.1/db-4.6.21.NC/build_unix/

../Dist/configure -- prefix =/usr/local/ice-3.3.1/BerkeleyDB-4.6.21/-enable-cxx

Make

Make install

Make clean

3) install Bzip2

Tar-xvf./bzip2-1.0.5.tar.gz-C/usr/local/src/ice-3.3.1/

Modify makefile to point prefix to/usr/local/ice-3.3.1/bzip2-1.0.5

Make

Make install

Make clean

4) install expat

Tar-xvf./expat-2.0.1.tar.gz-C/usr/local/src/ice-3.3.1/

./Configure -- prefix =/usr/local/ice-3.3.1/expat-2.0.1/

Make

Make install

Make clean

5) install OpenSSL

Tar-xvf./openssl-0.9.8g.tar.gz-C/usr/local/src/ice-3.3.1/

./Config -- prefix =/usr/local/ice-3.3.1/openssl-0.9.8g/

Make

Make install

Make clean

6) install ice

Tar-xvf./Ice-3.3.1.tar.gz-C/usr/local/src/ice-3.3.1/

Modify some paths in VI./CPP/config/make. Rules

Prefix? =/Usr/local/ice-3.3.1/ice-$ (Version)

Embedded_runpath_prefix? =/Usr/local/ice-3.3.1/ice-$ (version_major). $ (version_minor)

Optimize = yes # compile without-G Optimization

Bzip2_home? =/Usr/local/ice-3.3.1/bzip2-1.0.5

Db_home? =/Usr/local/ice-3.3.1/BerkeleyDB-4.6.21

Expat_home? =/Usr/local/ice-3.3.1/expat-2.0.1

Openssl_home? =/Usr/local/ice-3.3.1/openssl-0.9.8g

Mcpp_home? =/Usr/local/ice-3.3.1/mcpp-2.7.2

: WQ exit vi

CD./CPP

Make

Make install

Make clean

Note: The Path is designed as needed. I just wrote my example.

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.