设为首页 加入收藏

TOP

解决QT-4.4.3编译qvfb的问题(一)
2014-11-24 07:51:28 来源: 作者: 【 】 浏览:1
Tags:解决 QT-4.4.3 编译 qvfb 问题

在虚拟机上安装QT开发环境真是一件郁闷的事情。遇到的第一个问题就是虚拟盘空间不够,编译后1G多。这些天折腾完总算挺过来了。


先下载qt-embedded-4.4.3,安装完后发现没有qvfb,原来qvfb只在qt/X11中有,没办法,再下载qt/X11-4.4.3来编译。编译完了发现根本在qt-x11-opensource-src-4.4.3/bin/下面哪里有 qvfb 根本没有。


在qt-x11-opensource-src-4.4.3/tools/下面有qvfb文件夹。而qt-x11-opensource-src-4.4.3/tools/下的Makefile根本没有包含qvfb文件夹的编译。


编译结束后我尝试的步骤如下: (着急的直接看最后几行!!)
1.进入qvfb源码目录:
# cd /home/src/qt-x11-opensource-src-4.4.3/tools/qvfb
2.执行qmake生成pro工程:
# /home/src/qt-x11-opensource-src-4.4.3/bin/qmake -project
3.执行qmake生成Makefile
# /home/src/qt-x11-opensource-src-4.4.3/bin/qmake
4.编译make
# 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/QtCore -I../../include/QtGui -I../../include/QtGui -I../../include -I. -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qvfb.o qvfb.cpp
qvfb.cpp:47:24: 错误:deviceskin.h:没有那个文件或目录
qvfb.cpp: In member function ‘void QVFb::init(int, int, int, int, int, const QString&)’:
qvfb.cpp:247: 警告:检测到调用 delete 运算符时可能出现的问题:
qvfb.cpp:247: 警告:invalid use of undefined type ‘struct DeviceSkin’
qvfb.h:53: 警告:forward declaration of ‘struct DeviceSkin’
qvfb.cpp:247: 附注:析构函数和类特定的 delete 运算符均不会被调用,即使它们在类定义时已经声明。
qvfb.cpp:257: 错误:‘DeviceSkinParameters’ 在此作用域中尚未声明
qvfb.cpp:257: 错误:expected `;'' before ‘parameters’
qvfb.cpp:259: 错误:‘parameters’ 在此作用域中尚未声明
qvfb.cpp:259: 错误:‘DeviceSkinParameters’ is not a class or namespace
qvfb.cpp:260: 错误:invalid use of undefined type ‘struct DeviceSkin’
qvfb.h:53: 错误:forward declaration of ‘struct DeviceSkin’
qvfb.cpp:261: 错误:对 ‘QVFb::connect(DeviceSkin*&, const char [13], QVFb* const, const char [13])’ 的调用没有匹配的函数
../../include/QtCore/../../src/corelib/kernel/qobject.h:197: 附注:备选为: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
../../include/QtCore/../../src/corelib/kernel/qobject.h:302: 附注: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
qvfb.cpp:277: 错误:对 ‘QVFbX11View::QVFbX11View(int&, int&, int&, int&, QVFbAbstractView::Rotation&, DeviceSkin*&)’ 的调用没有匹配的函数
qvfbx11view.h:52: 附注:备选为: QVFbX11View::QVFbX11View(int, int, int, int, QVFbAbstractView::Rotation, QWidget*)
qvfbx11view.h:49: 附注: QVFbX11View::QVFbX11View(const QVFbX11View&)
qvfb.cpp:280: 错误:对 ‘QVFbView::QVFbView(int&, int&, int&, int&, QVFbAbstractView::Rotation&, DeviceSkin*&)’ 的调用没有匹配的函数
qvfbview.h:109: 附注:备选为: QVFbView::QVFbView(int, int, int, int, QVFbAbstractView::Rotation, QWidget*)
qvfbview.h:106: 附注: QVFbView::QVFbView(const QVFbView&)
qvfb.cpp:281: 错误:invalid use of undefined type ‘struct DeviceSkin’
qvfb.h:53: 错误:forward declaration of ‘struct DeviceSkin’
qvfb.cpp:284: 错误:对 ‘QVFb::connect(DeviceSkin*&, const char [37], QVFbAbstractView*&, const char [37])’ 的调用没有匹配的函数
../../include/QtCore/../../src/corelib/kernel/qobject.h:197: 附注:备选为: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
../../include/QtCore/../../src/corelib/kernel/qobject.h:302: 附注: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
qvfb.cp

首页 上一页 1 2 下一页 尾页 1/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C语言实现BMP转换JPG 下一篇C#下调用DOS程序的一些经验

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·在 Redis 中如何查看 (2025-12-26 03:19:03)
·Redis在实际应用中, (2025-12-26 03:19:01)
·Redis配置中`require (2025-12-26 03:18:58)
·Asus Armoury Crate (2025-12-26 02:52:33)
·WindowsFX (LinuxFX) (2025-12-26 02:52:30)