搞了好久
先是提示缺少png.h
root@ss-desktop:/home/ss/qt-x11-opensource-src-4.5.1/tools/qvfb# make
g++ -c -pipe -g -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtGui -I../../include -I. -I. -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qanimationwriter.o qanimationwriter.cpp
.......
.......
.......
.......
.......
qanimationwriter.cpp:46:17: 錯誤: png.h:沒有該文件或目錄
qanimationwriter.cpp:74: 錯誤: ‘png_structp’沒有命名一個類型
qanimationwriter.cpp:75: 錯誤: ‘png_infop’沒有命名一個類型
qanimationwriter.cpp:107: 錯誤: ‘png_structp’未聲明
qanimationwriter.cpp:107: 錯誤: ‘png_bytep’未聲明
qanimationwriter.cpp:107: 錯誤: ‘png_size_t’未聲明
qanimationwriter.cpp:240: 錯誤: ‘png_write_chunk’在此作用域中尚未聲明
再是提示需要zlib.h和pngconf.h
從src裏找到全都拿過去以後還有問題 undefined XTestQueryExtnsion
NND
http://blog.mcuol.com/User/lvembededsys/Article/7810_1.htm搜到了寶貝
跟着做 cp完device*之後 再修改Makefile添加了libs參數-lXtst之後 又告訴我
找不到-lXtst 暈倒 apt-get install libxtst-dev 才搞定
挖~~ 累死 就爲了一個qvfb
別名
#cd ~
#alias qvfb='qvfb -width 320 -height 240 &'
#source .bashrc
OK
感謝湛藍思微博主先犧牲過一次