Closed ghost closed 5 years ago
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, notifications@github.com 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 https://github.com/gen2brain/beeep/issues/19#issuecomment-425420059, 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: