linux板级包安装配置

 编译库注意一下几方面:

  (1)./configure --help 命令查看编译的库所依赖的库,里面--without-pango表示默认将pang编译进去,通过--without-可以不用编译进去。

  (2)./configure --prefix=指定生成文件路径   CFLAGS=-I指定库文件的头文件路径   LDFLAGS=-L指定库文件路径 --host=arm-linux指定编译器    --without-ssl(不需要编译ssl库)。

  (3)库编译好之后查看编译好的so文件是ARM类型还是X86类型。

  (4)编译过程中如果出现缺少相关库,查看该库是否在LDFLAGS中。

 

1、iptables-1.4.21

  ./configure --prefix=/home/zhc123/project/tools/iptables-1.4.21_N972/iptables972_install --disable-ipv6 --enable-devel --host=arm-linux CC=arm-linux-gcc

  make&&make install

  备注:静态编译,相应的库都已经编译到可执行文件中,只需要将sbin目录下的可执行文件放在开发板的sbin目录下即可

2、wget-1.14.tar.gz

  ./configure --prefix=/home/zhc123/project/tools/back/wget-1.14/install CC=/home/zhc123/project/NUC970/linuxbsp/BSP/arm_linux_4.8/bin/arm-linux-gcc CFLAGS=-I/home/zhc123/project/tools/zlib-1.2.7/ LDFLAGS=-L/home/zhc123/project/tools/zlib-1.2.7 --host=arm-linux --without-ssl

  备注:需要添加  libiconv.so.2  libintl.so.8

3、编译HarfBuzz

  ./configure --prefix=$PWD/_install --host=arm-linux --with-gobject --with-graphite2 
  make
  make install

4、编译freetype
  tar xvf freetype-2.6.5.tar.gz
  export LDFLAGS="-L/home/zhc123/project/tools/build_for_zbar/zlib-1.2.11_n972/zlib_build/lib -L/home/zhc123/project/tools/build_for_zbar/libpng-1.6.32/_install/lib"
  export CFLAGS="-I/home/zhc123/project/tools/build_for_zbar/zlib-1.2.11_n972/zlib_build/include -I/home/zhc123/project/tools/build_for_zbar/libpng-1.6.32/_install/include"
  export CC=arm-linux-gcc  
  mkdir build
  cd build
  ../configure --prefix=$PWD/__install --host=arm-linux
  make && make install

5、编译graphviz-2.40.1
  export CC=arm-linux-gcc
  export AR=arm-linux-ar
  ./configure --prefix=$PWD/__install --host=arm-linux

6、编译ImageMagick.git

  (1)获取源码 git clone https://github.com/ImageMagick/ImageMagick.git
  (2)指定库和头文件的路径,这里就是为了保证在交叉编译时找到正确的库!
  export LDFLAGS="-L/home/zhc123/project/tools/build_for_zbar/freetype-2.6.5/__install/lib -L/home/zhc123/project/tools/build_for_zbar/libpng-1.6.32/_install/lib -L/home/zhc123/project/tools/build_for_zbar/jpeg-9b/build/_install/lib -L/home/zhc123/project/tools/build_for_zbar/zlib-1.2.11_n972/zlib_build/lib -L/home/zhc123/project/tools/build_for_zbar/graphviz-2.40.1/__install/lib"
  export CFLAGS="-I/home/zhc123/project/tools/build_for_zbar/freetype-2.6.5/__install/include -I/home/zhc123/project/tools/build_for_zbar/freetype-2.6.5/__install/include/freetype2 -I/home/zhc123/project/tools/build_for_zbar/libpng-1.6.32/_install/include -I/home/zhc123/project/tools/build_for_zbar/jpeg-9b/build/_install/include -I/home/zhc123/project/tools/build_for_zbar/zlib-1.2.11_n972/zlib_build/include -I/home/zhc123/project/tools/build_for_zbar/graphviz-2.40.1/__install/include/graphviz"
  cd ImageMagick
  mkdir build
  cd build
  ../configure --prefix=$PWD/__install --disable-installed --without-perl --without-fontconfig --without-pango --without-x --without-fpx --without-xml --without-tiff --without-wmf --disable-openmp --host=arm-linux

  修改Makefile里面的CFLAGS,将x86平台的目录去掉(含有usr/include)
  CFLAGS = -I/home/zhc123/project/tools/build_for_zbar/freetype-2.6.5/__install/include -I/home/zhc123/project/tools/build_for_zbar/freetype-2.6.5/__install/include/freetype2 -I/home/zhc123/project/tools/build_for_zbar/libpng-1.6.32/_install/include -I/home/zhc123/project/tools/build_for_zbar/jpeg-9b/build/_install/include -I/home/zhc123/project/tools/build_for_zbar/zlib-1.2.11_n972/zlib_build/include -I/home/zhc123/project/tools/build_for_zbar/graphviz-2.40.1/__install/include/graphviz -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
  make && make install

