qt arm交叉编译命令

拈花ヽ惹草 提交于 2020-01-13 04:52:51

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!