Qt 5.2.0缺少摄像头服务 [英] Qt 5.2.0 The camera service is missing

查看:1525
本文介绍了Qt 5.2.0缺少摄像头服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Logitech高清网络摄像头C270。
我想写一个简单的webcam应用程序,所以我试图编译Qt相机示例(Qt \Qt5.2.0\5.2.0\msvc2010_opengl\examples\multimediawidgets\camera)。

我的开发系统是一个Windows 7 x64 SP1虚拟机。如果网络摄像机连接到此VM,示例运行得很好。 Qt和Windows设备管理器检测网络摄像头为USB视频设备。



当我尝试在非虚拟系统上运行编译的二进制文件x64 SP1),应用程序说相机服务丢失(是的,我从虚拟机断开相机)。在这个系统上,相机被检测为Logitech高清网络摄像头C270



我也有一个Win7 x64 SP1的笔记本 - p>

当我用另一个工具(dorgem.cvs.sourceforge.net/viewvc/dorgem/Dorgem/)测试网络摄像头时,我可以看到网络摄像头工作。



我可以如何解决这个问题?



我缺少一些库或第三方工具吗? Qt没有安装在我的真正的系统上。
我将应用程序投诉的所有DLL复制到与exe文件相同的目录下:

  icudt51.dll 
icuin51.dll
icuuc51.dll
Qt5Cored.dll
Qt5Guid.dll
Qt5Multimediad.dll
Qt5MultimediaWidgetsd.dll
Qt5Networkd.dll
Qt5OpenGLd.dll
Qt5Widgetsd.dll
platforms / qwindowsd.dll


解决方案

感谢FrankOsterfeld。



我必须将以下文件从Qt复制到我的应用程序目录:

  Qt5.2.0\5.2.0\ msvc2010_opengl\plugins\mediaservice\dsengined.dll 
Qt5.2.0\5.2.0\ msvc2010_opengl\ plugins\mediaservice\qtmedia_audioengined.dll
Qt5.2.0\5.2.0\ msvc2010_opengl\plugins\mediaservice\wmfengined.dll

Desination

  MyAppDir\MyApp.exe 
MyAppDir \(来自原始帖子的文件)
MyAppDir\mediaservice\dsengined.dll
MyAppDir \mediaservice\qtmedia_audioengined.dll
MyAppDir\mediaservice\wmfengined.dll



这些链接帮助我找到了soloution:






与用户插件不同,Qt插件必须放在与插件类型匹配的子目录中。由于我们要部署windows平台插件,因此必须将其放入platforms子目录中。



I have a Logitech HD Webcam C270. I want to write a simple webcam application and so I tried to compile the Qt camera example (Qt\Qt5.2.0\5.2.0\msvc2010_opengl\examples\multimediawidgets\camera).

My dev system is a Windows 7 x64 SP1 Virtual Machine. If the webcam is connected to this VM the example runs very well. Qt and the windows device manager detect the webcam as "USB Video device".

When I try to run the compiled binary on my non-virtual system (which is also Win7 x64 SP1) the application says "the camera service is missing" (yes, I disconnected the camera from the virtual machine). On this system the camera is detected as "Logitech HD Webcam C270 "

I also have a second notebook with Win7 x64 SP1 - same problem here.

When I test the webcam with another tool (dorgem.cvs.sourceforge.net/viewvc/dorgem/Dorgem/) I can see, that the webcam works.

What can I do to resolve the problem?

Am I missing some library or 3rd party tool? Qt isn't installed on my "real" systems. I copied all DLLs the application complained about to the same directory as the exe file:

icudt51.dll
icuin51.dll
icuuc51.dll
Qt5Cored.dll
Qt5Guid.dll
Qt5Multimediad.dll
Qt5MultimediaWidgetsd.dll
Qt5Networkd.dll
Qt5OpenGLd.dll
Qt5Widgetsd.dll
platforms/qwindowsd.dll

解决方案

Thanks to FrankOsterfeld. He pointed me in the right direction.

I had to copy the following files from Qt to my app dir:

Qt5.2.0\5.2.0\msvc2010_opengl\plugins\mediaservice\dsengined.dll
Qt5.2.0\5.2.0\msvc2010_opengl\plugins\mediaservice\qtmedia_audioengined.dll
Qt5.2.0\5.2.0\msvc2010_opengl\plugins\mediaservice\wmfengined.dll

Desination

MyAppDir\MyApp.exe
MyAppDir\(files from original post)
MyAppDir\mediaservice\dsengined.dll
MyAppDir\mediaservice\qtmedia_audioengined.dll
MyAppDir\mediaservice\wmfengined.dll

This links helped me to find the soloution:

"In contrast to user plugins, Qt plugins have to be put into subdirectories matching the plugin type. As we want to deploy the windows platform plugin it has to be put into a "platforms" subdirectory."

这篇关于Qt 5.2.0缺少摄像头服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