嵌入式爱好者

查看: 7559|回复: 1

[Linux] 增加qwt后,编译工程文件出错,库信息已经贴出来了

[复制链接]

14

主题

51

帖子

95

积分

扫一扫,手机访问本帖
发表于 2014-4-4 11:58:30 | 显示全部楼层 |阅读模式
root@forlinx-virtual-machine:~/2014040209# make
/witech/builddir/sdk/qtopiacore/target/bin/uic widget.ui -o ui_widget.h
arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. -o widget.o widget.cpp
/witech/builddir/sdk/qtopiacore/target/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. widget.h -o moc_widget.cpp
arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. -o moc_widget.o moc_widget.cpp
arm-linux-g++ -Wl,-rpath,/witech/builddir/sdk/qtopiacore/target/lib -o 2014040209 main.o widget.o moc_widget.o    -L/witech/builddir/sdk/qtopiacore/target/lib -L /qtqwt/qwt-6.0.2-arm/lib/ -lqwt -lQtGui -L/usr/local/tslib/lib -L/witech/builddir/sdk/qtopiacore/target/lib -lts -lQtNetwork -lQtCore -lm -lrt -ldl -lpthread
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QLayout'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QFutureInte**ceBase'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QObject'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QFrame'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QPaintDevice'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QWidget'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QPaintEngine'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QPushButton'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QTextDocument'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QThread'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QScrollArea'
collect2: ld returned 1 exit status
make: *** [2014040209] Error 1

以上是错误信息,库信息如下
root@forlinx-virtual-machine:/qtqwt/qwt-6.0.2-arm/lib# file libqwt.so.6.0.2
libqwt.so.6.0.2: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not stripped
root@forlinx-virtual-machine:/qtqwt/qwt-6.0.2-arm/lib# ls
libqwtmathml.so    libqwtmathml.so.6.0    libqwt.so    libqwt.so.6.0
libqwtmathml.so.6  libqwtmathml.so.6.0.2  libqwt.so.6  libqwt.so.6.0.2
root@forlinx-virtual-machine:/qtqwt/qwt-6.0.2-arm/lib# ll
total 1436
drwxr-xr-x 2 root root     4096 Apr  4 09:26 ./
drwxr-xr-x 8  500 users    4096 Apr  4 09:25 ../
lrwxrwxrwx 1 root root       21 Apr  4 09:26 libqwtmathml.so -> libqwtmathml.so.6.0.2*
lrwxrwxrwx 1 root root       21 Apr  4 09:26 libqwtmathml.so.6 -> libqwtmathml.so.6.0.2*
lrwxrwxrwx 1 root root       21 Apr  4 09:26 libqwtmathml.so.6.0 -> libqwtmathml.so.6.0.2*
-rwxr-xr-x 1 root root   301296 Apr  4 09:26 libqwtmathml.so.6.0.2*
lrwxrwxrwx 1 root root       15 Apr  4 09:26 libqwt.so -> libqwt.so.6.0.2*
lrwxrwxrwx 1 root root       15 Apr  4 09:26 libqwt.so.6 -> libqwt.so.6.0.2*
lrwxrwxrwx 1 root root       15 Apr  4 09:26 libqwt.so.6.0 -> libqwt.so.6.0.2*
-rwxr-xr-x 1 root root  1158025 Apr  4 09:26 libqwt.so.6.0.2*
root@forlinx-virtual-machine:/qtqwt/qwt-6.0.2-arm/lib#
求大神指点
回复

使用道具 举报

14

主题

51

帖子

95

积分

 楼主| 发表于 2014-4-4 19:30:20 | 显示全部楼层
额,,,,还好吧,这个一眼看就清楚吧!出错信息,已经出错的库的详细信息都很明了哈,,,我是知道是在链接库这方面出了问题,但是自己无能力解决哦,,,,,,,
该会员没有填写今日想说内容.
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-21 18:32

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表