代码之家  ›  专栏  ›  技术社区  ›  Corey Ford

CMAKE查找兼容包的配置文件时出错-超级准直器

  •  0
  • Corey Ford  · 技术社区  · 6 年前

    对这种事还不熟悉,所以你可以叫我傻瓜。

    当我试图“制造”超级准直器时,我不断地得到这个错误:

    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/local/opt/qt@5.5/lib/cmake/Qt5/Qt5Config.cmake, version: 5.5.1
    
    Call Stack (most recent call first):
      lang/CMakeLists.txt:155 (include)
    

    brew list只将qt@5.5显示为已安装的qt版本。

    brew info显示qt版本->稳定5.5.1(瓶装)[仅限桶装]。

    我的路径设置有错吗? 我正在学习这个教程 here .

    编辑:从调用堆栈中引用的部分…

    if(SC_QT OR SC_IDE)
       set(QT_COLLIDER_LANG_CLIENT ON)
    include(../QtCollider/CMakeLists.txt)
       list(APPEND sclang_sources ${QT_COLLIDER_SRCS})
    endif()
    
    0 回复  |  直到 6 年前