7、编译zbar

  export LDFLAGS="-L/home/zhc123/project/tools/build_for_zbar/ImageMagick/build/__install/lib" 
  export CFLAGS=" -I/home/zhc123/project/tools/build_for_zbar/ImageMagick/build/__install/include"
  ./configure --prefix=$PWD/output/ --without-gtk --without-qt --disable-video --without-imagemagick --without-python --enable-static --host=arm-linux

  make&&make install

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
├── BSP │   └── nuc970bsp.tar.gz ├── Board\ Reference │   ├── NuDesign\ Eth2UART │   │   ├── BOM │   │   │   ├── NuDesign\ EtherD\ BOM.xls │   │   │   └── NuDesign\ EtherU\ BOM.xls │   │   ├── GBR │   │   │   ├── NK-NUC972UTE-D_0527_gbr.rar │   │   │   └── NK-NUC972UTE-U_0527_gbr.rar │   │   ├── PCB │   │   │   ├── NK-NUC972UTE-D_0527.asc │   │   │   └── NK-NUC972UTE-U_0527.asc │   │   ├── SCH │   │   │   ├── NUDESIGN\ ETHERU\ 20160504.DSN │   │   │   ├── NuDesign\ EtherD\ 20160504.DSN │   │   │   ├── NuDesign\ EtherD\ 20160504.pdf │   │   │   ├── Thumbs.db │   │   │   └── nudesign\ etheru\ 20160504.pdf │   │   └── User\ Manual │   │   └── NuDesign\ UART2ETH\ User_Manual_EN_Rev\ 1\ 00.pdf │   └── NuMaker\ Tomato │   ├── NuMaker_Tomato_Schematic_1.0.zip │   ├── NuvotonCDC_V1.00.001_Setup.zip │   ├── Tomato_SD_1.0.zip │   └── UM_NuMaker_Tomato_Rev1.00_EN.pdf ├── Documents │   ├── Chinese │   │   ├── NUC970\ Linux\ BSP\ Revision\ History\ CHT.pdf │   │   ├── NUC970\ Linux\ BSP\ User\ Manual\ CHT.pdf │   │   ├── NUC970\ Linux\ Quick\ Start\ Guide\ CHT.pdf │   │   ├── NUC970\ NuWriter\ User\ Manual\ CHT.pdf │   │   └── NUC970\ Programming\ Guide\ CHT.pdf │   └── English │   ├── NUC970\ Linux\ BSP\ Revision\ History\ EN.pdf │   ├── NUC970\ Linux\ BSP\ User\ Manual\ EN.pdf │   ├── NUC970\ Linux\ Quick\ Start\ Guide\ EN.pdf │   ├── NUC970\ NuWriter\ User\ Manual\ EN.pdf │   ├── NUC970\ Programming\ Guide\ EN.pdf │   └── NUC970\ U-Boot\ v2016_11\ User\ Manual\ EN.pdf └── Tools ├── NuWriter │   ├── bin │   │   ├── NuWriter.exe │   │   ├── NuWriter.exe.intermediate.manifest │   │   ├── key_cfg │   │   │   └── key.dat │   │   ├── path.ini │   │   ├── sys_cfg │   │   │   ├── NUC972DF51Y.ini │   │   │   ├── NUC972DF61Y.ini │   │   │   ├── NUC972DF61YC.ini │   │   │   ├── NUC972DF62Y.ini │   │   │   ├── NUC972DF71Y.ini │   │   │   ├── NUC972DF71YC.ini │   │   │   ├── NUC973DF62Y.ini │   │   │   ├── NUC975DK51Y.ini │   │   │   ├── NUC975DK61Y.ini │   │   │   ├── NUC975DK62Y.ini │   │   │   ├── NUC976DK41Y.ini │   │   │   ├── NUC976DK51Y.ini │   │   │   ├── NUC976DK61Y.ini │   │   │   ├── NUC976DK62Y.ini │   │   │   ├── NUC977DK41Y.ini │   │   │   ├── NUC977DK51Y.ini │   │   │   ├── NUC977DK61Y.ini │   │   │   ├── NUC977DK62Y.ini │   │   │   └── NUC978DK61Y.ini │   │   ├── xusb.bin │   │   ├── xusb128.bin │   │   ├── xusb16.bin │   │   └── xusb64.bin │   └── source │   └── README.txt └── WinUSB4NuVCOM_NUC970.exe
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值