Macos Qt';mac os x上的uic can';找不到合适的QtCore
我正在尝试在我的机器上构建这个家伙(MacOSX10.14.6)。我遇到了Qt的uic的问题 I brew已安装Qt5,版本5.12.3。我将它的bin文件夹添加到我的$PATH中。 当我在终端中运行“uic”时,它会失败,原因如下:Macos Qt';mac os x上的uic can';找不到合适的QtCore,macos,qt,cmake,qt5,uic,Macos,Qt,Cmake,Qt5,Uic,我正在尝试在我的机器上构建这个家伙(MacOSX10.14.6)。我遇到了Qt的uic的问题 I brew已安装Qt5,版本5.12.3。我将它的bin文件夹添加到我的$PATH中。 当我在终端中运行“uic”时,它会失败,原因如下: dyld: Library not loaded: /usr/local/Cellar/qt/5.12.3/lib/QtCore.framework/Versions/5/QtCore Referenced from: /usr/local/Cellar/qt
dyld: Library not loaded: /usr/local/Cellar/qt/5.12.3/lib/QtCore.framework/Versions/5/QtCore
Referenced from: /usr/local/Cellar/qt/5.12.3/bin/uic
Reason: Incompatible library version: uic requires version 5.12.0 or later, but QtCore provides version 5.7.0
Abort trap: 6
我用otool对抗uic得到了这个
/usr/local/Cellar/qt/5.12.3/bin/uic:
/usr/local/Cellar/qt/5.12.3/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.12.0, current version 5.12.3)
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
所以,在我看来,我的系统可能在某处有另一个版本的Qt,它是最先被发现的,但我不知道
我查看了系统信息,发现了这个
QTKit:
Version: 7.7.3
Obtained from: Apple
Last Modified: 11/30/18, 3:01 AM
Kind: Intel
64-Bit (Intel): Yes
Signed by: Software Signing, Apple Code Signing Certification Authority, Apple Root CA
Get Info String: QTKit 7.7.3, Copyright 2003-2012, Apple Inc.
Location: /System/Library/Frameworks/QTKit.framework
Private: No
但此版本与错误中的版本不匹配。所以,我不认为是这个人引起了这个问题
有没有办法解决这个问题?我甚至不知道从哪里开始