Skip to content

Windows installation of qml

lanastasov edited this page Jan 14, 2015 · 2 revisions

How to install go-qml on Windows:

you'll need the following: MinGW gcc 4.8.1 (install mingw-get and install the gcc from within the setup GUI)
Qt 5.1.1 for MinGW 4.8
Go >= 1.2
Then, assuming Qt was installed under C:\Qt5.1.1, set up the following environment variables in the respective configuration:

CPATH += C:\Qt5.1.1\5.1.1\mingw48_32\include
LIBRARY_PATH += C:\Qt5.1.1\5.1.1\mingw48_32\lib
PATH += C:\Qt5.1.1\5.1.1\mingw48_32\bin

After reopening the shell for the environment changes to take effect, this should work:
go get gopkg.in/qml.v1

# pkg-config --cflags Qt5Core Qt5Widgets Qt5Quick
pkg-config: exec: "pkg-config": executable file not found in %PATH%

gtk downloaded from http://win32builder.gnome.org/gtk+-bundle_3.6.4-20131201_win64.zip
PATH += C:\gtk\bin
PKG_CONFIG_PATH = C:\Qt\Qt5.1.1\5.1.1\mingw48_32\lib\pkgconfig

go get gopkg.in/qml.v1
# gopkg.in/qml.v1
cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

Clone this wiki locally