Hi,
sudo ./configure -prefix /usr/local/Trolltech/QtEmbedded-5.2.1 -release -shared -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -no-openssl -optimized-qmake -no-nis -no-opengl -no-cups -no-xcursor -no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-separate-debug-info -xplatform linux-myplatform-g++
The configuration result:
Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
No QPA platform plugin enabled!
If you really want to build without a QPA platform plugin you must pass
-no-qpa-platform-guard to configure. Doing this will
produce a Qt that can not run GUI applications.
The dependencies needed for xcb to build are listed in
src/plugins/platforms/xcb/README
cannot generate Makefile,and build。
the linux-myplatform-g++ directory is created by me, Inside, the qmake.conf content as below:
#
qmake configuration for building with arm-linux-g++
#
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)
GCC_PREFIX=/opt/cross_compiler/arm-fsl-linux-gnueabi/bin/arm-linux
modifications to g++.conf
QMAKE_CC = $${GCC_PREFIX}-gcc
QMAKE_CXX = $${GCC_PREFIX}-g++
QMAKE_LINK = $${GCC_PREFIX}-g++
QMAKE_LINK_SHLIB = $${GCC_PREFIX}-g++
modifications to linux.conf
QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_NM = arm-linux-nm -P
QMAKE_STRIP = arm-linux-strip
load(qt_config)
Thanks!
↧