go-xsd-validate icon indicating copy to clipboard operation
go-xsd-validate copied to clipboard

Cross compiling for Windows under Linux

Open andreas-j-hauser opened this issue 1 year ago • 5 comments

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

andreas-j-hauser avatar Jan 12 '24 05:01 andreas-j-hauser

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.

terminalstatic avatar Jan 13 '24 09:01 terminalstatic

@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?

BLuchterhand avatar Dec 12 '24 11:12 BLuchterhand

@BLuchterhand Probably possible with mingw64, not sure though.

terminalstatic avatar Dec 19 '24 22:12 terminalstatic