安装 qtsampleplayer ubuntu 14.04

安装 qtsampleplayer ubuntu 14.04

我是 Linux 新手,所以如果问题不重要,请接受我的歉意。我正尝试qtsampleplayer在 Ubuntu 14.04 (32 位) 下安装,按照这些说明

先决条件:必须按照上一节的描述构建 libdash。

sudo apt-add-repository ppa:ubuntu-sdk-team/ppa
sudo apt-add-repository ppa:canonical-qt5-edgers/qt5-proper
sudo apt-get update
sudo apt-get install qtmultimedia5-dev qtbase5-dev libqt5widgets5 libqt5core5 libqt5gui5 libqt5multimedia5 libqt5multimediawidgets5 libqt5opengl5 libav-tools libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev libswscale-dev
cd libdash/libdash/qtsampleplayer
mkdir build
cd build
wget http://www.cmake.org/files/v2.8/cmake-2.8.11.2-Linux-i386.sh
chmod a+x cmake-2.8.11.2-Linux-i386.sh
./cmake-2.8.11.2-Linux-i386.sh
./cmake-2.8.11.2-Linux-i386/bin/cmake ../
make
./qtsampleplayer

但不幸的是,在步骤11(./cmake-2.8.11.2-Linux-i386/bin/cmake ../)期间我遇到了一个错误:

CMake Error at /usr/lib/i386-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:27 (message): The imported target "Qt5::Gui" references the file "/usr/lib/i386-linux-gnu/libGL.so" but this file does not exist. Possible reasons include:

The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained "/usr/lib/i386-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"

安装成功,但低于 12.04。如果有人能帮忙,请帮忙,谢谢。

答案1

下载软件包

apt-get download libgl1-mesa-glx

使用 nautilus 或 thunar 或你最喜欢的文件管理器,使用 sudo 命令导航到你的主文件夹

sudo nautilus /home/

右键单击 deb 文件并选择提取。导航到文件夹libgl1-mesa-glx_10.0.0-1ubuntu2_i386 > usr > lib > x86_64-linux-gnu > mesa

现在,重命名文件库GL.so.1.2.0作为库文件

移动或复制并粘贴该文件到 /usr/lib/i386-linux-gnu/

答案2

从外观上看,您需要 OpenGL 库。libGL.sopackages.ubuntu.com给出了一些选项:

libgl1-mesa-dev
fglrx[-updates]
nvidia-*[-updates]

选择哪个软件包取决于您使用的硬件。如果您没有使用 AMD 或 NVidia 显卡,您可以安装 MESA 软件包:

sudo apt-get install libgl1-mesa-dev

相关内容