首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在ubuntu 16.04上安装vlc-qt

如何在ubuntu 16.04上安装vlc-qt
EN

Ask Ubuntu用户
提问于 2017-10-23 09:56:38
回答 2查看 4.3K关注 0票数 1

我遵循以下步骤。

1.下载源代码如下

代码语言:javascript
复制
git clone git://github.com/vlc-qt/vlc-qt.git
Cloning into 'vlc-qt'...
remote: Counting objects: 4785, done.
remote: Total 4785 (delta 0), reused 0 (delta 0), pack-reused 4785
Receiving objects: 100% (4785/4785), 3.14 MiB | 833.00 KiB/s, done.
Resolving deltas: 100% (3121/3121), done.
Checking connectivity... done.

2.创建构建目录。

代码语言:javascript
复制
mkdir build

3.建立目录。

代码语言:javascript
复制
cd build

4.使用make Command作为

代码语言:javascript
复制
ajeet@administrator-OptiPlex-3040:~/vlc-qt/build$ **cmake ..DCMAKE_BUILD_TYPE=Debug**
  -- Building VLC-Qt 1.2.0
  -- Git revision: 9b2f561
  -- The C compiler identification is GNU 5.4.0
  -- The CXX compiler identification is GNU 5.4.0
  -- Check for working C compiler: /usr/bin/cc
  -- Check for working C compiler: /usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Build statically: OFF
  CMake Error at config/Dependencies.cmake:29 (FIND_PACKAGE):
  By not providing "FindQt5Quick.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Quick",
  but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Quick"
  (requested version 5.2.0) with any of the following names:

    **Qt5QuickConfig.cmake
    qt5quick-config.cmake**

  Add the installation prefix of "Qt5Quick" to CMAKE_PREFIX_PATH or set
  "Qt5Quick_DIR" to a directory containing one of the above files.  If
  "Qt5Quick" provides a separate development package or SDK, be sure it has
  been installed.
  Call Stack (most recent call first):
  CMakeLists.txt:50 (INCLUDE)


  -- Configuring incomplete, errors occurred!
  See also "/home/ajeet/vlc-qt/build/CMakeFiles/CMakeOutput.log".

我尝试过调试这个问题,并找到了一些解决方案,比如sudo apt-get install qt*5-dev,但这对我不起作用。

如有任何帮助和建议,将不胜感激。

EN

回答 2

Ask Ubuntu用户

发布于 2017-10-23 11:03:26

CMake告诉您您缺少了Qt5QuickConfig.cmake文件,这是qtdeclarative5-dev包的一部分(使用packages.ubuntu.com找到的)。

编译vlc-qt需要更多的软件包,这些包可以使用以下方法安装:

代码语言:javascript
复制
sudo apt-get install qtdeclarative5-dev libvlccore-dev libvlc-dev
票数 4
EN

Ask Ubuntu用户

发布于 2017-10-23 11:20:49

除了从源代码构建,vlc-qt还提供Ubuntu软件包,您可以轻松安装。但是,您需要添加ppa,因为它没有在官方存储库(第三方存储库)中列出。

代码语言:javascript
复制
sudo add-apt-repository ppa:ntadej/tano 
sudo apt update
sudo apt install libvlc-qt
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/967978

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档