qt arm交叉编译命令
作者:互联网
arm 版本配置命令
#!/bin/sh
../configure -prefix /home/mmm/dev/tools/qt_arm_5126 -verbose -opensource -release -confirm-license -xplatform linux-arm-gnueabihf-g++ -shared -qt-zlib -qt-libjpeg -qt-libpng -make libs -linuxfb -eglfs -no-cups -no-iconv -no-pch -no-opengl -no-openssl
qmake 配置
#
# qmake configuration for building with arm-linux-gnueabihf-g++
#
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)
# modifications to g++.conf
QMAKE_CC = arm-linux-gnueabihf-gcc
QMAKE_CXX = arm-linux-gnueabihf-g++
QMAKE_LINK = arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB = arm-linux-gnueabihf-g++
# modifications to linux.conf
QMAKE_AR = arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY = arm-linux-gnueabihf-objcopy
QMAKE_NM = arm-linux-gnueabihf-nm -P
QMAKE_STRIP = arm-linux-gnueabihf-strip
load(qt_config)
aarch64 armv8版本配置编译命令
#!/bin/sh
../configure -recheck-all -release -extprefix /home/mmm/dev/tools/qt_aarch64_5126 -xplatform linux-aarch64-gnu-g++ -no-openssl -no-opengl -sysroot /home/mmm/dev/tools/3rd/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/sysroot-glibc-linaro-2.25-2019.02-aarch64-linux-gnu
标签:gnueabihf,qt,++,QMAKE,编译,linux,arm 来源: https://blog.csdn.net/nh5431313/article/details/103940853