2017-08-28 21 views
0

我剛剛遇到了運行minigui示例的問題。 我下載了qt-4.8.6並正確安裝在我的Ubunut 14.04上。 我可以運行沒有任何問題QVFB,但是當我要運行管家(MiniGUI的一個例子),一些錯誤發生:如何用qvfb配置minigui?

start-qvfb :/opt/Qt-x11-4.8.6/bin/qvfb pcxvfb 3351 XVFB-for-MiniGUI-3.0-(Gtk-Version) 800x600-16bpp 
Unknown parameter 3351 
Usage: pcxvfb [-width width] [-height height] [-depth depth] [-zoom zoom][-mmap] [-nocursor] [-qwsdisplay :id] [-x11display :id] [-skin skindirectory] 
Supported depths: 1, 4, 8, 12, 15, 16, 18, 24, 32 
NEWGAL>PCXVFB: Wait too long for CLIENT. 
NEWGAL: Does not find matched engine: pc_xvfb. 
KERNEL>InitGUI: Can not get graphics engine information! 

我該怎麼辦?

回答

0

我剛剛通過使用gvfb而不是qvfb解決了這個煩人的問題,我從http://www.minigui.org/en/download/下載了gvfb v1.0。

然後:

焦油-xzvf GVFB-1.0.0.tar.gz的

CD GVFB-1.0.0

cmake的。

在這一步,你可能會遇到:

Linking C executable gvfb /usr/bin/ld: CMakeFiles/gvfb.dir/gvfb_linux.o: undefined reference to symbol 'XkbGetIndicatorState' //usr/lib/i386-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [src/gvfb] 錯誤 1 make[1]: *** [src/CMakeFiles/gvfb.dir/all] 錯誤 2 make: *** [all] 錯誤 2

爲了解決這個錯誤: 你需要添加-lX11 -L/usr/lib目錄/ I386-Linux的GNU/libXtst。一個-L/usr/lib/i386-linux-gnu/libX11.a到gvfb-1.0.0/src/CMakeFiles/gvfb.dir/link.txt(假設你的主機是32位)。

那麼你可以運行make並進行安裝。

您可以運行minigui提供的示例來測試您是否已成功安裝!