首页| 论坛| 消息

标题:安装qtx11后,编译qvfb总出错,贴出来大家看看
作者:fight
日期:2009-05-14 11:13
内容:

./configure -static-prefix usr/qt -no-opengl -no-sm -qvfb
我用上面到命令配置,然后按照系统的提示用gmake、gmake install 安装。
完成我进入 tools\qvfb 目录下, qmake -project、qmake、make,先是提示找不到,deviceskin.h,我考了一个到 include中,现在又提示
.obj/release-static/qvfb.o: In function `QVFb::setZoom(double)':
qvfb.cpp:(.text+0x576): undefined reference to `DeviceSkin::setTransform(QMatrix const&)'
.obj/release-static/qvfb.o: In function `QVFb::enableCursor(bool)':
qvfb.cpp:(.text+0x7c1): undefined reference to `DeviceSkin::hasCursor() const'
.obj/release-static/qvfb.o: In function `QVFb::skinConfigChosen(int)':
qvfb.cpp:(.text+0x5cd6): undefined reference to `DeviceSkinParameters::read(QString const&, DeviceSkinParameters::ReadMode, QString*)'
.obj/release-static/qvfb.o: In function `QVFb::init(int, int, int, int, int, QString const&)':
qvfb.cpp:(.text+0x6863): undefined reference to `DeviceSkinParameters::read(QString const&, DeviceSkinParameters::ReadMode, QString*)'
qvfb.cpp:(.text+0x688f): undefined reference to `DeviceSkin::DeviceSkin(DeviceSkinParameters const&, QWidget*)'
qvfb.cpp:(.text+0x69af): undefined reference to `DeviceSkin::setView(QWidget*)'
qvfb.cpp:(.text+0x6d57): undefined reference to `DeviceSkinParameters::hasSecondaryScreen() const'
qvfb.cpp:(.text+0x73a4): undefined reference to `DeviceSkinParameters::secondaryScreenSize() const'
qvfb.cpp:(.text+0x741e): undefined reference to `DeviceSkin::setSecondaryView(QWidget*)'
.obj/release-static/x11keyfaker.o: In function `X11KeyFaker::sendKeyEvent(int, bool)':
x11keyfaker.cpp:(.text+0x3a3): undefined reference to `XTestFakeKeyEvent'
x11keyfaker.cpp:(.text+0x765): undefined reference to `XTestFakeKeyEvent'
x11keyfaker.cpp:(.text+0x794): undefined reference to `XTestFakeKeyEvent'
x11keyfaker.cpp:(.text+0x7be): undefined reference to `XTestFakeKeyEvent'
x11keyfaker.cpp:(.te ..


#1 [bhwbj 05-14 13:36]
会不会和-static有关?一般都是编译动态库-shared,我编译qt-x11-4.5.1是没出过错的。
#2 [fight 05-14 16:13]
能把你编译时用到参数告诉我吗?谢谢
#3 [bhwbj 05-14 16:22]
./configure -qvfb-no-openssl
你可以先运行下./configure -h > log_cfg,这样会得到配置帮助说明(E文的)。里边写的清楚,默认不加的话就是-shared
#4 [jzj139 05-14 17:07]
很明显是link的时候出错了
原因:
可能是环境变量没有处理对
#5 [gvim 05-14 19:46]
http://www.cuteqt.com/blog/?p=55
参考这个文章吧,你只拷贝include是不能解决根本问题的。

<< 1 2 >> (1/2)

回复 发表
主题 版块