-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Cannot cross compile for windows on Mac after updating from v2.9.2 to v2.10.1 #4112
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
Comments
In the meantime I have downgraded to Wails version 2.9.3 (with go 1.4 support) and cross-compiling for windows works with this version. |
I am new to wails and for a moment thought it is not really cross platform ;) Downgrading indeed works, thanks for the suggestion. Hopefully this gets fixed soon. |
Yep, thanks for confirming the issue. 👍 I also hope the the issue gets fixed soon. But I think they are currently working hard on v3. Lets see if there is time for a 2.9.4 😎 |
I have the same problem to build an arm64 version too from windows.
|
If you want to build your project for windows on mac before the update, use the command below brew install mingw-w64 and env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_CXXFLAGS="-IC:\msys64\mingw64\include" wails build -ldflags '-extldflags "-static"' -skipbindings |
最后咋解决的 |
This one seems to keep coming up >.< |
I used |
Description
After updating my wails CLI to the most recent version (2.10.1) coming from 2.9.2 I cannot cross compile anymore.
To Reproduce
wails -init -n test
wails build -platform windows
"Generating bindings: ERROR", fork/exec /var/folders/v4/5xlqls356_x9qdg07d5w8skh0000gp/T/wailsbindings: exec format error
Expected behaviour
Cross compilation of application possible like in version 2.9.2.
Screenshots
Attempted Fixes
Update of golang to latest version.
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: