【问题标题】:Building Supercollider from source, wrong version of qt.从源代码构建 Supercollider,qt 版本错误。
【发布时间】:2018-10-09 19:44:42
【问题描述】:

我有 Linux Mint 19,我真的很想安装 SuperCollider。我不能通过 apt-get 来完成,因为有不支持 SuperDirt 的旧版本。我需要从源代码构建它。我使用本指南: https://github.com/supercollider/supercollider/wiki/Installing-SuperCollider-from-source-on-Ubuntu 问题出在 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,但是如果它自动检查具有 qt5.5.1 的 /usr/lib/.../qt5 的路径,我如何“显示”我应该使用 qt5.11 的 cmake?我该怎么办?

【问题讨论】:

标签: qt cmake supercollider


【解决方案1】:

CMAKE_PREFIX_PATH 设置为 Qt 安装中包含 bin、lib、include 等的目录。它通常看起来像这样:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-11-17
    • 2012-10-12
    • 2018-10-17
    • 2014-07-16
    • 1970-01-01
    • 2018-03-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多