编译Dolphin模拟器beta

时间:2018-09-07 21:50:12

标签: qt cmake compiler-errors compilation qt5

here开始迁移,因为它与编译软件有关。

我的原始问题:我想与其他玩家一起玩《超级马里奥银河2》。但是,无论我为移动光标分配了什么键,它都将其一直移动到屏幕的一角(或边缘)。从理论上讲,Linux可以具有多个游标(至少显示系统“ X”允许它),但是从研究来看,我似乎必须对系统进行重大更改才能实际使用它。即使那样,我仍然怀疑海豚会支持它。

我当前的问题:Dolphin的当前Beta版中存在键相对于光标的相对运动,但我无法安装它。没有常规的安装程序,而是源代码下载和this tutorial

我安装了the dependenciesdownloaded the betacreated and entered the "Build" directory,但是当我尝试cmake ..时,得到的输出如下:

-- Detected architecture: x86_64
-- X11 support enabled
-- Xrandr found
--  Found avcodec: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavcodec.so
--  Found avformat: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavformat.so
--  Found avutil: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavutil.so
--  Found swresample: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswresample.so
--  Found swscale: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswscale.so
-- libav/ffmpeg found, enabling AVI frame dumps
-- libevdev/libudev found, enabling evdev controller backend
-- Using named pipes as controller inputs
-- Watching game memory for changes
-- Enabling analytics collection (subject to end-user opt-in)
-- Using static enet from Externals
-- Using static xxhash from Externals
-- Using shared zlib
-- Using static lzo from Externals
-- Using shared libpng
-- Using shared LibUSB
-- Found SFML 2.4 in /usr/include
-- Using shared SFML
-- Using shared miniupnpc
-- Could NOT find MBEDTLS (missing:  MBEDTLS_VERSION_OK) 
-- Using static mbed TLS from Externals
-- Using shared libcurl
-- Using static DiscordRPC from Externals
-- libsystemd found, enabling traversal server watchdog support
-- Using static gtest from Externals
-- Could NOT find OpenSLES (missing:  OPENSLES_LIBRARY OPENSLES_INCLUDE_DIR) 
-- ALSA found, enabling ALSA sound backend
-- PulseAudio found, enabling PulseAudio sound backend
-- BlueZ found, enabling bluetooth support
CMake Error at Source/Core/DolphinQt/CMakeLists.txt:1 (find_package):
Could not find a configuration file for package "Qt5" that is compatible
with requested version "5.9".

The following configuration files were considered but not accepted:

  /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.7.1



-- Configuring incomplete, errors occurred!
See also "/home/fabian/dolphin_beta/dolphin-emu/Build/CMakeFiles/CMakeOutput.log".
See also "/home/fabian/dolphin_beta/dolphin-emu/Build/CMakeFiles/CMakeError.log".

apt-file search Qt5Config.cmake的输出是:

libaccounts-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/AccountsQt5/AccountsQt5Config.cmake
libphonon4qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/phonon4qt5/Phonon4Qt5Config.cmake
libsignon-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/SignOnQt5/SignOnQt5Config.cmake
libtelepathy-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/TelepathyQt5/TelepathyQt5Config.cmake
qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake

为了安全起见,我安装了所有这五个软件包。我还从here安装了Qt5-default的5.10版本,后来也安装了5.11。我还安装了qtbase5-private-dev,libreadline-dev并尝试安装libpolarssl-dev,但是the page给出了所有四台服务器的错误消息(台湾服务器永久加载,其他服务器提供404)。然后,我尝试了Qt installer,并选择了一次最新的稳定版本(我认为是5.11),一次选择了5.9。
这些步骤都无济于事,我仍然得到与开始时相同的输出。

这是我上次尝试安装时的CMakeOutput.log的副本:https://pastebin.com/EP5qDGE9
这是我上次尝试安装时的CMakeError.log副本:https://pastebin.com/9p4Ni0jE

我的规格:
Debian 9.5
肉桂3.2.7
Linux内核4.9.0-8-amd64
已安装的软件包:https://pastebin.com/DeYAvJtu

1 个答案:

答案 0 :(得分:0)

非常感谢linuxquestions.org上的用户dugan!他解决了我的问题here

我只需要从其他来源安装Qt(如问题中所述,我使用了Qt installer),以便在另一个位置安装不同版本的Qt。这样做的原因是Debian上的许多程序都依赖于Qt的早期版本,因此仅对其进行更新会造成很多中断,这也是Synaptic&Co的原因。不要更新。
然后,我不得不将二进制文件添加到PATH变量中,如下所示:

export PATH=/home/fabian/Qt/5.11.2/gcc_64/bin:$PATH

然后,我能够像tutorial所说的那样定期安装Dolphin beta。