MAC: CMake compile CloudCompare error:By not providing "FindQt5PrintSupport.cmake" in CMAKE_MODULE_PATH

ERROR message as:

CMake Warning at CC/CMakeLists.txt:26 (message):
  CCLib configured without parallel algorithm capabilities - see
  COMPILE_CC_CORE_LIB_WITH_TBB

CMake Error at cmake/CMakeExternalLibs.cmake:18 (find_package):
  By not providing "FindQt5PrintSupport.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5PrintSupport", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5PrintSupport"
  with any of the following names:

    Qt5PrintSupportConfig.cmake
    qt5printsupport-config.cmake

  Add the installation prefix of "Qt5PrintSupport" to CMAKE_PREFIX_PATH or
  set "Qt5PrintSupport_DIR" to a directory containing one of the above files.
  If "Qt5PrintSupport" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  CC/CMakeLists.txt:32 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/mac/liuxueli/CloudCompare-master/build/CMakeFiles/CMakeOutput.log".
ShirleydeMacBook-Pro:build mac$ vim ../cmake/CMakeExternalLibs.cmake
ShirleydeMacBook-Pro:build mac$ cmake ..
cmake policies active:
cmake policies active:
CMake Warning at CC/CMakeLists.txt:26 (message):
  CCLib configured without parallel algorithm capabilities - see
  COMPILE_CC_CORE_LIB_WITH_TBB

CMake Error at cmake/CMakeExternalLibs.cmake:19 (find_package):
  By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5Concurrent", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Concurrent"
  with any of the following names:

    Qt5ConcurrentConfig.cmake
    qt5concurrent-config.cmake

  Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set
  "Qt5Concurrent_DIR" to a directory containing one of the above files.  If
  "Qt5Concurrent" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CC/CMakeLists.txt:32 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/mac/liuxueli/CloudCompare-

解决方案:

修改cmake/CMakeExternalLibs.cmake文件,添加一行内容:

set (CMAKE_PREFIX_PATH "/usr/local/Cellar/qt/5.10.1/lib/cmake")

/usr/local/Cellar/qt/5.10.1/lib/cmake 为对应的QT安装路径

修改后重新cmake .. 即可成功。

原文地址:https://www.cnblogs.com/shirley-bhu/p/10442941.html

时间: 2024-10-10 05:02:15

MAC: CMake compile CloudCompare error:By not providing "FindQt5PrintSupport.cmake" in CMAKE_MODULE_PATH的相关文章

Mac下解决mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Maybe updating the package the updater overwrote the root password. To restore it: Stop mysqld deamons. $ sudo service mysqld stop Go to mysql/bin directory $ cd /usr/bin Start a mysql deamon with this option: $ sudo mysqld_safe --skip-grant-tables O

mac 安装polymer cli Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/polymer-cli/node_modules/wd/build'

安装的时候根据说明,需要使用npm install -g polymer-cli命令,但是一直提示没有权限, 后来增加sudo后提示如下, Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/polymer-cli/node_modules/wd/build' at Object.fs.mkdirSync (fs.js:905:18) at sync (/usr/local/lib/node_modules/p

CMake Error: not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH

一.第一种解决方法 cd /usr/share/ ,cma tab补全,可以找到两个版本的cmake(cmake2.8和cmake3.5) 把/usr/share/cmake2.8/Modules/ 下的FindEigen3.cmake文件复制到cmake3.5对应目录下,即可解决 二.第二种解决方法 1.找到FindEigen3.cmake文件,/usr/share/cmake2.8/Modules 2.复制到自己这个的工程下 3.在工程的CMakeLists.txt里面.添加这句话: set

CMake:消灭error(二)

安装自己编写的动态库,出现错误: CMake Error at lib/cmake_install.cmake:48 (file):  file INSTALL cannot copy file  "/home/aal/cmake/t3/build/lib/libhello.so.1.1" to  "/usr/lib/libhello.so.1.1".Call Stack (most recent call first):  cmake_install.cmake:

mac下出现xcrun: error导致git、svn无法使用的解决办法

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解决办法: 在终端输入,会安装xcrun xcode-select --install 安装完成之后就好了 参考链接:https://www.cnblogs.com/aresxin/p/790324

OpenWRT SDK Compile Package Error : Package hello is missing dependencies for the following libraries: libc.so.6

在OpenWRT SDK 编译 hello demo的时候出现错误: Package hello is missing dependencies for the following libraries: libc.so.6 发现以前可以编译通过,现在编不过了,奇怪. 后来在网上找原因,有的说改 libc.provides 添加  libc.so.6 这样把编译的ipk安装到openwrt里运行时出错. 最后,自己发现了问题 : 我在package/hello/src下make过一下检查代码有没有

Mac 安装出现emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel modu

最近在研究React Native,搭建Android 环境的时候,遇到了一下一个大坑:运行模拟器时候出现一下截图报错: 我使用终端命令:$android 查看,明明安装了intel x86 Emulator Accelerator(HAXM installer)这个安卓模拟加速器,如下图 解决方法:经群里高人指点,说需要到sdk/extras/intel找到安装文件单独安装下: 1.查看了下我对应的安装目录:找到对应位置:如图,点击intelHAXM_6.0.1.dmg安装一下就OK了.

基于Qt搭建ROS开发环境

参考的博客: http://blog.csdn.net/u013453604/article/details/52186375 http://blog.csdn.net/dxuehui/article/details/44647861 1. Qt插件ros_qtc_plugin安装 使用ros-industrial的Levi-Armstrong在2015年12月开发的一个 Qt插件ros_qtc_plugin,这个插件使得Qt"新建项目"和"新建文件"选项中出现RO

Ubuntu16.04安装Opencv3.4.1教程

一.编译安装 1.官网下载sources版本(For Linux):http://opencv.org/releases.html 2.解压: 1 unzip opencv-3.4.1.zip  3.进入: 1 cd opencv-3.4.1.zip 4.安装cmake工具: 1 sudo apt-get install cmake 5.安装依赖库: 1 sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libav