Search code examples
kurento

Error in running Kms-opencv-plugin sample


What i do:

1.I installed Kurento media server in my machine using the link http://doc-kurento.readthedocs.org/en/stable/installation_guide.html

2.After start the server,i run the hello world sample using the link https://www.kurento.org/docs/6.0.0/tutorials/js/tutorial-1-helloworld.html

3.It run well for that example,

What i have to do:

case1:

Now i need to run the opencv sample in kurento

1.I downloaded the kms-opencv-plugin-sample from the link https://github.com/Kurento/kms-opencv-plugin-sample

2.When i run the cmakelist in the folder in cmake-gui,it asked for the dependancies

3.I downloaded the kms-core from the link https://github.com/Kurento/kms-core and installed it

4.Also downloaded the kms-cmake-util https://github.com/Kurento/kms-cmake-utils

Now i build kms-opencv-plugin-sample using the cmake,it shows the following error

     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)

Case 2:

1.I also tried to build using the command

    debuild -us -uc -d

From the command prompt

2.Also install the dependancies

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

3.It shows the error

   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

What i have to do to solve this error?


Solution

  • Case 1:

    The problem is that this example project is outdated and is requesting for kms-core 5.0.0. It should be updated soon.

    You can update it yourself by changing kurentoVersion in this file. Try "^6.4.0", that is the last released version.

    Case 2:

    This case fails because the dependencies in debian/control are for kurento version 5 that become incompatible with version 6 dependencies. As in your first case you installed latest versions of the project (took from git), you have a mix of version between installed packages (for the version 5) and manually installed projects in version 6.