【问题标题】:Building Kurento on lubuntu 15.04Building Kurento on lubuntu 15.04
【发布时间】:2015-10-28 22:59:24
【问题描述】:

我正在尝试在我的 lubuntu 15.04 上构建整个 Kurento(与具有不同 UI 的 ubuntu 15.04 相同)。我首先克隆了所有 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:

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

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

cd kms-core
mkdir build
cd build
cmake ..

但 cmake 因以下错误而停止

-- 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:

cd kurento-module-creator
mvn install

它遵从并在 .m2 目录中安装一些文件。我对 maven 没有任何经验,不知道它是否正确完成。

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

【问题讨论】:

    标签: cmake fiware kurento


    【解决方案1】:

    默认情况下,所有与 kms 相关的项目都可以构建为 debian 包。

    不用手动使用cmakemake install,生成debian包并安装它们会更容易。

    生成的指令非常简单:

    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
    

    一旦 debuild 成功完成,您将在 build_&lt;project_name&gt; 目录中拥有一些 debian 包,您可以使用以下命令安装它们:

    sudo dpkg -i *deb
    

    有可能因为不满足依赖关系而导致 debuild 失败,在这种情况下,您可能必须使用 apt-get 安装它们,或者如果它们是 kurento 依赖关系,则生成它们。

    尽管如此,我们已经在 kurento 存储库中编译了所有 kurento 包(包括一些自定义依赖项,其源代码也可以在 github 上找到):

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

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-03
      • 2018-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多