Download & Install¶
Prerequisite: CastXML¶
CastXML needs to be installed on your system.
- If you are on linux or mac, your package manager may already provide a “castxml” package.
- You can download pre-compiled binaries for Linux, for OS X and for Windows.
- You can compile CastXML from source, either with the SuperBuild, or by following the full install instructions .
Installation of pygccxml¶
You can use pip to install pygccxml:
pip install pygccxml
To install from source, you can use the usual procedure:
python setup.py install
GCC-XML (Legacy)¶
These instructions are only here for historical reasons. GCC-XML was the tool used to generate the xml files before CastXML existed.
From version v1.8.0 on, pygccxml uses CastXML by default. The support for GCC-XML will finally be dropped in pygccxml v2.0.0.
There are few different ways to install GCC-XML on your system:
- Most Linux system provide the “gccxml” package through their package manager.
- See the instructions to install GCC-XML from source.