首页| 论坛| 消息

标题:[请教] Qtopia 4.3.2 编译成功后,在s3c2440目标板子上不能正常运行
作者:edgepoly
日期:2009-06-14 11:08
内容:

用的gcc 版本如下:
Configured with: /home/jennifer/maxwit/build/gcc-4.2.1/configure --prefix=/usr --build=i486-linux-gnu --host=i486-linux-gnu --target=arm-maxwit-linux-gnueabi --with-sysroot=/home/jennifer/maxwit/sysroot --with-gmp=/home/jennifer/maxwit/utils_tmp --with-mpfr=/home/jennifer/maxwit/utils_tmp --disable-multilib --disable-nls --enable-shared --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix --enable-languages=c,c++ --with-float=soft --with-cpu=arm920t
Thread model: posix
gcc version 4.2.1

主机是: debian-500-i386

Qtopia 源码包是: qtopia-opensource-src-4.3.2
编译步骤如下:
${BUILD_PATH}/${QTOPIA_VERSION}/configure \
-prefix /usr \
-arch arm \
-xplatform linux-arm-g++ \
-no-qvfb \
-displaysize 480x272 \
-extra-qtopiacore-config "-release -xplatform qws/linux-arm-g++ -embedded arm -qconfig qpe -depths 8,16,32 -qt-sql-sqlite " \
-no-test \
-no-examples \
-no-modem \
-confirm-license \
-no-qtopiamedia \
-no-bluetooth \
-no-sxe
make && make install
能够正常编译成功
将image/* 下的所有目录copy 到 目标机器上的/usr目录下,

在目录机上运行 qpe(或者qpe -qws) 出现如下错误信息:
bash-4.0# qpe
Warning: Display size not set.Using default DPI
Integrity check of "//Applications/Qtopia/qtopia_db.sqlite" failed
*** in database main ..


#1 [gvim 06-14 15:10]
先跑一个自己编译的GUI版的"hello,world"看看。
然后再来调大程序
#2 [edgepoly 06-14 20:04]
好慢啊,今天花了一个下午把Qt -embedded 编译好了
在编译demos 时发现错误:

arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.5.1-arm/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/Trolltech/QtEmbedded-4.5.1-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.5.1-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.5.1-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.5.1-arm/include -I. -I. -Iaffine -Ishared -Ideform -Igradients -Ipathstroke -Icomposition -Ibooks -Iboxes -Iboxes/3rdparty -Ibrowser -Ichip -Iembeddeddialogs -Iinterview -Imacmainwindow -Imainwindow -Imediaplayer -Iqtdemo -Ispreadsheet -Isqlbrowser -Itextedit -Iundo -Iembedded/embeddedsvgviewer -Iembedded/fluidlauncher -Iembedded/styledemo -I. -I. -o bookdelegate.o books/bookdelegate.cpp
In file included from books/bookdelegate.cpp:42:
books/bookdelegate.h:48:34: error: QSqlRelationalDelegate: No such file or directory
In file included from books/bookdelegate.cpp:42:
books/bookdelegate.h:53: error: expected class-name before '{' token
books/bookdelegate.h:57: error: expected ',' or '...' before '&' token
books/bookdelegate.h:58: error: ISO C++ forbids declaration of 'QStyleOptionViewItem' with no type
books/bookdelegate.h:60: error: expected ',' or '...' before '&' token
books/bookdelegate.h:60: error: ISO C++ forbids declaration of 'QStyleOptionViewItem' with no type
books/bookdelegate.h:63: error: expected ',' or '...' before '&' token
books/bookdelegate.h:64: error: ISO C++ forbids declaration of 'QStyleOptionViewItem' with no type
books/bookdelegate.h:66: error: expected ',' or '...' before '&' token
books/bookdelegate.h:67: error: ISO C++ forbids declaration of 'QStyleOptionViewItem' with no type
books/bookdelegate.cpp: In co ..
#3 [gvim 06-14 22:03]
呵呵,可能编译embedded的时候没有enable sql吧。
#4 [edgepoly 06-17 21:12]
引用楼主edgepoly于2009-06-14 11:08发表的 [请教] Qtopia 4.3.2 编译成功后,在s3c2440目标板子上不能正常运行 :
用的gcc 版本如下:
Configured with: /home/jennifer/maxwit/build/gcc-4.2.1/configure --prefix=/usr --build=i486-linux-gnu --host=i486-linux-gnu --target=arm-maxwit-linux-gnueabi --with-sysroot=/home/jennifer/maxwit/sysroot --with-gmp=/home/jennifer/maxwit/utils_tmp --with-mpfr=/home/jennifer/maxwit/utils_tmp --disable-multilib --disable-nls --enable-shared --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix --enable-languages=c,c++ --with-float=soft --with-cpu=arm920t
Thread model: posix
gcc version 4.2.1
.......

这个有人知道吗?
谢谢了
#5 [123_123 06-21 11:47]
上面这个应该是交叉编译吧.是不是arm-linux-gcc-4.2.1?我现在也在做这个移植,有没有兴趣一起交流.qq:283887936

<< 1 2 >> (1/2)

回复 发表
主题 版块