【发布时间】:2020-05-25 08:00:11
【问题描述】:
我需要为我的一个类安装 qt4 C++ 框架。我尝试使用 qt4.7 和 qt4.8 下载档案页面中的常规安装程序,但是我收到警告:
"Installing this package may damage your system, and the installation may fail."
所以我考虑通过自制软件安装它并最初尝试:
brew tap cartr/qt4
brew tap-pin cartr/qt4
brew install qt@4
但是,这给了我这个错误:
Error: Calling brew tap-pin user/tap is disabled! Use fully-scoped user/tap/formula naming instead.
我在网上寻找解决方案,并通过省略brew tap-pin cartr/qt4 命令安装它:
brew tap cartr/qt4
brew install qt@4
然后我尝试在 CLion IDE 中创建一个示例 qt 程序并检查我使用的版本,它说我使用的是 qt5(来自 python anaconda 发行版)。所以我的问题是,我可以在我的系统上同时安装 qt4 和 qt5 吗?如何选择要使用的版本?
【问题讨论】:
标签: qt qt4 homebrew clion macos-mojave