移植QT出现如下问题!

zorrosea 2010-10-17 08:57:12
大家好,这2天想移植QT到DK8000上面。我编译tslib成功了,并且ts_test程序测试成功。现在在移植QT的时候出现如下错误。我根据错误提示修改了/home/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-arm-g++里的QMAKE_INCDIR和QMAKE_LIBDIR,指向了tslib/build/include和tslib/build/lib。但是为什么还会出现如下错误呢?希望哪位朋友能帮我看看,谢谢!


root@ubuntu:/home/qt-embedded-linux-opensource-src-4.4.3# ./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 -qt-mouse-tslib -v

This is the Qt for Embedded Linux Open Source Edition.

Determining system architecture... (Linux:2.6.28-11-generic:i686)
32-bit Intel 80x86 (i386)
'arm' is supported
'i386' is supported
System architecture: 'arm'
Host architecture: 'i386'
Precompiled-headers support disabled.
Symbol visibility control enabled.
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 either license? yes

Creating qmake. Please wait...
make: Nothing to be done for `first'.
floatmath auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
floatmath disabled.
mmx auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
mmx disabled.
3dnow auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
3dnow disabled.
sse auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
sse disabled.
sse2 auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
sse2 disabled.
InterBase auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
MySQL (thread-unsafe) disabled.
ODBC auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
ODBC disabled.
PostgreSQL auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
PostgreSQL disabled.
SQLite2 auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
SQLite2 disabled.
Cups auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
Cups disabled.
D-Bus auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
D-Bus disabled.
Glib auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
Glib disabled.
tslib auto-detection... ()
/home/qt-embedded-linux-opensource-src-4.4.3/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
make: *** No targets specified and no makefile found. Stop.
tslib disabled.
The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/home/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-arm-g++.
...全文
673 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
zorrosea 2010-10-20
  • 打赏
  • 举报
回复
配置的问题解决了。换了个平台,将9.04换成8.04即可。
DIE654456 2010-10-18
  • 打赏
  • 举报
回复
-optimized-qmake 少用
-xplatform qws/linux-arm-g++ 试一下-xplatform linux-arm-g++
Linux-Torvalds 2010-10-18
  • 打赏
  • 举报
回复
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR
继续改变一下,设置还是有问题。
机器就是这么提示的。
zorrosea 2010-10-18
  • 打赏
  • 举报
回复
make clean不能吧?这个目录下没有makefile啊
帅得不敢出门 2010-10-18
  • 打赏
  • 举报
回复
前一个礼拜刚刚把这玩意搞定
我记得这样可以
如果不行,可以发信息给我,不一定及时看信息就是了
帅得不敢出门 2010-10-18
  • 打赏
  • 举报
回复
如果改了那么一般没有问题了
你make clean后
再make
试试
zorrosea 2010-10-18
  • 打赏
  • 举报
回复
悲剧啦,问题没解决,是我搞错了。还是出现同样的错误。哎,真不严谨!!
zorrosea 2010-10-18
  • 打赏
  • 举报
回复
大家好,问题解决了。但是我不知道原因,很奇怪。就是不要在QT的目录下./configure。只要换到上一层就好了。
zorrosea 2010-10-18
  • 打赏
  • 举报
回复
非常感谢楼上2位的留言。我确定这个路径肯定是对的。我怀疑是不是在编译tslib的时候,某些库文件没有生成,或者是需要自己加上一些库文件。我tslib/build/下的文件如下:
bin etc include lib
include文件夹下内容为:tslib.h
lib文件内容为:libts-0.0.so.0 libts-0.0.so.0.1.1 libts.la libts.so pkgconfig ts
ts文件夹下位:
arctic2.la corgi.la h3600.la linear_h2200.la mk712.la ucb1x00.la
arctic2.so corgi.so h3600.so linear_h2200.so mk712.so ucb1x00.so
collie.la dejitter.la input.la linear.la pthres.la variance.la
collie.so dejitter.so input.so linear.so pthres.so variance.so

不知道是不是某些库没有生成。希望哪位朋友能帮我看看,谢谢。

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