{"action":"created","issue":{"url":"https://api.github.com/repos/therecipe/qt/issues/629","repository_url":"https://api.github.com/repos/therecipe/qt","labels_url":"https://api.github.com/repos/therecipe/qt/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/therecipe/qt/issues/629/comments","events_url":"https://api.github.com/repos/therecipe/qt/issues/629/events","html_url":"https://github.com/therecipe/qt/issues/629","id":326521576,"number":629,"title":"qtsetup.exe error: failed to find g++","user":{"login":"GingerMoon","id":8342412,"avatar_url":"https://avatars2.githubusercontent.com/u/8342412?v=4","gravatar_id":"","url":"https://api.github.com/users/GingerMoon","html_url":"https://github.com/GingerMoon","followers_url":"https://api.github.com/users/GingerMoon/followers","following_url":"https://api.github.com/users/GingerMoon/following{/other_user}","gists_url":"https://api.github.com/users/GingerMoon/gists{/gist_id}","starred_url":"https://api.github.com/users/GingerMoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GingerMoon/subscriptions","organizations_url":"https://api.github.com/users/GingerMoon/orgs","repos_url":"https://api.github.com/users/GingerMoon/repos","events_url":"https://api.github.com/users/GingerMoon/events{/privacy}","received_events_url":"https://api.github.com/users/GingerMoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-25T13:20:48Z","updated_at":"2018-05-26T19:38:26Z","closed_at":null,"author_association":"NONE","body":"I met the error after I did the steps below according to the doc https://github.com/therecipe/qt/wiki/Installation-on-Windows \r\n\r\nOfficial Version (with Android support)\r\nInstall Go: https://golang.org/doc/install?download=go1.10.1.windows-amd64.msi\r\nClone the repo: go get -u -v github.com/therecipe/qt/cmd/...\r\nRun the setup: $GOPATH/bin/qtsetup\r\n\r\nAs can see, g++ is not mentioned in the doc. Did I miss anything?\r\nI would appreciate if you could share any insight on this. Below is my environment:\r\n**********************\r\nPS C:\\GoWorkspace\\bin> .\\qtsetup.exe\r\n\u001B[36mINFO\u001B[0m[0000] running: 'qtsetup prep'\r\n\u001B[36mINFO\u001B[0m[0000] running: 'qtsetup check windows' [docker=false] [vagrant=false]\r\n\u001B[31mPANI\u001B[0m[0000] failed to find g++, did you add the directory that contains g++ to your PATH?  \u001B[31merror\u001B[0m=\"exec: \\\"g++\\\": executable file not found in %PATH%\"\r\npanic: (*logrus.Entry) (0x7fd5a0,0xc04207a910)\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/sirupsen/logrus.Entry.log(0xc04207a0a0, 0xc0422b9dd0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000000000, ...)\r\n        C:/GoWorkspace/src/github.com/sirupsen/logrus/entry.go:112 +0x25b\r\ngithub.com/sirupsen/logrus.(*Entry).Panic(0xc04207a8c0, 0xc04206da08, 0x1, 0x1)\r\n        C:/GoWorkspace/src/github.com/sirupsen/logrus/entry.go:182 +0xb1\r\ngithub.com/therecipe/qt/internal/cmd/setup.Check(0x809ee3, 0x7, 0x800000)\r\n        C:/GoWorkspace/src/github.com/therecipe/qt/internal/cmd/setup/check.go:104 +0x2888\r\nmain.main()\r\n        C:/GoWorkspace/src/github.com/therecipe/qt/cmd/qtsetup/main.go:96 +0x292\r\nPS C:\\GoWorkspace\\bin> go env\r\nset GOARCH=amd64\r\nset GOBIN=\r\nset GOCACHE=C:\\Users\\37675\\AppData\\Local\\go-build\r\nset GOEXE=.exe\r\nset GOHOSTARCH=amd64\r\nset GOHOSTOS=windows\r\nset GOOS=windows\r\nset GOPATH=C:\\GoWorkspace\r\nset GORACE=\r\nset GOROOT=C:\\Go\r\nset GOTMPDIR=\r\nset GOTOOLDIR=C:\\Go\\pkg\\tool\\windows_amd64\r\nset GCCGO=gccgo\r\nset CC=gcc\r\nset CXX=g++\r\nset CGO_ENABLED=1\r\nset CGO_CFLAGS=-g -O2\r\nset CGO_CPPFLAGS=\r\nset CGO_CXXFLAGS=-g -O2\r\nset CGO_FFLAGS=-g -O2\r\nset CGO_LDFLAGS=-g -O2\r\nset PKG_CONFIG=pkg-config\r\nset GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\\Users\\37675\\AppData\\Local\\Temp\\go-build112248710=/tmp/go-build -gno-record-gcc-switches\r\nPS C:\\GoWorkspace\\bin> go version\r\ngo version go1.10.1 windows/amd64\r\n**********************"},"comment":{"url":"https://api.github.com/repos/therecipe/qt/issues/comments/392283656","html_url":"https://github.com/therecipe/qt/issues/629#issuecomment-392283656","issue_url":"https://api.github.com/repos/therecipe/qt/issues/629","id":392283656,"user":{"login":"DBl4de","id":4419397,"avatar_url":"https://avatars2.githubusercontent.com/u/4419397?v=4","gravatar_id":"","url":"https://api.github.com/users/DBl4de","html_url":"https://github.com/DBl4de","followers_url":"https://api.github.com/users/DBl4de/followers","following_url":"https://api.github.com/users/DBl4de/following{/other_user}","gists_url":"https://api.github.com/users/DBl4de/gists{/gist_id}","starred_url":"https://api.github.com/users/DBl4de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBl4de/subscriptions","organizations_url":"https://api.github.com/users/DBl4de/orgs","repos_url":"https://api.github.com/users/DBl4de/repos","events_url":"https://api.github.com/users/DBl4de/events{/privacy}","received_events_url":"https://api.github.com/users/DBl4de/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T19:38:26Z","updated_at":"2018-05-26T19:38:26Z","author_association":"NONE","body":"Uh ... I just came across the same issue (the g++ one).\r\n\r\nI resolved it by adding g++.exe (located in the bin of the MSYS2 installation directory). But this only works after you also followed the MSYS2 installation guide. So you need both: the official QT installation and then install QT again via the MSYS2. Or at least that what I had to do in order to make it work somehow... prefer ofc to remove one if possible, because now I have used up roughly 20-30 GB of space just for that without writing any code yet :-/"}}
{"actor":{"display_login":"DBl4de"}}