[CastXML] Building CastXML from Source

Mcgibbney, Lewis J (398M) Lewis.J.Mcgibbney at jpl.nasa.gov
Wed May 20 18:30:30 EDT 2015


Hi Matt,
Some initial feedback from someone who has *just* picked up CastXML.


  *   A C++ compiler supporting the c++11 standard language level.

Any one in particular? Any suggestions? I’ve been messing around with my environment recently and guidance on this would be very much appreciated rather than me going on a wild goose chase to find something which I later find out to be the incorrect choice.

  *   CMake<http://www.cmake.org/> cross-platform build system generator.

I’ve got this installed. Will this work?
lmcgibbn at LMC-032857 /usr/local/jpl/snow/trunk/tmscag/trunk(master) $ cmake --version
cmake version 3.2.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).


  *   LLVM/Clang<http://clang.llvm.org/> compiler SDK install tree built using the C++ compiler. This version of CastXML has been tested with LLVM/Clang
     *   Release 3.6.0
     *   SVN revision 234175


I’m nearly reaching my limit navigating the llvm/clang documentation and failing to complete the task at hand without any issues.
Can you point me to a trusted llvm/clang installation which will address the above?
I have the following clang setups locally

Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

clang+llvm-3.0-x86_64-apple-darwin11/
clang+llvm-3.2-x86_64-apple-darwin11/
clang+llvm-3.4-x86_64-apple-darwin10.9/
clang+llvm-3.4.2-x86_64-apple-darwin10.9/
clang+llvm-3.1-x86_64-apple-darwin11/
clang+llvm-3.3-x86_64-apple-darwin12/
clang+llvm-3.4.1-x86_64-apple-darwin10.9/
clang+llvm-3.5.0-macosx-apple-darwin/

I tried all of the above with xdress and got pretty much nowhere. This is why if you have a trusted installation from source guide for llvm/clang.

  *   Optionally, the Sphinx<http://sphinx-doc.org/> documentation generator to build documentation.

Which version? Any add ons? Any other tricks we need to know about?

  *   Run CMake on the CastXML source tree to generate a build tree using a C++ compiler compatible with that used to build the LLVM/Clang SDK.

Some precise documentation here would be ultimately helpful so I am going to provide a simple example usage statement with the mandatory options filled in as dummy options.

When I try to build as follows

lmcgibbn at LMC-032857 /usr/local/CastXML(master) $ cmake -DLLVM_DIR=/usr/local/clang+llvm-3.6.0-x86_64-apple-darwin/share/llvm/cmake -DCLANG_RESOURCE_DIR=/usr/local/clang+llvm-3.6.0-x86_64-apple-darwin/lib/clang/3.6.0/ .

CMake Error at /usr/local/clang+llvm-3.6.0-x86_64-apple-darwin/share/llvm/cmake/LLVMConfig.cmake:52 (include):

  include could not find load file:

    /Users/sebastiandressler/llvm-3.6-testing/final/Phase3/Release/llvmCore-3.6.0-final.install/share/llvm/cmake/LLVMExports.cmake

Call Stack (most recent call first):

  CMakeLists.txt:54 (find_package)

CMake Error at /usr/local/clang+llvm-3.6.0-x86_64-apple-darwin/share/llvm/cmake/LLVMConfig.cmake:55 (include):

  include could not find load file:

    /Users/sebastiandressler/llvm-3.6-testing/final/Phase3/Release/llvmCore-3.6.0-final.install/share/llvm/cmake/LLVM-Config.cmake

Call Stack (most recent call first):

  CMakeLists.txt:54 (find_package)

CMake Error at src/CMakeLists.txt:46 (llvm_map_components_to_libnames):

  Unknown CMake command "llvm_map_components_to_libnames".

-- Configuring incomplete, errors occurred!

See also "/usr/local/CastXML/CMakeFiles/CMakeOutput.log".

See also "/usr/local/CastXML/CMakeFiles/CMakeError.log”.

The above clang is directly from the link below

http://llvm.org/releases/download.html#3.6.0

