在Mac OS X上Qt的uic无法找到合适的QtCore

时间:2019-10-14 20:02:05

标签: macos qt cmake qt5 uic

我正在尝试在我的计算机(Mac OS X 10.14.6)上构建此人https://github.com/cnr-isti-vclab/nexus/blob/master/INSTALL.md。我遇到了Qt的uic问题。

我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/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

我反对uic运行了otool并且得到了

/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

但是此版本与错误中的版本不匹配。所以,我不认为这是导致问题的人。

任何想法如何解决此问题?我什至不知道从哪里开始。

0 个答案:

没有答案