标题:有谁移植过qtopia-core-opensource-src-4.3.5.tar.gz到arm平台呀?
作者:typing
日期:2009-05-22 13:57
内容:
Ubuntu系统8.04,编译器arm-2007q3-51-arm-none-linux-gnueabi.bin
1. tar xvf qtopia-core-opensource-src-4.3.5.tar.gz
2. cd qtopia-core-opensource-src-4.3.5
修改mkspecs/qws/linux-arm-g++/qmake.conf文件,替换所有arm-linux为arm-none-linux-gnueabi
Qt配置为:echo "yes" |./configure -embedded arm -xplatform qws/linux-arm-g++ -depths 4,8,16,32 -no-qt3support -prefix ${HOME}/work/qt/target -fast -qt-sql-sqlite -no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -optimized-qmake -no-nis -no-separate-debug-info -no-qvfb -qt-gfx-linuxfb -no-gfx-qvfb -qt-kbd-usb -no-kbd-qvfb -no-mouse-qvfb -no-mouse-linuxtp -qt-mouse-pc
此时出现错误:
This is the Qtopia Core Open Source Edition.
You are licensed to use this software under the terms of
the GNU General Public License (GPL) versions 2 or 3.
Type '2' to view the GNU General Public License version 2.
Type '3' to view the GNU General Public License version 3.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of the license?
Creating qmake. Please wait...
g++ -c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -O2 -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/tangyp/work/qtopia-core-opensource-src-4.3.5/src/corelib/arch/generic -I/home/tangyp/work/qtopia-core-opensource-src-4.3.5/include -I/home/tangyp/work/qtopia-core-opensource-src-4.3.5/include/QtCore -I/home/tangyp/work/qtopia-core-opensource-src-4.3.5/include -I/home/tangyp/work/qtopia-core-opensource-src-4.3.5/include/QtCore -I/home/tangyp/work/qtopia-core-opensource-src-4.3.5/src/corelib/global -I/home/tangyp/work/qtopia-core-opensource-src-4.3.5/src/script -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/home/tangyp/work/qtopia-core-opensource-src-4.3.5/mkspecs/qws/linux-x86-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANTpro ..
#1 [smalltiancai 05-22 14:45]
貌似你没有配置交叉编译链吧
#2 [typing 05-22 14:55]
我用export PATH设置的交叉编译链的。可问题依旧呀!
#3 [typing 05-22 15:43]
问题解决了:安装g++(i486-linux-gnu)编译器:sudo apt-get install build-essential