Mac Os Manual Install Qt 4

  1. Mac Os Download For Windows
  2. Install Mac Os On Pc
  3. Mac Os Manual Install Qt 4 5
  4. Qt For Mac
  5. Mac Install Qt
  6. Mac Os Manual Install Qt 4 2
Active3 years, 7 months ago

I was using Qt 4.8.6 on Mac OS X Yosemite before. I have just upgraded to El Capitan but then I cannot open Qt project with Qt 4.8.6 kit. I tried to remove and reinstall Qt 4.8.6.
I don't know why Qt 4.6.6 cannot be installed on new Mac OS X El Capitan. How about you? Can you verify me that Qt 4.8.6 cannot be installed on Mac OS X El Capitan?
Thank you very much!

//Edit: It seems that there is a same problem: https://forum.qt.io/topic/60173/install-qt-4-8-7-on-a-mac-running-os-x-10-11-el-capitan/6

Load more results. Apple Footer Apple Support.

aviit
aviitaviit
Mac os download for windows

1 Answer

It seems as though there are some APIs used by Qt 4.8 that were removed with the release of OS X 10.11. As the current version 4.8.7 is (planned to be) the last of the 4.8 family according to the 4.8.7 release notes, you'll need to patch and compile Qt yourself as discussed in the MacPorts Trac.

The convenient alternative is installing via homebrew or MacPorts. I've told homebrew to build Qt 4.8.7 for me and it works fine.

Apart from that it is strongly advised to upgrade to Qt 5.x due to support for 4.x running out - if you're not bound by external constraints like me. ;) (Source: also the release notes post)

Mac Os Download For Windows

TanuvaTanuva
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged macosinstallationqt4osx-elcapitan or ask your own question.

Fast track version

If you want to install Go
If you want to install the binding
In GOPATH mode

Install Mac Os On Pc

In Module mode (more info here, such as how to work around the GFW)
Mac
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 5

  • 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

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)

Qt For Mac

  • 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
  • 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)

Mac Install Qt

  • 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
  • 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 2

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