编译 freetype
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 编译
PWD=`pwd`
meson --reconfigure --cross-file cross_config.txt --prefix $PWD/install builddir
ninja -C builddir
ninja -C builddir install
Qt 编译脚本
#!/bin/bash
./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 \
..