* 从 17.10 下载依赖项并手动安装

* 从 17.10 下载依赖项并手动安装

使用 Kubuntu 我对 Qt 程序很感兴趣,比如视频播放器 QMPlay2。

Deb 文件可用这里适用于各种 Ubuntu 版本,包括 18.04。

我在一些 YouTube 教程中看到,在 16.04 中从特定的 deb 安装涉及一些缺少的依赖项,这些依赖项已通过sudo apt-get -f install这里),而在 17.04 中从该版本的 deb 安装不会遇到此类问题(这里)。

尝试安装 18.04 的 deb:

sudo dpkg -i ~/Downloads/qmplay2-ubuntu-amd64-18.04.01-1.deb
Selecting previously unselected package qmplay2.                         
(Reading database ... 193267 files and directories currently installed.) 
Preparing to unpack .../qmplay2-ubuntu-amd64-18.04.01-1.deb ...          
Unpacking qmplay2 (18.04.01-1) ...                                       
dpkg: dependency problems prevent configuration of qmplay2:              
 qmplay2 depends on libcdio13; however:                                  
  Package libcdio13 is not installed.                                    
 qmplay2 depends on libva1; however:                                     
  Package libva1 is not installed.                                       
 qmplay2 depends on libva-x11-1; however:                                
  Package libva-x11-1 is not installed.                                  
 qmplay2 depends on libva-glx1; however:                                 
  Package libva-glx1 is not installed.                                   
 qmplay2 depends on libva-drm1; however:
  Package libva-drm1 is not installed.
 qmplay2 depends on libpcre16-3; however:
  Package libpcre16-3 is not installed.

dpkg: error processing package qmplay2 (--install):
 dependency problems - leaving unconfigured

sudo apt-get -f install此时运行将删除已安装但无法使用的qmplay2包:

 sudo apt-get -f installReading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  qmplay2

是否可以安装缺少的依赖项?

(例如,libcdio13 在这里不可用,但在 16.04 中可用 - 如下所示: 如何在 Ubuntu 16.04(Xenial Xerus)上安装 libcdio13

答案1

我可以确认你的问题,我写道在 GitHub 跟踪器上发表评论项目

更新:错误已修复上游,因此安装过程很简单:

wget https://github.com/zaps166/QMPlay2/releases/download/18.04.01/qmplay2-ubuntu-amd64-18.04.01-2.deb
sudo apt install ./qmplay2-ubuntu-amd64-18.04.01-2.deb

下面的部分是为了历史目的。

我们有两个选择:

* 从 17.10 下载依赖项并手动安装

  1. 我们从17.10下载依赖项并通过以下命令安装它们:

    wget http://mirrors.kernel.org/ubuntu/pool/main/libc/libcdio/libcdio13_0.83-4.2ubuntu1_amd64.deb
    sudo apt install ./libcdio13_0.83-4.2ubuntu1_amd64.deb
    
    wget http://mirrors.kernel.org/ubuntu/pool/universe/libv/libva/libva1_1.8.3-2_amd64.deb
    sudo apt install ./libva1_1.8.3-2_amd64.deb
    
    wget http://mirrors.kernel.org/ubuntu/pool/universe/libv/libva/libva-x11-1_1.8.3-2_amd64.deb
    sudo apt install ./libva-x11-1_1.8.3-2_amd64.deb
    
    wget http://mirrors.kernel.org/ubuntu/pool/universe/libv/libva/libva-glx1_1.8.3-2_amd64.deb
    sudo apt install ./libva-glx1_1.8.3-2_amd64.deb
    
    wget http://mirrors.kernel.org/ubuntu/pool/universe/libv/libva/libva-drm1_1.8.3-2_amd64.deb
    sudo apt install ./libva-drm1_1.8.3-2_amd64.deb
    
  2. 然后我们下载最新的 QMPlay2 deb 版本并安装它

    wget https://github.com/zaps166/QMPlay2/releases/download/18.04.01/qmplay2-ubuntu-amd64-18.04.01-1.deb
    sudo apt install ./qmplay2-ubuntu-amd64-18.04.01-1.deb
    
  3. QMPlay2然后使用命令或从 GUI启动它。

* 编译源码包并使用

在等待开发人员的反应时,您可以手动编译包:

wget https://github.com/zaps166/QMPlay2/releases/download/18.04.01/QMPlay2-src-18.04.01.tar.xz
tar -xf QMPlay2-src-18.04.01.tar.xz
cd QMPlay2-src-18.04.01/
mkdir build
cd build

sudo apt-get install cmake pkg-config qtbase5-dev libva-dev \
libavformat-dev libswscale-dev libass-dev libasound2-dev \
libtag1-dev qttools5-dev checkinstall

然后它将使用以下选项进行配置:

$ cmake ..
CMake Warning at CMakeLists.txt:342 (message):
  Missing QtSvg module - SVG icons will not be visible!


-- Enabled features:
 * Freedesktop notifications, Use Freedesktop notifications
 * Datmusic, Build with Datmusic support
 * AnimeOdcinki, Build with AnimeOdcinki support
 * Wbijam, Build with Wbijam (anime) support
 * LastFM, Build with LastFM support
 * Tekstowo, Build with Tekstowo lyrics support
 * libass, Build with libass support
 * Inputs, Build with Inputs module
 * Modplug, Build with Modplug module
 * Extensions, Build with Extensions module
 * MPRIS2, Build Extensions with MPRIS2 support
 * Visualizations, Build with Visualizations module
 * AudioFilters, Build with AudioFilters module
 * VideoFilters, Build with VideoFilters module
 * OpenGL2, Build with OpenGL2 module
 * TagLib, Build with tags editor
 * FFmpeg, Build with FFmpeg module
 * ALSA, Build with ALSA module
 * CUVID, Build with CUVID module
 * Notifications, Build additional notifications module

-- Disabled features:
 * libavresample, Use libavresample instead of libswresample
 * PortAudio, Build with PortAudio module
 * VAAPI, Build VAAPI acceleration into FFmpeg
 * VDPAU, Build VDPAU acceleration into FFmpeg
 * libavdevice, Build FFmpeg with libavdevice suport
 * AudioCD, Build with AudioCD module
 * Chiptune GME, Build Chiptune with GME support
 * Chiptune SIDPLAY, Build Chiptune with SIDPLAY support
 * PulseAudio, Build with PulseAudio module
 * XVideo, Build with XVideo module
 * Git version, Append Git HEAD to QMPlay2 version
 * Link Time Optimization, Enable link time optimization for release builds
 * Address Sanitizer, Use Address Sanitizer
 * Undefined Behavior Sanitizer, Use Undefined Behavior Sanitizer
 * SolidActions, Install Solid actions

-- Build type: Release
-- Configuring done
-- Generating done
-- Build files have been written to: 

开始编译:

$ make -j8

您可以使用以下方式启动播放器:

$ src/gui/QMPlay2

相关内容