本文介绍了在lubuntu 15.04上构建Kurento的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的lubuntu 15.04上构建整个Kurento(与使用不同UI生动的ubuntu 15.04相同).我从克隆所有存储库开始:

I am trying to build whole Kurento on my lubuntu 15.04 (same as ubuntu 15.04 vivid with different UI). I started by cloning all repos:

mkdir kurento
cd kurento

git clone  https://github.com/Kurento/kms-jsonrpc.git
git clone https://github.com/Kurento/kurento-module-creator.git
git clone https://github.com/Kurento/kms-filters.git
git clone https://github.com/Kurento/kms-core.git
git clone https://github.com/Kurento/kms-elements.git
git clone https://github.com/Kurento/adm-scripts.git
git clone https://github.com/Kurento/kms-cmake-utils.git
git clone https://github.com/Kurento/kms-crowddetector.git
git clone https://github.com/Kurento/kms-pointerdetector.git
git clone https://github.com/Kurento/kms-platedetector.git
git clone https://github.com/Kurento/kurento-media-server.git
git clone https://github.com/Kurento/kms-plugin-sample.git
git clone https://github.com/Kurento/kms-opencv-plugin-sample.git

然后安装kms-cmake-utils:

then installing kms-cmake-utils:

cd kms-cmake-utils
mkdir build
cd build
cmake ..
make install

好了,它会在cmake模块目录中安装一堆文件.然后我尝试安装kms-core:

ok done, it installs a bunch of files in cmake module directory. then I tried to install kms-core:

cd kms-core
mkdir build
cd build
cmake ..

但是cmake停止并显示以下错误

but cmake stops with following error

-- checking for module 'KurentoModuleCreator'
--   package 'KurentoModuleCreator' not found
CMake Error at /usr/share/cmake-3.0/Modules/GenericFind.cmake:93 (message):
  Library KurentoModuleCreator not found

我尝试安装kurento-module-creator:

I tried to install kurento-module-creator:

cd kurento-module-creator
mvn install

它遵循.m2目录并安装了一些文件.我没有Maven的经验,无法知道它是否正确完成.

it complies and installs some files in .m2 directory. I don't have any experience with maven to know if it is done correctly.

但是,它不能解决kms-core的错误.显然,cmake find_package命令无法找到FindKurentoModuleCreator.cmake.我在任何Kurento的存储库中都找不到该文件.有人可以告诉我我做错了吗?

However it doesn't resolves the error with kms-core. apparently, cmake find_package command is not able to locate FindKurentoModuleCreator.cmake. I couldn't find the file in any Kurento's repos. can anybody please tell me if I am doing st wrong?

推荐答案

默认情况下,所有与kms相关的项目都可以作为debian软件包进行构建.

By default, all kms related projects are ready to be build as debian packages.

代替手动使用cmakemake install,可以更轻松地生成debian软件包并安装它们.

Instead of using cmake and make install by hand, it will be easier for you to generate debian packages and install them.

生成指令非常简单:

export PROJECT_NAME=<project_name>
mkdir build_$PROJECT_NAME
cd build_$PROJECT_NAME
git clone https://github.com/Kurento/$PROJECT_NAME
cd $PROJECT_NAME
debuild -uc -us

一旦构建成功完成,您将在build_<project_name>目录中有一些debian软件包,您可以使用以下命令进行安装:

Once debuild finishes successfully you will have some debian packages in build_<project_name> directory, you can just install them using:

sudo dpkg -i *deb

由于不满足依赖关系而导致构建失败的可能性很大,在这种情况下,您可能必须使用apt-get安装它们,或者如果它们是kurento依赖关系,则必须生成它们.

It is possible that debuild fails because dependencies are not met, in this case you may have to install them using apt-get or generate them if they are kurento dependencies.

尽管如此,我们已经提供了所有已在kurento信息库中编译的kurento软件包(包括一些自定义依赖项,其源代码也可以在github上找到).

Nevertheless, we have available all kurento packages (including some custom dependencies whose sources are also available on github), already compiled in kurento repository:

deb http://ubuntu.kurento.org trusty kms6

或在拥有所有主分支的开发通道中

or in the dev channel that has all the master branches builds

deb http://ubuntu.kurento.org trusty-dev kms6

软件包是可信任的发行版,因为它们是使用kurento官方支持的此发行版生成的,但它们通常也可以安装在15.04上.

Packages are for trusty release, because they are generated using this release which is the officially supported by kurento, but they can generally be installed on 15.04 too.

这篇关于在lubuntu 15.04上构建Kurento的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 17:42