How to install Qt on MacOS X Sierra and add qmake to terminal

I want to install Qt on my Mac and use qmake through the terminal to compile the code. I downloaded the open source Qt Creator from the Qt website, but I cannot configure it. Anyone with similar problems?
System: Mac OS X Sierra, Qt Version: 5.7. I am downloading the open source installer from qt.io/download-open-source. I install it in Users / MyUserAccount and I want to configure it so that I can compile C ++ code with qmake && do

+6
source share
3 answers

Just to provide another solution using Homebrew.

, QT4 Mac OSX Sierra.

QT5, :

brew install qt5

, qmake . , :

brew link qt5 --force
+12

qmake , , qmake PATH. , , bash export PATH=$PATH:<path_to_qmake> ~/.profile, ~/.bash_profile ~/.bashrc.

+1

QT4: - https://github.com/cartr/homebrew-qt4

brew tap cartr/qt4
brew tap-pin cartr/qt4
brew install qt@4

QT5: -

brew install qt5 
0

Source: https://habr.com/ru/post/1656988/


All Articles