• 8925阅读
  • 7回复

[请教] Qtopia 4.3.2 编译成功后,在s3c2440目标板子上不能正常运行 [复制链接]

上一主题 下一主题
离线edgepoly
 
只看楼主 倒序阅读 楼主  发表于: 2009-06-14
用的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 ***
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
List of tree roots: 2nd reference to page 75
Page 1 is never used
Page 2 is never used
Page 3 is never used
Page 4 is never used
Page 5 is never used
Page 6 is never used
Page 7 is never used
Page 8 is never used
Page 9 is never used
Page 10 is never used
Page 11 is never used
Page 12 is never used
Page 13 is never used
Page 14 is never used
Page 15 is never used
Page 16 is never used
Page 17 is never used
Page 18 is never used
Page 19 is never used
Integrity check of "/tmp/qtopia-0/usr/qtopia_db.sqlite" failed
*** in database main ***
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
List of tree roots: 2nd reference to page 113
Page 1 is never used
Page 2 is never used
Page 3 is never used
Page 4 is never used
Page 5 is never used
Page 6 is never used
Page 7 is never used
Page 8 is never used
Page 9 is never used
Page 10 is never used
Page 11 is never used
Page 12 is never used
Page 13 is never used
Page 14 is never used
Page 15 is never used
Page 16 is never used
Page 17 is never used
Page 18 is never used
Page 19 is never used
udevd-event[2425]: rmdir(//dev) failed: Device or resource busy

bash-4.0# udevd-event[2427]: rmdir(//dev) failed: Device or resource busy



目标机液晶屏上上会出现 Qtopia 起动画面一闪而过的现象,大概1到2秒的过程,程序就退出了。


因为我看到 是 这个Integrity check of "//Applications/Qtopia/qtopia_db.sqlite" failed 错误,凝是
sqlite 的问题,所以又在configure 里加了  -qt-sql-sqlite 的选项,还是没有用啊。

已经弄了好几个通宵了,还是没有移植成功啊。


望哪位大侠能够帮助在下,或者将自己成功编译的方法与大家分享一下,小弟在此先谢了!





离线gvim
只看该作者 1楼 发表于: 2009-06-14
先跑一个自己编译的GUI版的"hello,world"看看。
然后再来调大程序
Qt,Qt! 分享Cute之Qt体验
欢迎访问 http://www.cuteqt.com
欢迎订阅 http://www.cuteqt.com/?feed=rss2

离线edgepoly
只看该作者 2楼 发表于: 2009-06-14
好慢啊,今天花了一个下午把  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 constructor 'BookDelegate::BookDelegate(QObject*)':
books/bookdelegate.cpp:47: error: class 'BookDelegate' does not have any field named 'QSqlRelationalDelegate'
books/bookdelegate.cpp: At global scope:
books/bookdelegate.cpp:52: error: prototype for 'void BookDelegate::paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const' does not match any in class 'BookDelegate'
books/bookdelegate.h:58: error: candidate is: void BookDelegate::paint(QPainter*, int) const
books/bookdelegate.cpp: In member function 'void BookDelegate::paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const':
books/bookdelegate.cpp:57: error: 'QSqlRelationalDelegate' has not been declared
books/bookdelegate.cpp:75: error: 'drawFocus' was not declared in this scope
books/bookdelegate.cpp: At global scope:
books/bookdelegate.cpp:86: error: prototype for 'QSize BookDelegate::sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const' does not match any in class 'BookDelegate'
books/bookdelegate.h:60: error: candidate is: QSize BookDelegate::sizeHint(int) const
books/bookdelegate.cpp: In member function 'QSize BookDelegate::sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const':
books/bookdelegate.cpp:91: error: 'QSqlRelationalDelegate' has not been declared
books/bookdelegate.cpp: At global scope:
books/bookdelegate.cpp:96: error: prototype for 'bool BookDelegate::editorEvent(QEvent*, QAbstractItemModel*, const QStyleOptionViewItem&, const QModelIndex&)' does not match any in class 'BookDelegate'
books/bookdelegate.h:64: error: candidate is: bool BookDelegate::editorEvent(QEvent*, QAbstractItemModel*, int)
books/bookdelegate.cpp: In member function 'bool BookDelegate::editorEvent(QEvent*, QAbstractItemModel*, const QStyleOptionViewItem&, const QModelIndex&)':
books/bookdelegate.cpp:99: error: 'QSqlRelationalDelegate' has not been declared
books/bookdelegate.cpp: At global scope:
books/bookdelegate.cpp:113: error: prototype for 'QWidget* BookDelegate::createEditor(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const' does not match any in class 'BookDelegate'
books/bookdelegate.h:67: error: candidate is: QWidget* BookDelegate::createEditor(QWidget*, int) const
books/bookdelegate.cpp: In member function 'QWidget* BookDelegate::createEditor(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const':
books/bookdelegate.cpp:116: error: 'QSqlRelationalDelegate' has not been declared
make: *** [bookdelegate.o] Error 1
离线gvim
只看该作者 3楼 发表于: 2009-06-14
呵呵,可能编译embedded的时候没有enable sql吧。
Qt,Qt! 分享Cute之Qt体验
欢迎访问 http://www.cuteqt.com
欢迎订阅 http://www.cuteqt.com/?feed=rss2

离线edgepoly
只看该作者 4楼 发表于: 2009-06-17
引用楼主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
.......




这个有人知道吗?

谢谢了
离线123_123
只看该作者 5楼 发表于: 2009-06-21
上面这个应该是交叉编译吧.是不是arm-linux-gcc-4.2.1?我现在也在做这个移植,有没有兴趣一起交流.qq:283887936
离线yiyuan
只看该作者 6楼 发表于: 2010-01-05
你好,
我现在也在玩qt的交叉编译

但我在运行 fluidlauncher 时候, 出现了严重的颜色失真,请问,你有遇到这样的事情嘛?

再就是,你怎么配置的你的arm 大小端的呢 ?

感谢
离线lhembed
只看该作者 7楼 发表于: 2010-06-06
引用第3楼gvim于2009-06-14 22:03发表的  :
呵呵,可能编译embedded的时候没有enable sql吧。

在哪里设置?
快速回复
限100 字节
 
上一个 下一个