[CastXML] CastXML Windows Installation

michkapopoff at gmail.com michkapopoff at gmail.com
Wed Sep 30 15:14:44 EDT 2015


Hi

some precisions about pygccxml. I am almost done with all the changes
for CastXML.

If you download the source code from the develop branch, you can try it out.
The last issue I have is supporting tr1/unordered_map
and tr1/unordered_sets with gcc, but if you don’t need this the current
version should be fine. There will be a 1.7.0 version soon.

Note that there are differences in the xml output between gccxml and castxml;
so there are of course some small differences when using pygccxml. I will update
the changelog to describe the changes, but they should only be minor for
most of the things.

The example has already been updated so you can see how to setup
pygccxml to use castxml:
https://github.com/gccxml/pygccxml/blob/develop/docs/example/example.py <https://github.com/gccxml/pygccxml/blob/develop/docs/example/example.py>

Michka

> On 30 Sep 2015, at 16:50, Brad King <brad.king at kitware.com> wrote:
> 
> On 09/30/2015 10:36 AM, Uğur Büyükdurak wrote:
>> I would like to know whether it is possible or not to build and use castxml
>> on windows machines.
> 
> Yes.
> 
>> I would also like to know whether it is compatible with pygccxml or not. 
> 
> See here for pygccxml status with regard to castxml:
> 
> https://github.com/gccxml/pygccxml/issues/19
> 
>> It is also mentioned that a C++ compiler supporting c++11 syntax and
>> clang/llvm compiler(SDK install tree built) are needed which I don't
>> understand why installing process needs two different compilers at
>> the same time. So basically why does castxml need clang and why does
>> it need another C++ compiler.
> 
> CastXML needs the LLVM/Clang SDK in order to build.  While gccxml came
> with its own patched copy of GCC, CastXML builds directly against an
> externally-built LLVM/Clang.  Since Clang is implemented in C++11,
> CastXML is also implemented in C++11.  Therefore one needs a C++11
> capable compiler to build both of them.  The Clang compiler is not
> executed or used to compile anything but it must be built to get its
> SDK.
> 
> Once CastXML is built and installed then it works independently
> from the original LLVM/Clang SDK installation.
> 
>> And one thing I forgot to ask, does castxml support C++11 specification?
> 
> CastXML does support parsing C++11 code but only the C++98 subset
> of the interfaces will be included in the output (no APIs with
> rvalue references for example).  One can pass -std=c++11 to castxml.
> 
> -Brad
> 
> _______________________________________________
> CastXML mailing list
> CastXML at public.kitware.com
> http://public.kitware.com/mailman/listinfo/castxml

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/castxml/attachments/20150930/84e2a997/attachment.html>


More information about the CastXML mailing list