qt5.2交叉编译移植到arm(s5pv210)

1、下载qt-everywhere-opensource-src-5.2.0.tar.xz源码,链接:http://download.qt.io/archive/qt/5.2/5.2.0/single/

2、解压tar xJf tar xJf qt-everywhere-opensource-src-5.2.0.tar.xz

3、cd qt-everywhere-opensource-src-5.2.0/qtbase/mkspecs/linux-arm-gnueabi-g++/找到qmake.config,修改如下

#
# qmake configuration for building with arm-linux-gnueabi-g++
#

MAKEFILE_GENERATOR      = UNIX
CONFIG                 += incremental
QMAKE_INCREMENTAL_STYLE = sublib

#linuxfb: linux平台下的framebuffer设备

QT_QPA_DEFAULT_PLATFORM =linuxfb     #指定Qt运行平台 EGLFS, LinuxFB, KMS, DirectFB, Wayland,                 
QMAKE_CFLAGS_RELEASE    += -O2 -march=armv7-a         #O2为优化选项,march指处理器架构,s5pv210的架构是armv7
QMAKE_CXXFLAGS_RELEASE  += -O2 -march=armv7-a

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

你可能感兴趣的:(杂项)