Sunday, October 4, 2015


Thư viện phụ thuộc:
- zlib
- bzip2

Xem hướng dẫn cross.

 "Bootstrap the code:"  
 ./bootstrap.sh  
   
 "  
 Modify the configuration file (project-config.jam) to use the ARM toolchain   
 by replacing the line with "using gcc" by:  
 using gcc : arm : arm-none-linux-gnueabi-g++ ;  
 "  
   
 "Install the python development package on host" 
  yum install python-devel
 
 "Cross comple zlib-1.2.8 and bzip2-1.0.6 "
 DEPEND_LIB_DIR=/path/to/install  
 export CFLAGS=-I${DEPEND_LIB_DIR}/include  
 export CPPFLAGS=-I${DEPEND_LIB_DIR}/include  
 export LDFLAGS=-L${DEPEND_LIB_DIR}/lib  
 export PKG_CONFIG_PATH=${DEPEND_LIB_DIR}/lib/pkgconfig  
 export LD_LIBRARY_PATH=${DEPEND_LIB_DIR}/lib  
 export PATH=$PATH:${DEPEND_LIB_DIR}/bin:${DEPEND_LIB_DIR}/sbin 
   
 "Build and install the boost libraries:"    
 ZLIB_SOURCE_DIR=/path/to/zlib-1.2.8  
 BZIP2_SOURCE_DIR=/path/to/bzip2-1.0.6  
   
 ./bjam toolset=gcc-arm --prefix=$PREFIX \  
 -sZLIB_SOURCE=${ZLIB_SOURCE_DIR} \  
 -sBZIP2_SOURCE=${BZIP2_SOURCE_DIR} \  
 --without-python \  
 install  


Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © Lập trình hệ thống nhúng Linux . Powered by Luong Duy Ninh -