-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cross compilation fails #563
Comments
I'll check on my machine bit stream errors suggest transient connection errors |
@leaanthony @tmclane Hello, please can you help with this? The build keeps exiting at the linker command error. No file is produced in the build directory. I am on a windows 10 machine cross-compiling to macos |
Hi. Sorry for the delay in getting back to you. This came up before: #410 - Added a question there. |
I think i have somehow isolated the problem. So if I have my code structured this way, it will run.
Once I move the GetTime function to a different file in a different package folder, I get the linker error. |
I can't reproduce this behaviour in a new repository. I will still investigate further |
@tmclane @leaanthony Helo, Please can I add you to my repo to help debug the linker issue? |
Sure |
Doing a brief google search, I found this: golang/go#33968 Edit: This has more info: golang/go#36025 with a potential fix. Try this: |
I don't know how to pass that flag into the docker container for cross compiling. I isolated my problem to a specific package. https://github.com/kbinani/screenshot It depends on a different package (https://github.com/BurntSushi/xgbutil) that requires some files to build which aren't present in the docker image. I ended up getting a Mac to compile my project. Thanks for helping |
Description
I am trying to build using the xgo docker image. When I run the build command
wails build -x darwin/amd64
without the -verbose flag, the app shows it built successfully. After setting the verbose flag, I noticed a few errors on the last few lines before it finishedgo: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
go: downloading github.com/jinzhu/now v1.1.1
/go/pkg/mod/github.com/wailsapp/[email protected]/runtime/window.go:9:2: golang.org/x/[email protected]: stream error: stream ID 17; INTERNAL_ERROR
/go/pkg/mod/github.com/wailsapp/[email protected]/runtime/window.go:10:2: golang.org/x/[email protected]: stream error: stream ID 17; INTERNAL_ERROR
/go/pkg/mod/github.com/wailsapp/[email protected]/runtime/window.go:11:2: golang.org/x/[email protected]: stream error: stream ID 17; INTERNAL_ERROR
/go/pkg/mod/github.com/wailsapp/[email protected]/runtime/window.go:12:2: golang.org/x/[email protected]: stream error: stream ID 17; INTERNAL_ERROR
/go/pkg/mod/github.com/wailsapp/[email protected]/runtime/window.go:13:2: golang.org/x/[email protected]: stream error: stream ID 17; INTERNAL_ERROR
Cleaning up build environment...
Awesome! Project 'myapp' built!
I have the following packages in my project
The build folder is always empty.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System Details
|
Additional context
If I run the same build command for a new wails project, it compiles it successfully to macos version
The text was updated successfully, but these errors were encountered: