如何使用自制软件安装Qt4 [英] How to install qt4 with home-brew
问题描述
我正在尝试安装LabelImg,但为了这样做,我需要先安装qt4,因为我使用的是python2.我找到的所有指南都告诉我要做
I'm trying to install LabelImg, but in order to do so I need to install qt4 first because I'm using python 2. All the guides I find tell me to do
brew install qt qt4
但是我只收到错误:在水龙头中找不到公式".我也尝试过
But I just get "Error: No formulae found in taps." I also tried
brew install cartr/qt4/qt
但是当我去构建LabelImg时,我得到了
But when I went to build LabelImg I get
make: *** [qt4py2] Error 1
我使用的是最新版的OSX,并且尝试了安装Qt的其他方法,看来它安装正确,但是我不能用它来做任何事情
I am on the latest version of OSX and I have tried the alternative methods of installing Qt, it seems like it is installed properly, but I can't use it to make anything
推荐答案
此Homebrew水龙头可让您安装Qt4(以及各种 取决于它)在macOS Sierra和更高版本上.您可以这样安装它:
This Homebrew tap allows you to install Qt4 (and various packages that depend on it) on macOS Sierra and newer. You can install it like this:
brew tap cartr/qt4
brew tap-pin cartr/qt4
brew install qt@4
这篇关于如何使用自制软件安装Qt4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!