[xsd-users] building example code

Boris Kolpackov boris at codesynthesis.com
Thu May 20 09:58:06 EDT 2010


Hi Toby,

Toby Ealden <toby.ealden at gmail.com> writes:

> This is the error I get when I try to build the xpath sample:
> 
> eideteal at head:~/xpath-build/xsd/xsd-3.3.0.b1/examples/cxx/tree/xpath> make
> ../../../../build/bootstrap.make:16: build-0.3/bootstrap.make: No such file
> or directory
> make: *** No rule to make target `build-0.3/bootstrap.make'.  Stop.

You seem to be using the source distribution of the XSD compiler (plus 
it is an outdated beta). To build the XSD compiler this way you will
need to build a substantial list of additional packages. There are,
however, easier ways to go about this:

1. Unless you have a good reason to want to build the XSD compiler
   yourself, I suggest that you get a pre-compiled binary package
   from the download page:

   http://www.codesynthesis.com/products/xsd/download.xhtml

   xsd-3.3.0-x86_64-linux-gnu.tar.bz2 will work for your OS. You can
   also try the RPM package (xsd-3.3.0-1.x86_64.rpm).

   Once you unpack this, simply cd to examples/cxx/tree/xpath and
   run make. Everything should build without problems provided
   you have Xerces-C++ and XQilla installed.

2. If you do want to build the XSD compiler yourself, the easier
   way would be to download xsd-3.3.0+dep.tar.bz from here:

   http://www.codesynthesis.com/download/xsd/3.3/

   This package contains the XSD source code bundled with most of
   its prerequisites.

   Once unpacked, follow the instructions found in the README file.
   Note that besides Xerces-C++ you will also need to build the 
   Boost regex and filesystem libraries (this is not necessary
   for option (1) above). Once the compiler is built, you can
   cd to xsd/examples/cxx/tree/xpath and run make from there. 
   When asked about using installed XQilla, answer yes. You can
   also make a package similar to the one used for option (1)
   with the 'dist' make target (see README for details).

Boris



More information about the xsd-users mailing list