Compile boost1.33.1 for armlinux

Source: Internet
Author: User
For armlinux, cross-compile boost1.33.1 -- Linux general technology-Linux programming and kernel information. The following is a detailed description. First, zlib must be available in the arm linux environment.

1. uncompress the boost package and run cd to the decompressed directory.

2. Compile bjam and configure it. Check the album page.

3 generate Makefile:./configure "-sBUILD = debug release Static/dynamic "-- without-python

4. Change Makefile:
Change the variables in the file header to the following. My compiling environment is under "/MyDev/arm-linux/bin", and other variables do not need to be modified.
BJAM =./tools/build/jam_src/bin. linuxx86/bjam
TOOLSET = arm-linux-gcc
BJAM_CONFIG =-sPYTHON_ROOT =/usr-sPYTHON_VERSION = 2.5
PREFIX =/MyDev/arm-linux/bin
EPREFIX =/MyDev/arm-linux/bin
LIBDIR =/MyDev/Intel_CE_2110-1.1.290/arm-linux-elf/lib
Export dedir =/MyDev/Intel_CE_2110-1.1.290/arm-linux-elf/include

Change BOOST_ROOT/tools/build/v1/gcc-tools.jam, You 'd better back up this file first:
Change gcc/g ++/ar/as to arm-linux-gcc/arm-linux-g ++/arm-linux-ar/arm-linux-.

5. Return to BOOST_ROOT.
Because it is an embedded system, static libraries are also required. Therefore, enter:
Bjam "-sBUILD = debug release Static/dynamic"

The above steps are successful on Ubuntu 8.04.

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.