AnsweredAssumed Answered

QT5.3.2 ARM build's issure

Question asked by haibo he on Aug 25, 2015

arm-gcc: /opt/arm/arm-linux-gcc-4.9/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

使用QT为:qt-everywhere-opensource-src-5.3.2.tar.gz

修改的文件为:qtbase\mkspecs\linux-arm-gnueabi-g++\qmake.conf

#

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

#

MAKEFILE_GENERATOR      = UNIX

CONFIG                 += incremental gdb_dwarf_index

QMAKE_INCREMENTAL_STYLE = sublib

 

QT_QPA_DEFAULT_PLATFORM = linuxfb

QMAKE_CFLAGS_RELEASE   += -O2 -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9

QMAKE_CXXFLAGS_RELEASE += -O2 -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9

 

include(../common/linux.conf)

include(../common/gcc-base-unix.conf)

include(../common/g++-unix.conf)

 

# modifications to g++.conf

QMAKE_CC                = arm-poky-linux-gnueabi-gcc

QMAKE_CXX               = arm-poky-linux-gnueabi-g++

QMAKE_LINK              = arm-poky-linux-gnueabi-g++

QMAKE_LINK_SHLIB        = arm-poky-linux-gnueabi-g++

 

# modifications to linux.conf

QMAKE_AR                = arm-poky-linux-gnueabi-ar cqs

QMAKE_OBJCOPY           = arm-poky-linux-gnueabi-objcopy

QMAKE_NM                = arm-poky-linux-gnueabi-nm -P

QMAKE_STRIP             = arm-poky-linux-gnueabi-strip

load(qt_config)

 

 

配制选项为:./configure -prefix $PWD/qtbase -xplatform linux-arm-gnueabi-g++ -opensource -no-c++11 -qreal float -nomake examples

 

 

交叉编绎之后就是没有libQt5WebKit.so.5.3.2和libQt5WebKitWidgets.so.5.3.2两个库:

 

 

用./configure -prefix $PWD/qtbase -opensource -no-c++11 -qreal float -nomake examples 命令,不指定交叉编绎会生成上面两个库

Outcomes