-
Notifications
You must be signed in to change notification settings - Fork 88
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
building for windows from osx #19
Comments
Why do you want to build with CGO_ENABLED just on Windows? You need mingw toolchain if you are cross compiling something that use CGo, for native Go you don't need that. |
I thought the toast lib needs cgo :)
It doesn't ?
…On Fri, 28 Sep 2018, 14:29 Milan Nikolic, ***@***.***> wrote:
Why do you want to build with CGO_ENABLED just on Windows? You need mingw
toolchain if you are cross compiling something that use CGo, for native Go
you don't need that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwowNL6QcM_POhN3SyqWpztSchi7mks5ufhYigaJpZM4W-Tfd>
.
|
Nope, it builds template file and executes it with powershell. No cgo. |
Actually for Windows in most cases you don't need to use cgo, e.g. https://github.com/gen2brain/dlgs/blob/master/dlgs_windows.go , better than Linux. For win32 API everything can be done with syscall, I guess only for new apis you will need cgo. |
Pat king of you to help me learn. Will close .. |
I cant get a Windows build :)
I have a setup for cross platform builds running from OSX and Linux.
But I cant build for Windows from OSX.
Would appreciate advice here !
Step to repo:
Makefile you can run from anywhere:
The text was updated successfully, but these errors were encountered: