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.
今天在mac下安装 MARSYAS时出现了一个这样的问题。
这个是在安装QT时候没有配置好。我对qt还不是特别熟,只好先暴力解决这个问题。
先找到QtCore的配置文件:
/usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake
然后在下面这行中加入相应的路径。