pqfeng@ubuntu:~/qt-everywhere-opensource-src-4.8.6$ sudo ./configure -force-pkg-config -opensource -confirm-license -release -shared -embedded arm -xplatform arm-linux-gnueabihf -depths 4,8,16,18,24,32 -fast -optimized-qmake -no-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-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -DQT_ARCH_ARM
[sudo] pqfeng 的密码:
This is the Qt for Embedded Linux Open Source Edition.
You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.
You have already accepted the terms of the license.
Creating qmake. Please wait...
g++ -c -o unixmake2.o -pipe -m64 -DQMAKE_OPENSOURCE_EDITION -O2 -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/include -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/include/QtCore -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib/global -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/src/corelib/xml -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/pqfeng/qt-everywhere-opensource-src-4.8.6/mkspecs/qws/linux-x86_64-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DEPRECATED generators/unix/unixmake2.cpp
^Cmake: *** wait: 没有子进程。 停止。
make: *** 正在等待未完成的任务....
make: *** wait: 没有子进程。 停止。
我明明配置了嵌入式编译环境,运行时却是g++,在这个配置完成后,make也是g++编译出的PC版。不知道为什么。附:我在mkspace 下有arm-linux-gnueabihf目录。
离线
sudo ./configure --host=arm-linux -force-pkg-config -opensource -confirm-license -release -shared -embedded arm -xplatform arm-linux-gnueabihf -depths 4,8,16,18,24,32 -fast -optimized-qmake -no-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-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -DQT_ARCH_ARM
[sudo] pqfeng 的密码:
--host=arm-linux: invalid command-line switch
没有这个参数选项。。。。。
离线
是的,可能那个是正常的,可能是先用g++生成文件,然后再用交叉编译生成执行程序。看了运行数据显示好像正常的
离线