【QT学习】S5P6818交叉编译QT4.8.6
作者:互联网
(一)下载qt4.8.6源码
(二)配置编译平台
进入qt-everywhere-opensource-src-4.8.6/mkspecs/qws目录,新建arm-cortex_a9-linux-gnueabi-g++目录,复制linux-arm-g++目录下的所有文件到arm-cortex_a9-linux-gnueabi-g++
mkdir -parm-cortex_a9-linux-gnueabi-g++
cp –a linux-arm-g++/*arm-cortex_a9-linux-gnueabi-g++
(三)修改qmake.conf
进入linux-hi3559-g++,修改文件qmake.conf
vi linux-hi3559-g++/qmake.conf
vi linux-hi3559-g++/qmake.conf
include(…/…/common/linux.conf)
include(…/…/common/gcc-base-unix.conf)
include(…/…/common/g+±unix.conf)
include(…/…/common/qws.conf)
QCROSS_HI3531?=arm-cortex_a9-linux-gnueabi
modifications to g++.conf
QMAKE_CC = $(QCROSS_HI3531)-gcc
QMAKE_CXX = $(QCROSS_HI3531)-g++
QMAKE_LINK = $(QCROSS_HI3531)-g++
QMAKE_LINK_SHLIB = $(QCROSS_HI3531)-g++
modifications to linux.conf
QMAKE_AR = $(QCROSS_HI3531)-ar cqs
QMAKE_OBJCOPY = $(QCROSS_HI3531)-objcopy
QMAKE_STRIP = $(QCROSS_HI3531)-strip
modifications to g++.conf
QMAKE_CC = aarch64-himix100-linux-gcc
QMAKE_CXX = aarch64-himix100-linux-g++
QMAKE_LINK = aarch64-himix100-linux-g++
QMAKE_LINK_SHLIB = aarch64-himix100-linux-g++
modifications to linux.conf
QMAKE_AR = aarch64-himix100-linux-ar cqs
QMAKE_OBJCOPY = aarch64-himix100-linux-objcopy
QMAKE_STRIP = aarch64-himix100-linux-strip
load(qt_config)
(四)生成Makefile
./configure --prefix=/usr/local/Qt4.8.6 -opensource -confirm-license -qt-sql-sqlite -qt-gfx-linuxfb -plugin-sql-sqlit -no-qt3support -no-phonon -no-svg -no-webkit -no-javascript-jit -no-script -no-scripttools -no-declarative -no-declarative-debug -qt-zlib -no-gif -qt-libtiff -qt-libpng -no-libmng -qt-libjpeg -no-rpath -no-pch -no-3dnow -no-avx -no-neon -no-openssl -no-nis -no-cups -no-dbus -embedded arm -platform linux-g++ -xplatform qws/arm-cortex_a9-linux-gnueabi-g++ -little-endian -qt-freetype -no-opengl -no-glib -nomake demos -nomake examples -nomake docs -nomake tools
(五)编译完成
Make
Make install
与光同程 发布了62 篇原创文章 · 获赞 60 · 访问量 1万+ 私信 关注标签:QT,conf,no,++,QMAKE,S5P6818,linux,QT4.8,qt 来源: https://blog.csdn.net/yy197696/article/details/104447570