编译脚本

编译 freetype
# !/bin/sh
PWD=`pwd`

./configure -v \
    CC=aarch64-himix100-linux-gcc \
    --host=arm-linux \
    --with-zlib=yes \
    --with-png=yes \
    CFLAGS="-I$PWD/zlib-1.2.11/install/include -I$PWD/libpng-1.6.37/install/include" \
    LDFLAGS="-L$PWD/zlib-1.2.11/install/lib -L$PWD/libpng-1.6.37/install/lib -lpng16" \
    prefix=$PWD/install
编译 Glib-2.6.3
glib 配置 cross_file.txt
[host_machine]
system = ''
cpu_family = 'aarch64'
cpu = 'AArch64'
endian = 'little'

[properties]
c_args = []
c_link_args = []

[binaries]
c = 'aarch64-himix100-linux-gcc'
cpp = 'aarch64-himix100-linux-g++'
ar = 'aarch64-himix100-linux-ar'
objcopy = 'aarch64-himix100-linux-objcopy'
strip = 'aarch64-himix100-linux-strip'
glib 编译
# !/bin/bash
PWD=`pwd`

meson --reconfigure --cross-file cross_config.txt --prefix $PWD/install builddir

ninja -C builddir

ninja -C builddir install

Qt 编译脚本

#!/bin/bash

# configure bash for qt5.12.3
# aarch64
./configure -v \
        -opensource \
        -confirm-license \
        -prefix ./install \
        -release \
        -linuxfb \
        -strip \
        -xplatform  linux-aarch64-gnu-g++ \
        -optimized-qmake \
        -no-rpath \
        -no-pch \
        -no-avx \
        -no-openssl \
        -no-cups \
        -no-dbus \
        -no-gif \
        -no-pkg-config \
        -no-glib \
        -qt-zlib \
        -qt-libpng \
        -qt-libjpeg \
        -qt-sqlite \
        -qt-freetype \
        -shared \
        -opengl es2 \
        -eglfs  \
        -make libs \
        -nomake examples -nomake tools

Opencv 编译脚本

# 
mkdir build
#
cd build
#
cmake \
	-DCMAKE_BUILD_TYPE=RELEASE \
	-DCMAKE_C_COMPILER=/opt/aarch64-himix100-linux/bin/aarch64-himix100-linux-gcc \
	-DCMAKE_CXX_COMPILER=/opt/aarch64-himix100-linux/bin/aarch64-himix100-linux-g++ \
	-DBUILD_SHARED_LIBS=ON \
	-DCMAKE_CXX_FLAGS=-fPIC \
	-DCMAKE_C_FLAGS=-fPIC \
	-DCMAKE_EXE_LINKER_FLAGS=-lpthread -lrt -ldl \
	-DENABLE_PIC=ON \
	-DWITH_1394=OFF \
	-DWITH_ARAVIS=OFF \
	-DWITH_ARITH_DEC=ON \
	-DWITH_ARITH_ENC=ON \
	-DWITH_CLP=OFF \
	-DWITH_CUBLAS=OFF \
	-DWITH_CUDA=OFF \
	-DWITH_CUFFT=OFF \
	-DWITH_FFMPEG=ON \
	-DWITH_GSTREAMER=ON \
	-DWITH_GSTREAMER_0_10=OFF \
	-DWITH_HALIDE=OFF \
	-DWITH_HPX=OFF \
	-DWITH_IMGCODEC_HDR=ON \
	-DWITH_IMGCODEC_PXM=ON \
	-DWITH_IMGCODEC_SUNRASTER=ON \
	-DWITH_INF_ENGINE=OFF \
	-DWITH_IPP=OFF \
	-DWITH_ITT=OFF \
	-DWITH_JASPER=ON \
	-DWITH_JPEG=ON \
	-DHISI3559A=1 \
	-DWITH_PNG=ON \
	-DWITH_LAPACK=ON \
	-DWITH_LIBREALSENSE=OFF \
	-DWITH_NVCUVID=OFF \
	-DWITH_OPENCL=OFF \
	-DWITH_OPENCLAMDBLAS=OFF \
	-DWITH_OPENCLAMDFFT=OFF \
	-DWITH_OPENCL_SVM=OFF \
	-DWITH_OPENEXR=OFF \
	-DWITH_OPENGL=OFF \
	-DWITH_OPENMP=OFF \
	-DWITH_OPENNNI=OFF \
	-DWITH_OPENNNI2=OFF \
	-DWITH_OPENVX=OFF \
	-DWITH_PROTOBUF=OFF \
	-DWITH_PTHREADS_PF=ON \
	-DWITH_PVAPI=OFF \
	-DWITH_QT=OFF \
	-DWITH_QUIRC=OFF \
	-DWITH_TBB=OFF \
	-DWITH_TIFF=ON \
	-DWITH_VULKAN=OFF \
	-DWITH_WEBP=ON \
	-DWITH_XIMEA=OFF \
	-DWITH_GTK=OFF \
	-DINSTALL_C_EXAMPLES=ON \
	-DINSTALL_PYTHON_EXAMPLES=OFF \
	-DBUILD_EXAMPLES=ON \
	-DCMAKE_INSTALL_PREFIX=./install \
	..
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值