Installation on macOS

therecipe edited this page Oct 9, 2018 · 13 revisions

Official version (with iOS/Android support)


HomeBrew version (without iOS/Android support)


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

    sudo port -b install qt5 qt5-qtcharts qt5-qtdatavis3d qt5-qtpurchasing qt5-qtremoteobjects qt5-qtscript qt5-qtwebglplugin
    
    • optional: install the experimental webkit module: sudo port -b install qt5-qtwebkit and export QT_WEBKIT=true
    • (TODO: sudo port -b install qt5-qtwebengine qt5-qtwebview)
  • Install Go: https://golang.org/doc/install?download=go1.11.1.darwin-amd64.pkg

  • Clone the repo: go get -v github.com/therecipe/qt/cmd/...

  • Run the setup: $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

    nix-env -b -i go qtbase qtcharts qtdeclarative qtdoc qtgraphicaleffects qtimageformats qtlocation qtmacextras qtmultimedia qtquickcontrols qtquickcontrols2 qtscript qtsensors qtserialport qtspeech qtsvg qttools qttranslations qtvirtualkeyboard qtwebchannel qtwebengine qtwebsockets qtx11extras qtxmlpatterns
    
    • optional: install the experimental webkit module: nix-env -i qtwebkit
  • Install Go: https://golang.org/doc/install?download=go1.11.1.darwin-amd64.pkg

  • Clone the repo: go get -v github.com/therecipe/qt/cmd/...

  • Run the setup: $GOPATH/bin/qtsetup


Now that you are done with the installation you can start reading the usage instructions and build the examples.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.