首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >建立超级对撞机从源头,错误的版本qt。

建立超级对撞机从源头,错误的版本qt。
EN

Stack Overflow用户
提问于 2018-10-09 19:44:42
回答 1查看 225关注 0票数 0

我有Linux 19,我真的很想安装SuperCollider。我不能用apt-get来做这件事,因为有些旧版本不支持SuperDirt.我需要从源头上建造它。我使用本指南:https://github.com/supercollider/supercollider/wiki/Installing-SuperCollider-from-source-on-Ubuntu问题与cmake:

代码语言:javascript
复制
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。我安装了qt5.5.1 5.11,但是如何“显示”cmake,如果它自动检查具有qt5.5.1的/usr/lib/./ Qt 5的路径,就应该使用qt5.11?我该怎么办?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-10-09 22:46:55

CMAKE_PREFIX_PATH设置为Qt安装中包含bin、lib、include等的目录。通常如下所示:

代码语言:javascript
复制
cmake -DCMAKE_PREFIX_PATH=/opt/Qt/5.11.2/gcc_64 ...
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52728279

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档