Thanks again for your help, I realize that this is a long and painful thread.
Lewis

Dr. Lewis John McGibbney Ph.D., B.Sc., MAGU
Engineering Applications Software Engineer Level 2
Computer Science for Data Intensive Systems Group 398M
Jet Propulsion Laboratory
California Institute of Technology
4800 Oak Grove Drive
Pasadena, California 91109-8099
Mail Stop : 158-256C
Tel:  (+1) (818)-393-7402
Cell: (+1) (626)-487-3476
Fax:  (+1) (818)-393-1190
Email: lewis.j.mcgibbney at jpl.nasa.gov

           [cid:248C22AF-56E3-423D-81C0-EB1ABEB99886]

 Dare Mighty Things

From: Matt McCormick <matt.mccormick at kitware.com<mailto:matt.mccormick at kitware.com>>
Date: Wednesday, May 20, 2015 at 1:54 PM
To: Lewis John McGibbney <lewis.j.mcgibbney at jpl.nasa.gov<mailto:lewis.j.mcgibbney at jpl.nasa.gov>>
Cc: "castxml at public.kitware.com<mailto:castxml at public.kitware.com>" <castxml at public.kitware.com<mailto:castxml at public.kitware.com>>
Subject: Re: [CastXML] Building CastXML from Source

Hi Lewis,

Build instructions are in the README:

  https://github.com/CastXML/CastXML/blob/master/README.rst

Please help us clarify them if they are insufficient. One possible hangup: when building Clang/LLVM, it is necessary to install it on the system or an install prefix directory.  Point the CastXML build to this location with LLVM_DIR.

Hope this helps,
Matt



On Wed, May 20, 2015 at 4:07 PM, Mcgibbney, Lewis J (398M) <Lewis.J.Mcgibbney at jpl.nasa.gov<mailto:Lewis.J.Mcgibbney at jpl.nasa.gov>> wrote:
Hi Folks,
I am making best efforts to use CastXML with xdress [0] via recent advice [1] and a pull request aimed at getting xdress working with castxml [2].
The problem that I am having is that I cannot even build CastXML from the github repos.
Can someone please help me out with clear build instructions?
Thank you
Lewis

[0] https://github.com/xdress/xdress
[1] https://groups.google.com/forum/#!topic/xdress/1Cb5qfZEZoA
[2] https://github.com/xdress/xdress/pull/275

Dr. Lewis John McGibbney Ph.D., B.Sc., MAGU
Engineering Applications Software Engineer Level 2
Computer Science for Data Intensive Systems Group 398M
Jet Propulsion Laboratory
California Institute of Technology
4800 Oak Grove Drive
Pasadena, California 91109-8099
Mail Stop : 158-256C
Tel:  (+1) (818)-393-7402<tel:%28%2B1%29%20%28818%29-393-7402>
Cell: (+1) (626)-487-3476<tel:%28%2B1%29%20%28626%29-487-3476>
Fax:  (+1) (818)-393-1190<tel:%28%2B1%29%20%28818%29-393-1190>
Email: lewis.j.mcgibbney at jpl.nasa.gov<mailto:lewis.j.mcgibbney at jpl.nasa.gov>

           [cid:56DE6DAA-BDCD-46AD-904B-ACC9615C0F68]

 Dare Mighty Things

_______________________________________________
CastXML mailing list
CastXML at public.kitware.com<mailto: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/20150520/070e871b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2CB3CA5F-DC06-45EF-ADDA-C49A41A8C401.png
Type: image/png
Size: 3425 bytes
Desc: 2CB3CA5F-DC06-45EF-ADDA-C49A41A8C401.png
URL: <http://public.kitware.com/pipermail/castxml/attachments/20150520/070e871b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2CB3CA5F-DC06-45EF-ADDA-C49A41A8C401[13].png
Type: image/png
Size: 3425 bytes
Desc: 2CB3CA5F-DC06-45EF-ADDA-C49A41A8C401[13].png
URL: <http://public.kitware.com/pipermail/castxml/attachments/20150520/070e871b/attachment-0003.png>


More information about the CastXML mailing list