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.