Type./configure -help to get a list of all available options. Note that you will need to specify -universal if you want to build universal binaries, and also supply a path to the -sdk option if your development machine has a PowerPC CPU. By default, Qt is built as a framework, but you can built it as a set of dynamic libraries (dylibs) by specifying the -no-framework option. As an alternative to the binary, you can install QT 4.8.7 with homebrew on mac 10.12: brew tap cartr/qt4 brew tap-pin cartr/qt4 brew install qt@4 brew install [email protected] Windows. Normally you should plan to build Qt from source to have complete control over the process. See one-liner build command or more detailed #Buildinstructions.
Fast track version
If you want to install Go
If you want to install the binding
In GOPATH mode
In Module mode (more info here, such as how to work around the GFW)
If you just want to compile an application
In GOPATH mode
(replace
github.com/therecipe/examples/...
with the project you want to compile)In Module mode (more info here, such as how to work around the GFW)
Official version (with iOS/Android support)
![Mac Os Manual Install Qt 4 Mac Os Manual Install Qt 4](/uploads/1/2/6/4/126421671/614325702.png)
- Install Xcode:
xcode-select --install
or https://itunes.apple.com/us/app/xcode/id497799835 - Install Qt; you can also define a custom location with QT_DIR
- optional: if you choose any other version than 5.13.0, then please export your version with QT_VERSION
- online installer: https://download.qt.io/official_releases/online_installers/qt-unified-mac-x64-online.dmg
- offline installer: https://download.qt.io/official_releases/qt/5.13/5.13.0/qt-opensource-mac-x64-5.13.0.dmg
- optional: install the experimental webkit module: https://github.com/annulen/webkit/releases/download/qtwebkit-5.212.0-alpha2/qtwebkit-5.212.0_alpha2-qt59-darwin-x64.tar.xz, extract it's content inside
$HOMEQt5.13.0clang_64
(or similar) and export QT_WEBKIT=true
- Install Go: https://golang.org/doc/install?download=go1.12.6.darwin-amd64.pkg
- Clone the repo:
go get -u -v -tags=no_env github.com/therecipe/qt/cmd/...
- Run the setup:
$(go env GOPATH)/bin/qtsetup
Mac Os Manual Install Qt 4 0
HomeBrew version (without iOS/Android support)
- Install Xcode:
xcode-select --install
or https://itunes.apple.com/us/app/xcode/id497799835 - Install HomeBrew and export QT_HOMEBREW=true
- Install Qt:
brew install qt
- Install Go: https://golang.org/doc/install?download=go1.12.6.darwin-amd64.pkg
- Clone the repo:
go get -u -v -tags=no_env github.com/therecipe/qt/cmd/...
- Run the setup:
$(go env GOPATH)/bin/qtsetup
MacPorts version (without iOS/Android support)
- Install Xcode:
xcode-select --install
or https://itunes.apple.com/us/app/xcode/id497799835 - Install MacPorts and export QT_MACPORTS=true
- Install Qt
- optional: install the experimental webkit module:
sudo port -b install qt5-qtwebkit
and export QT_WEBKIT=true
- optional: install the experimental webkit module:
- Install Go: https://golang.org/doc/install?download=go1.12.6.darwin-amd64.pkg
- Clone the repo:
go get -u -v -tags=no_env github.com/therecipe/qt/cmd/...
- Run the setup:
$(go env GOPATH)/bin/qtsetup
Nix version (without iOS/Android support)
- Install Xcode:
xcode-select --install
or https://itunes.apple.com/us/app/xcode/id497799835 - Install Nix
- Install Qt
- optional: install the experimental webkit module:
nix-env -i qtwebkit
- optional: install the experimental webkit module:
- Install Go: https://golang.org/doc/install?download=go1.12.6.darwin-amd64.pkg
- Clone the repo:
go get -u -v -tags=no_env github.com/therecipe/qt/cmd/...
- Run the setup:
$(go env GOPATH)/bin/qtsetup
Mac Install Qt
Now that you are done with the installation you can start reading the usage instructions and build the examples.