-
Notifications
You must be signed in to change notification settings - Fork 753
Installation on Windows
https://golang.org/doc/install?download=go1.11.2.windows-amd64.msi
go get -u -v github.com/therecipe/qt/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtsetup test && %v\bin\qtsetup
- Use the MinGW shell (
%GOPATH%\bin\qtenv.bat
) if you want togo run
orgo build
your applications; optional: runsetx PATH "%PATH%"
inside the shell once to makego run
orgo build
work from within your default CMD or PS as well
go get -u -v github.com/therecipe/qt/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtdeploy test desktop github.com/therecipe/examples/basic/widgets
(replace github.com/therecipe/examples/...
with the project you want to compile)
-
Install Qt; you can also define a custom location with QT_DIR
-
online installer: https://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe
-
offline installer: https://download.qt.io/official_releases/qt/5.12/5.12.0/qt-opensource-windows-x86-5.12.0.exe
-
optional (only working with Qt <= 5.11.x): install the experimental webkit module: https://github.com/annulen/webkit/releases/download/qtwebkit-5.212.0-alpha2/qtwebkit-5.212.0_alpha2-qt59-mingw530-x86.zip, extract it's content inside
C:\Qt\5.11.2\mingw53_32
(or similar) and export QT_WEBKIT=true
-
-
Install Go: https://golang.org/doc/install?download=go1.11.2.windows-amd64.msi
-
Clone the repo:
go get -u -v -tags=no_env github.com/therecipe/qt/cmd/...
-
Run the setup:
%GOPATH%\bin\qtsetup.exe
-
Use the MinGW shell (
%GOPATH%\bin\qtenv.bat
) if you want togo run
orgo build
your applications; optional: runsetx PATH "%PATH%"
inside the shell once to makego run
orgo build
work from within your default CMD or PS as well
-
Install MSYS2 and export QT_MSYS2=true
-
Open a MinGW shell (the 64-bit version, if you want to deploy 64-bit applications) alternatively export QT_MSYS2_ARCH=amd64 or QT_MSYS2_ARCH=386
-
pacman -Syyu
-
Install Qt
-
to deploy dynamically linked 32-bit applications:
pacman -S mingw-w64-i686-qt-creator mingw-w64-i686-qt5
-
optional: install the experimental webkit module:
pacman -S mingw-w64-i686-qtwebkit
and export QT_WEBKIT=true
-
optional: install the experimental webkit module:
-
to deploy dynamically linked 64-bit applications:
pacman -S mingw-w64-x86_64-qt-creator mingw-w64-x86_64-qt5
-
optional: install the experimental webkit module:
pacman -S mingw-w64-x86-qtwebkit
and export QT_WEBKIT=true
-
optional: install the experimental webkit module:
-
to deploy statically linked 32-bit applications:
pacman -S mingw-w64-i686-qt-creator mingw-w64-i686-qt5-static
-
to deploy statically linked 64-bit applications:
pacman -S mingw-w64-x86_64-qt-creator mingw-w64-x86_64-qt5-static
-
-
pacman -Scc
-
Use the MinGW shell for the setup and deployments (the 64-bit version, if you want to deploy 64-bit applications) alternatively export QT_MSYS2_ARCH=amd64 or QT_MSYS2_ARCH=386
-
Export QT_MSYS2_STATIC=true if you want to deploy statically linked applications
-
Install Go: https://golang.org/doc/install?download=go1.11.2.windows-amd64.msi
-
Clone the repo:
go get -u -v -tags=no_env github.com/therecipe/qt/cmd/...
-
Run the setup:
%GOPATH%\bin\qtsetup.exe
Now that you are done with the installation you can start reading the usage instructions and build the examples.