I want to install Qt on my Mac and use the qmake through terminal to compile code. I downloaded the open source Qt Creator from Qt site, but I cannot set it up. Anyone with similar problems?
System: Mac OS X Sierra,Qt version: 5.7. I'm downloading the open source installer from qt.io/download-open-source . I'm installing it to Users/MyUserAccount and i want set it up so i can compile C++ code with qmake && make
Active1 month ago
![]()
georgekom
May 02, 2018 How to install QT4, Poppler, and Cairo on MacOS Sierra 10.12 - qt4-poppler.md. How to install QT4, Poppler, and Cairo on MacOS Sierra 10.12 - qt4-poppler.md. Install qt4 on Sierra & link qt (this will take about 20 mins) brew install cartr/qt4/qt brew linkapps qt Download an older poppler.
georgekomgeorgekom
3 Answers
Just to provide another solution using Homebrew.
As you've found QT4 isn't compatible with Mac OSX Sierra.
You can install QT5 using:
But you'll find you can't access qmake from the command line. To rectify this you'll need to run:
elMarquiselMarquis
5,74533 gold badges3030 silver badges3737 bronze badges
If you want to run PaulPaul
qmake from command line, add the directory where qmake is located to PATH environment variable. How to do it depends on the shell you are using, for bash it is done by adding export PATH=$PATH:<path_to_qmake> to either ~/.profile , ~/.bash_profile or ~/.bashrc .
Mac Os Manual Install Qt4 8
11.4k33 gold badges3131 silver badges5151 bronze badges
For Installing QT4:-https://github.com/cartr/homebrew-qt4
For Installing QT5:-
eyllanesc
106k1212 gold badges3838 silver badges7171 bronze badges
Jerin K. JohnJerin K. John
Not the answer you're looking for? Browse other questions tagged c++macosqt or ask your own question.
https://brownpedia965.weebly.com/matricom-g-pad-ex-manual-mac.html. In the last article, I introduced you to Qt and its Python interfaces, PyQt and PySide; now that you know a bit about them, pick one and install it. I recommend PySide for two reasons: first, this tutorial is conceived in terms of PySide, and may cover a few topics that are less fully-implemented in PyQt; and second, its licensing is more flexible for your future use. Either one will work, however.
The following will show you how to install PySide and PyQt on Windows, Mac and Linux. Binary installers are available for most common platforms; links and setup instructions are outlined below:
Installation of PySide or PyQt is by a simple point-and-click installer on Windows. For PySide, get the appropriate binary for your version of Python from releases.qtproject.com. Run the installer, confirming the location of your Python installation (which should be correctly auto-detected) and optionally selecting an installation directory, and you should have a working PySide installation in seconds.
PyQt is much the same, except that you can choose only a partial installation instead of a full one: don't. You'll want the examples and demos. They're worth the space. Get the PyQt installers from Riverbank.
Mac OS X binaries to install PySide are available from the Qt Project.
For PyQt, use the binaries provided by the PyQtX project. Choose the complete version for your Python version, which supplies Qt as well as PyQt, unless you're certain that you have Qt installed in the correct version; then use the minimal installers.
If you're using Homebrew, you can do:
or
from the command line. You can also use MacPorts:
changing
NN to match your Python version. Similarly, you can do:
to install PyQt.
For Debian- and Ubuntu-based Linux distributions, installation of PySide or PyQt is simple; just do:
from the command line. For PyQt:
Alternatively, use Synaptic to install your choice of
python-pyside or python-qt4 .
Mac Os Manual Install Qt4 Windows 10![]()
Installation of PySide or PyQt is also simple for most RPM-based distros using
yum ; just do:
as root from the command line to install PySide. For PyQt, do
Mac Os Manual Install Qt4 1
Now that you have an installation of PySide or PyQt, we are almost ready to begin learning to use it — but first, we must discuss editors and IDEs. We'll do so in our next installment.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |