Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vendor - env_windows_amd64_512 #940

Open
ManPython opened this issue Aug 25, 2019 · 1 comment
Open

vendor - env_windows_amd64_512 #940

ManPython opened this issue Aug 25, 2019 · 1 comment

Comments

@ManPython
Copy link

ManPython commented Aug 25, 2019

Regarding to #931 (comment):

Can you maybe try to run go get -v -d github.com/therecipe/env_windows_amd64_512 and then run the qtsetup again with QT_VERSION=5.12.0 and QT_API=5.12.0 beeing set?
Because I actually did work around this issue when buildling the env_windows_amd64_512 by using gcc 6.4.0, which compiles cgo code a lot faster and the gcc 7.3.0 version used in env_windows_amd64_513.
If this speeds-up your setup significantly, then I will patch the env_windows_amd64_513 as well to contain gcc 6.4.0

...

time="2019-08-25T15:07:35+02:00" level=info msg="generating full qt/sailfish"
time="2019-08-25T15:07:35+02:00" level=info msg="generating full qt/remoteobjects"
time="2019-08-25T15:07:42+02:00" level=info msg="running: 'qtsetup install windows' [docker=false] [vagrant=false]"
time="2019-08-25T15:07:42+02:00" level=info msg="installing full qt/core"
github.com/therecipe/qt
runtime/cgo
# runtime/cgo
gcc: error: C:\Users\Public\env_windows_amd64\Tools\mingw730_64\x86_64-w64-mingw32\lib\libmsvcrt.a: No such file or directory

time="2019-08-25T15:08:22+02:00" level=error msg="failed to install 'core'; aborting setup"
exit status 1

I can confirm that ibmsvcrt.a not exist on dir and repo https://github.com/therecipe/env_windows_amd64_512
and similary on https://github.com/therecipe/env_windows_amd64_513/tree/master/5.13.0/mingw73_64/lib
I copied this from https://github.com/jonasstrandstedt/MinGW/blob/master/MinGW/lib/libmsvcrt.a
But not sure where this sould be placed in case of https://github.com/therecipe/env_windows_amd64_512/blob/master/Tools/mingw730_64/x86_64-w64-mingw32/lib/libmsvcrt.a or this is dir path problem

  1. The qtmoc not loging in log any sucess (soo not sure that all was ok ro not ok) after run comand cmd wait for new comands soo I run qtdeploy and
C:\>c:\gopath\go\bin\qtmoc desktop C:\examples\vendor\github.com\therecipe\qt\gui

C:\>c:\gopath\go\bin\qtdeploy desktop C:\examples\vendor\github.com\therecipe\qt\gui
time="2019-08-25T13:03:11+02:00" level=panic msg="failed to recognize build target C:\\examples\\vendor\\github.com\\therecipe\\qt\\gui"
panic: (*logrus.Entry) (0x8788a0,0xc000180230)

goroutine 1 [running]:
github.com/sirupsen/logrus.Entry.log(0xc000036180, 0xc00016a750, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        C:/gopath/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:239 +0x2d5
github.com/sirupsen/logrus.(*Entry).Log(0xc000180070, 0x0, 0xc000077b80, 0x1, 0x1)
        C:/gopath/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:268 +0xf4
github.com/sirupsen/logrus.(*Entry).Logf(0xc000180070, 0xc000000000, 0x8afd7a, 0x23, 0xc000077c30, 0x1, 0x1)
        C:/gopath/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:314 +0xeb
github.com/sirupsen/logrus.(*Logger).Logf(0xc000036180, 0x0, 0x8afd7a, 0x23, 0xc000077c30, 0x1, 0x1)
        C:/gopath/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/logger.go:145 +0x9d
github.com/sirupsen/logrus.(*Logger).Panicf(...)
        C:/gopath/go/pkg/mod/github.com/sirupsen/logrus@v1.4.2/logger.go:186
github.com/therecipe/qt/internal/utils.CheckBuildTarget(0xc000078030, 0x2e, 0x87f300)
        C:/gopath/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20190813185824-0b997e8d18a6/internal/utils/env.go:156 +0x50c
main.main()
        C:/gopath/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20190813185824-0b997e8d18a6/cmd/qtdeploy/main.go:110 +0x5a2

I think it's not related with libmsvcrt.a

@therecipe
Copy link
Owner

therecipe commented Aug 29, 2019

Hey

gcc: error: C:\Users\Public\env_windows_amd64\Tools\mingw730_64\x86_64-w64-mingw32\lib\libmsvcrt.a: No such file or directory

Sorry, this is probably caused by some broken/old symlink to the env_windows_amd64_513 or something.
Maybe remove the C:\Users\Public\env_windows_amd64 and C:\Users\Public\env_windows_amd64_Tools symlinks and try again.

time="2019-08-25T13:03:11+02:00" level=panic msg="failed to recognize build target C:\examples\vendor\github.com\therecipe\qt\gui"

This is caused by running qtdeploy without specifying the build target.
Running
qtdeploy build desktop path/to/example
should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants