Qt5 builds failing — missing /usr/local/.//mkspecs/macx-clang on macOS

转载 2017年02月28日 14:50:39
-- [Mason] Unpacking package to mason_packages/headers/geojson/0.3.2...
CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
  The imported target "Qt5::Core" references the file

     "/usr/local/.//mkspecs/macx-clang"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:50 (_qt5_Core_check_file_exists)
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:141 (include)
  platform/qt/qt5.cmake:1 (find_package)
  platform/qt/qt.cmake:72 (include)
  platform/qt/config.cmake:1 (include)
  CMakeLists.txt:51 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/vagrant/git/build/qt-macos-x86_64/Debug/CMakeFiles/CMakeOutput.log".

make: *** [build/qt-macos-x86_64/Debug/build.ninja] Error 1

https://github.com/mapbox/mapbox-gl-native/issues/6712

解决办法:

brew install qt5
 brew link qt5 --force
 brew linkapps qt5
 ln -s /usr/local/Cellar/qt5/5.6.1-1/mkspecs /usr/local/mkspecs
 ln -s /usr/local/Cellar/qt5/5.6.1-1/plugins /usr/local/plugins
https://github.com/mapbox/mapbox-gl-native/blob/7dbc302b2f048902124e8f3d9d368c14204cfae5/platform/qt/bitrise-qt5.yml#L37-L38

The good answer could be found in the wireshark documentation :

brew install qt5
brew link --force qt5 && ln -s /usr/local/Cellar/qt5/5.4.0/mkspecs /usr/local/mkspecs && ln -s /usr/local/Cellar/qt5/5.4.0/plugins /usr/local/plugins

https://github.com/Homebrew/legacy-homebrew/issues/29938


相关文章推荐

The imported target "Qt5::Core" references the file

CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message): The imported target ...
  • CY_TEC
  • CY_TEC
  • 2016年03月27日 14:34
  • 1443

LINUX下安装QT的惨痛经历

安装QT的惨痛经历 目标:2012.4月下旬,计划开始在linux上安装QT和ffmpeg,准备摸索一下视频客户端的开发。 ------------------------------------...
  • jszj
  • jszj
  • 2012年05月22日 09:17
  • 46090

OK6410开发板android系统boot编译—/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc:命令未找到

问题背景 这个问题是楼主在做OK6410开发板Android系统boot编译的时候遇到的。当时按照教程文档安装好Ubuntu-amd-64和配套交叉编译器之后,进行make编译u-boot,直接报如下...

macOS下qt5连接mysql5.7驱动问题

macOS+Qt5.9+MySQL5.7.17连接数据库报错解决
  • lm409
  • lm409
  • 2017年08月06日 23:34
  • 372

macOS.Sierra.The.Missing.Manual.2016.11.pdf

  • 2016年12月27日 18:38
  • 68.35MB
  • 下载

LLVM/Clang on windows

  • 2015年03月07日 14:37
  • 169KB
  • 下载

Automated Builds on Docker Hub

page_title: Automated Builds on Docker Hub page_description: Docker Hub Automated Builds page_keywor...

Nginx 安装/配置/启动/关闭-默认安装到/usr/local/nginx/

打开配置文件,看到有这一行“include vhosts/*.conf; 他这里又包含了vhosts文件夹下的所有配置文件。于是多域名配置就可以在这个文件夹里任意添加了。 [r...

libvirtd初始化异常(/usr/local/sbin/libvirtd: initialization failed)解决

今天在一台通过apt-get安装过老版本libvirt(0.9.8)的机器上安装OpenStack,由于老版本的libvirt有Bug,故通过源码编译安装1.2.0版本。 编译安装一切正常,不过在...

/usr/local/MATLAB/R2013a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found 解决方法

问题错误描述 在matlab的m文件中执行一条终端命令时出现如下错误信息: >> test_FIR /usr/lib/x86_64-linux-gnu/ivl/ivl: /usr/local/...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Qt5 builds failing — missing /usr/local/.//mkspecs/macx-clang on macOS
举报原因:
原因补充:

(最多只允许输入30个字)