On 4/8/20 3:08 PM, 洪嘉鴻 wrote:
Hello everyone:
I use golang with Win10. I want to build GUI executables which can
work on Linux.
I found this
<https://github.com/lxn/walk/tree/master/examples/gradientcomposite> and
I could build GUI executable which can work on Windows.
However, I couldn't build GUI executable which can work on Linux with
the followings:
cd %~dp0
set GOOS=linux
set GOARCH=amd64
go build -v -o gradientcomposite gradientcomposite.go
pause
Is there something wrong with cross-compiler or could "lxn/walk" only
work on Windows?
lxn/walk use lxn/win, which wraps windows api,so you can not use it
under linux
Any help is appreciated.
Thank you very much!
Max
--
You received this message because you are subscribed to the Google
Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to golang-nuts+unsubscr...@googlegroups.com
<mailto:golang-nuts+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/437a3c1c-17aa-4d41-9560-3cabde2aa16f%40googlegroups.com
<https://groups.google.com/d/msgid/golang-nuts/437a3c1c-17aa-4d41-9560-3cabde2aa16f%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/f1112a23-8bd9-ecc3-97b5-2f01ad2514ae%40gmail.com.