[xsd-users] Building XSD

Boris Kolpackov boris at codesynthesis.com
Mon Aug 7 08:44:33 EDT 2023


Southworth Damon (AA/EOP1-PE) <damon.southworth at uk.bosch.com> writes:

> It has come to a point where I would also like to be able to build
> natively on our ARM platforms rather than cross compile. For this I
> wanted to get a version of xsd for this platform, so I decided to build
> the latest version from the xsd repository. This is done using build2
> as per the instructions.

Are you talking about these instructions or something else?

https://codesynthesis.com/products/xsd/doc/install-build2.xhtml


> I have managed to build it, but the result I achieve does not match
> the contents of the original tarballs that I have for the other
> platforms.
> 
> The originals contained the following:
>     "bin  doc  examples  FLOSSE  GPLv2  libxsd  LICENSE  NEWS  README  
>      version"
> With a self contained xsd in the bin folder and the header files in libxsd.
> 
> After the build2 install has completed I end up with the following:
>     "bin  include  lib  share"
>
> This version of xsd is dependent on the libraries built in the lib
> folder and there is are no headers files.
> 
> Is there a way to automatically get a build that is equivalent to the
> downloaded tarballs?

As a bit of background, the original layout was created half-manually,
which was a lot of effort to maintain and the switch to build2 was
partly motivated by that. With the build2-based build you by default
get the standard Linux filesystem layout (executables in bin/, headers
in include/, and libraries in lib/). While you can customize this quite
a bit[1], I don't think it will be easy to achieve the old layout without
some manual post-processing steps.

So I would suggest that you try to go with the new layout. If there are
some specific issues that you run into, let me know and we can see how
they can be addressed.

[1] https://build2.org/build2/doc/build2-build-system-manual.xhtml#intro-operations-install



More information about the xsd-users mailing list