QT4.6.2关于qvfb编译出现错误,求助!

内核编译和嵌入式产品的设计与开发
回复
chaileon
帖子: 1
注册时间: 2008-06-04 14:12
送出感谢: 0
接收感谢: 0

QT4.6.2关于qvfb编译出现错误,求助!

#1

帖子 chaileon » 2010-05-11 15:18

leon@ubuntu:~/桌面/qt-everywhere-opensource-src-4.6.2/tools/qvfb$ sudo make
g++ -Wl,-rpath-link,/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/lib -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.6.2/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.6.2/lib -o qvfb .obj/release-shared/deviceskin.o .obj/release-shared/main.o .obj/release-shared/qanimationwriter.o .obj/release-shared/qlock.o .obj/release-shared/qvfb.o .obj/release-shared/qvfbmmap.o .obj/release-shared/qvfbprotocol.o .obj/release-shared/qvfbratedlg.o .obj/release-shared/qvfbshmem.o .obj/release-shared/qvfbview.o .obj/release-shared/qvfbx11view.o .obj/release-shared/qwssignalhandler.o .obj/release-shared/x11keyfaker.o .obj/release-shared/moc_deviceskin.o .obj/release-shared/moc_gammaview.o .obj/release-shared/moc_qvfb.o .obj/release-shared/moc_qvfbmmap.o .obj/release-shared/moc_qvfbprotocol.o .obj/release-shared/moc_qvfbratedlg.o .obj/release-shared/moc_qvfbshmem.o .obj/release-shared/moc_qvfbview.o .obj/release-shared/moc_qvfbx11view.o .obj/release-shared/moc_x11keyfaker.o .obj/release-shared/qrc_qvfb.o -L/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/lib -lQtGui -L/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/lib -L/usr/X11R6/lib -lQtCore -lpthread -IXtst
.obj/release-shared/x11keyfaker.o: In function `X11KeyFaker::sendKeyEvent(int, bool)':
/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/tools/qvfb/x11keyfaker.cpp:464: undefined reference to `XTestFakeKeyEvent'
/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/tools/qvfb/x11keyfaker.cpp:473: undefined reference to `XTestFakeKeyEvent'
/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/tools/qvfb/x11keyfaker.cpp:464: undefined reference to `XTestFakeKeyEvent'
/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/tools/qvfb/x11keyfaker.cpp:452: undefined reference to `XTestFakeKeyEvent'
/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/tools/qvfb/x11keyfaker.cpp:480: undefined reference to `XTestFakeKeyEvent'
.obj/release-shared/x11keyfaker.o:/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/tools/qvfb/x11keyfaker.cpp:459: more undefined references to `XTestFakeKeyEvent' follow
.obj/release-shared/x11keyfaker.o: In function `X11KeyFaker::connect()':
/home/leon/桌面/qt-everywhere-opensource-src-4.6.2/tools/qvfb/x11keyfaker.cpp:549: undefined reference to `XTestQueryExtension'
collect2: ld returned 1 exit status
make: *** [qvfb] 错误 1


这是我在编译qvfb遇到的问题,请教高手帮助解决~~
cana_xzy
帖子: 1
注册时间: 2010-05-27 13:38
送出感谢: 0
接收感谢: 0

Re: QT4.6.2关于qvfb编译出现错误,求助!

#2

帖子 cana_xzy » 2010-05-27 13:51

呵呵,我直接运行qvfb,系统提示我没有安装qvfb,让我apt-get install qt4-dev-tools。安装后就可以直接使用qvfb了,呵呵......
回复

回到 “内核及嵌入式开发”