You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GOOS=windows GOARCH=amd64 go build -o button.exe button.go
go build github.com/zlgopen/awtk-go/awtk: build constraints exclude all Go files in /home/xxx/pkg/mod/github.com/zlgopen/[email protected]/awtk
尝试开启cgo,进行交叉编译,仍然报错:
$ CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -o button.exe button.go
# runtime/cgo
gcc: error: unrecognized command-line option ‘-mthreads’; did you mean ‘-pthread’?
问题1:请问awtk-go是否支持交叉编译,比如在linux下编译出windows下的可执行程序?
我在linux下执行下面的命令,但是报错了:
尝试开启cgo,进行交叉编译,仍然报错:
问题2:用awtk/scripts/release.py发布程序时,会生成一个assets目录,里面是一些资源文件,这些文件能否内置到编译出的可执行程序中呢?如果可以的话,开发好的程序就只有一个可执行程序,没有其他文件了。go本身的embed包可以将文件内置到编译出来的程序中,能否利用embed包的这个功能把assets目录下的资源文件都内置到程序文件中呢?
The text was updated successfully, but these errors were encountered: