This page covers the build and installation process of GCC-XML from source. Refer to the Download page to get a copy of the source tree.
GCC-XML uses CMake to support building on many platforms. A copy of CMake may be obtained from the CMake download page. CMake will generate an appropriate build system for your platform and compiler.
When the build finishes, there will be a "gccxml"
executable in the bin, bin/Debug, or
bin/Release directory inside the build tree depending
on the build system you chose. It may be run directly from this
location. Installation from a build tree is not currently
supported on Windows.
~/gccxml
$ mkdir gccxml-build
$ cd gccxml-build
$ cmake ../gccxml
$ make
$ make install
You can change the install prefix by adding
-DCMAKE_INSTALL_PREFIX:PATH=/installation/path to the
CMake command (default is /usr/local). If you are
familiar with CMake, you should probably use the
ccmake curses dialog instead.
This will install an executable called "gccxml" in
PREFIX/bin and a supporting executable called
"gccxml_cc1plus". Supporting files will also
be installed in PREFIX/share/gccxml-version.
The "make install" step is optional. The
gccxml executable may be run directly from the build
tree. It will be located in gccxml-build/bin.