解压源码包后进入目录使用
./configure \
-prefix /usr/local/Trolltech/QtEmbedded-4.6.2-arm \
-opensource \
-confirm-license \
-release -shared \
-embedded arm \
-xplatform qws/linux-arm-g++ \
-depths 16,18,24 \
-fast \
-optimized-qmake \
-pch \
-qt-sql-sqlite \
-qt-libjpeg \
-qt-zlib \
-qt-libpng \
-qt-freetype \
-little-endian -host-little-endian \
-no-qt3support \
-no-libtiff -no-libmng \
-no-opengl \
-no-mmx -no-sse -no-sse2 \
-no-3dnow \
-no-openssl \
-no-webkit \
-no-qvfb \
-no-phonon \
-no-nis \
-no-opengl \
-no-cups \
-no-glib \
-no-xcursor -no-xfixes -no-xrandr -no-xrender \
-no-separate-debug-info \
-nomake examples -nomake tools -nomake docs \
-qt-mouse-tslib
配置错误,错误信息如下:
arm-linux-g++ -c -o qfile.o -pipe -DQWS -fno-exceptions -fno-rtti -DQMAKE_OPENSOURCE_EDITION -Os -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/include -I/opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/include/QtCore -I/opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/src/corelib/global -I/opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/src/corelib/xml -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT /opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/src/corelib/io/qfile.cpp
/opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/src/corelib/io/qfile.cpp: In member function 'bool QFile::open(FILE*, QFlags<QIODevice::OpenModeFlag>)':
/opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/src/corelib/io/qfile.cpp:1068: error: 'QT_FTELL' was not declared in this scope
/opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/src/corelib/io/qfile.cpp: In member function 'bool QFile::open(int, QFlags<QIODevice::OpenModeFlag>)':
/opt/FriendlyARM/mini2440/qt-everywhere-opensource-src-4.6.0/src/corelib/io/qfile.cpp:1128: error: 'QT_OFF_T' was not declared in this scope
gmake: *** [qfile.o] Error 1
附图片版,
跪求大神指导。。我已经将qt库的几个版本和arm-linux-gcc的几个版本排列组合编译了n遍了