Build qt for omap35xx

1. 拷贝一个新的qmake配置 qws/arm-linux-none-gnueabi   qws/arm-linux-omap35-none-gnueabi 

2.修改qmake.conf

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

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

#Compiler Flags to take advantage of the ARM architecture
QMAKE_CFLAGS_RELEASE =   -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp

# modifications to g++.conf
QMAKE_CC                = arm-none-linux-gnueabi-gcc
QMAKE_CXX               = arm-none-linux-gnueabi-g++
QMAKE_LINK              = arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB        = arm-none-linux-gnueabi-g++

# modifications to linux.conf
QMAKE_AR                = arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY           = arm-none-linux-gnueabi-objcopy
QMAKE_STRIP             = arm-none-linux-gnueabi-strip

load(qt_config)

3. configure qt (我的机器)

export PATH=/root/qt-4.7.3/bin:/opt/CodeSourcery/Sourcery_G++_Lite/bin:$PATH
export LIBRARY_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/lib
export C_INCLUDE_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/include
export CPLUS_INCLUDE_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/include
./configure -embedded arm -xplatform qws/linux-arm-omap35-gnueabi-g++ -prefix /usr -opensource -L /root/qt-4.7.3/lib
make


你可能感兴趣的:(Build qt for omap35xx)