Build a package for linux plateform under... windows

I would like to build this package for linux plateform:

I work under windows 10.
The build works when I set GOOS=WINDOWS but failed when I set GOOS=linux with the following error:
build constraints exclude all Go files in C:\Work\GoWorkspace\src\\jkl1337\go-mediainfo

If I set CGO_ENABLED=1, I have this error:
_cgo_export.c:1:0: error: -fPIC ignored for target

any idea?

Just curious, why don’t you consider developing directly on Linux?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.