Skip to content
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 for Windows under Linux #18

Open
andreas-j-hauser opened this issue Jan 12, 2024 · 3 comments
Open

Cross compiling for Windows under Linux #18

andreas-j-hauser opened this issue Jan 12, 2024 · 3 comments

Comments

@andreas-j-hauser
Copy link

Under Linux I want to cross compile my project with xsd-validate module for Windows platform. For Linux platform the build runs and the executable works. But If I try to build for Windows I go following message and the build fails.

Under Linux I installed version 2.9.12 of libxml2

../../internal/datamodel/datamodel.go:57:14: undefined: xsdvalidate.Init
../../internal/datamodel/datamodel.go:58:20: undefined: xsdvalidate.Cleanup
../../internal/datamodel/datamodel.go:59:33: undefined: xsdvalidate.NewXsdHandlerMem
../../internal/datamodel/datamodel.go:59:105: undefined: xsdvalidate.ParsErrDefault
../../internal/datamodel/datamodel.go:65:33: undefined: xsdvalidate.NewXmlHandlerMem
../../internal/datamodel/datamodel.go:65:74: undefined: xsdvalidate.ParsErrDefault
../../internal/datamodel/datamodel.go:72:52: undefined: xsdvalidate.ValidErrDefault

Can I use xsd-validate for Windows?
What I have to do to compile my project for Windows under Linux?

Thank you very much
Andreas

@terminalstatic
Copy link
Owner

Sorry, never needed that. From what I gathered from a quick google search it might be doable but even the short reading I did about how to possibly set this up gave me a headache, so I‘m afraid you‘d have to figure this out for yourself.

@BLuchterhand
Copy link

@terminalstatic can you share any more details on what's required? I'd find this to be immensely helpful for my own case but I'm not sure where to even begin looking.
@andreas-j-hauser did you manage to find another solution?

@terminalstatic
Copy link
Owner

@BLuchterhand Probably possible with mingw64, not sure though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants