The runtime library (libxsd) is header-only so there is no need for the end user to install it if you are providing your software in compiled form.
Use the
--output-dir
option
erik@ubuntu:~$ xsdcxx help cxx-tree 2>&1 | grep -A1 output-dir
--output-dir <dir> Write generated files to <dir> instead of current
directory.
3. Regarding "warning T004":
erik@ubuntu:~$ xsdcxx help cxx-tree 2>&1 | grep -A1 root-element
--root-element-first Treat only the first global element as a document
root.
--root-element-last Treat only the last global element as a document
root.
--root-element-all Treat all global elements as document roots.
--root-element-none Don't treat any global elements as document roots.
--root-element <element> Treat only <element> as a document root. Repeat
this option to specify more than one root element.
If you don't specify any of these options, --root-element-all
is implied but you will see the "warning T004".
If --root-element-all
is what you want, I suggest adding that option to make the warning go away.
Regarding "warning F002": Sorry, I don't know.
Note: "2>&1" will not be needed in the future when CodeSynthesis XSD will start printing the help text to stdout. http://codesynthesis.com/pipermail/xsd-users/2012-March/003577.html