运行Kms-opencv-plugin示例时出错

时间:2016-03-11 09:22:37

标签: kurento

我的所作所为:

1.我使用链接在我的机器上安装了Kurento媒体服务器     http://doc-kurento.readthedocs.org/en/stable/installation_guide.html

2.启动服务器后,我使用链接运行hello world示例 https://www.kurento.org/docs/6.0.0/tutorials/js/tutorial-1-helloworld.html

3.这个例子运行良好,

我必须做什么:

情形1:

现在我需要在kurento中运行opencv示例

1.我从链接下载了 kms-opencv-plugin-sample    https://github.com/Kurento/kms-opencv-plugin-sample

2.当我在 cmake-gui 的文件夹中运行cmakelist时,它询问了依赖项

3.我从链接下载了 kms-core https://github.com/Kurento/kms-core已安装

4.还下载了 kms-cmake-util https://github.com/Kurento/kms-cmake-utils

现在我使用cmake构建kms-opencv-plugin-sample,它显示以下错误

     Error calling code generator: 
     CMake Error at /usr/share/cmake-2.8/Modules/CodeGenerator.cmake:80 
          (message):
    Output error: Exception in thread "main"
   org.kurento.modulecreator.KurentoModuleCreatorException: Import 'core' with
   version ^5.0.0 not found in dependencies, found version: 6.4.0

at
          org.kurento.modulecreator.definition.ModuleDefinition.resolveImports(ModuleDefinition.java:372)

案例2:

1.我还尝试使用命令构建

    debuild -us -uc -d

从命令提示符

2.还安装了依赖项

    kms-core-dev 
    kms-elements-dev
    kms-filters-dev    

3.它显示错误

   dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied;    aborting
   dpkg-buildpackage: warning: (Use -d flag to override.)
   debuild: fatal error at line 1364:
   dpkg-buildpackage -rfakeroot -D -us -uc failed

我必须做些什么来解决这个错误?

1 个答案:

答案 0 :(得分:4)

案例1:

问题是此示例项目已过时,正在请求kms-core 5.0.0。它应该很快更新。

您可以通过更改this file中的kurentoVersion来自行更新。试试" ^ 6.4.0",这是最后发布的版本。

案例2:

此情况失败,因为declare @filter nvarchar(50) ,@sql nvarchar(4000) set @filter ='Alina,Charaidew,Sukapha' set @sql ='SELECT * FROM qAll WHERE name not in('''+replace(@filter,',',''',''')+''')'; exec (@sql) 中的依赖项适用于与版本6依赖项不兼容的kurento版本5。在第一种情况下,您安装了项目的最新版本(从git获取),您在已安装的软件包(对于版本5)和在版本6中手动安装的项目之间混合使用版本。