-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Cross-compiling from linux to windows #83
Comments
I'm not much of an expert around this, but one thing I suspect is that libxml2 was not installed with What does |
Here is the output:
I take it you are expecting When building with
It references |
Oh, now that I think about it, did you install |
Yes I have, if you have a look at the
|
Oh, hmm... sorry now I'm stumped. :/ |
No worries, I figured it's not really an issue with your package (which I have found quite useful, thanks for that!). I will keep digging. Feel free to close this. |
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. This does not mean your issue is rejected, but rather it is done to hide it from the view of the maintains for the time being. Feel free to reopen if you have new comments |
I seem to be having some issues cross-compiling from linux to windows.
Here is a reproducible example:
Dockerfile
go.mod
main.go
Attempting to build the image results in the following error:
Using
CGO_FLAGS=-I/usr/include
doesn't seem to help either.I can see the file
/usr/include/iconv.h
exists if built omitting the failing step in the dockerfile andpkg-config
recogniseslibxml2
.Sorry if this is the wrong place to put this, I figure this is more to do with
cgo
thanlibxml2
but I'm at a loss as to how to proceed. Probably similar to #80 (I have encountered their issue as well).The text was updated successfully, but these errors were encountered: