从源代码构建超级准直器,错误版本的qt。

从源代码构建超级准直器,错误版本的qt。,qt,cmake,supercollider,Qt,Cmake,Supercollider,我有LinuxMint19,我真的很想安装超级准直器。我不能通过apt get来实现,因为有一个旧版本不支持SuperDirt。我需要从源代码构建它。我使用本指南: 问题在于cmake: cmake -qt=qt5.11 -DSC_EC=ON -DSC_EL=OFF -DSC_WII=OFF -DSC_IDE=ON .. -- SuperCollider Version: 3.10.0-beta2 -- Building from branch develop, commit hash is f

我有LinuxMint19,我真的很想安装超级准直器。我不能通过apt get来实现,因为有一个旧版本不支持SuperDirt。我需要从源代码构建它。我使用本指南: 问题在于cmake:

cmake -qt=qt5.11 -DSC_EC=ON -DSC_EL=OFF -DSC_WII=OFF -DSC_IDE=ON ..
-- SuperCollider Version: 3.10.0-beta2
-- Building from branch develop, commit hash is f543f53
-- Build type defaulting to "RelWithDebInfo"
-- Compiling with Qt GUI
-- building boost libraries manually
-- using bundled libyaml-cpp
-- HIDAPI components:
--     linux hidraw
-- libudev stable: 1
-- Found UDev: /usr/lib/x86_64-linux-gnu/libudev.so
--    include: /usr/include
--     hidapi_parser
-- Building with HID support
-- Using fftw3f
-- Found jack: /usr/lib/x86_64-linux-gnu/libjack.so
-- Audio API: jack
-- Found GNU Readline version 6.3: /usr/lib/x86_64-linux-gnu/libreadline.so
CMake Error at QtCollider/CMakeLists.txt:3 (find_package):
  Could not find a configuration file for package "Qt5" that is compatible
  with requested version "5.7".

  The following configuration files were considered but not accepted:

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

Call Stack (most recent call first):
  lang/CMakeLists.txt:155 (include)


-- Configuring incomplete, errors occurred!
See also "/home/nedlo/programming/supcol/bsource/supercollider/build/CMakeFiles/CMakeOutput.log".

所以我至少需要qt5.7,但是我有qt5.5.1,我不知道如何更新qt。我安装了Qt Creator 5.11,但是如果它自动检查到/usr/lib/../qt5的路径,并且该路径包含qt5.5.1,我如何“显示”我应该使用qt5.11?我该怎么办?

CMAKE\u PREFIX\u PATH
设置到Qt安装中包含bin、lib、include等的目录中。它通常看起来像这样:

cmake -DCMAKE_PREFIX_PATH=/opt/Qt/5.11.2/gcc_64 ...

Ok可能重复,所以现在我在/opt/lib中找到了qt511,但是我在哪里找到qt511.cmake文件我应该包含在路径中只要在
/opt
下搜索它就可以了。