搞了好久
先是提示缺少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
感谢湛蓝思微博主先牺牲过一次