<div dir="ltr"><div>Hello,<br><br></div>I am trying to build CastXML on a Ubuntu machine. There are couple problems I have faced but wasn't able to solve. From castxml's github page, <br><br><p>To build CastXML from source, first obtain the prerequisites:</p>
<ul><li>A C++ compiler supporting the <code>c++11</code> standard language level.</li><li><a href="http://www.cmake.org/">CMake</a> cross-platform build system generator.</li><li><a href="http://clang.llvm.org/">LLVM/Clang</a> compiler SDK install tree built using the C++ compiler.
This version of CastXML has been tested with LLVM/Clang<ul><li>SVN revision <code>245954</code></li><li>Release <code>3.7</code></li><li>Release <code>3.6</code></li></ul>
</li><li>Optionally, the <a href="http://sphinx-doc.org/">Sphinx</a> documentation generator to build documentation.</li></ul>
<p>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.
CMake options include:</p>
<dl><dt><code>LLVM_DIR</code></dt><dd>Location of the LLVM/Clang SDK.
Set to <code><prefix>/share/llvm/cmake</code>, where <code><prefix></code> is the top
of the LLVM/Clang SDK install tree.</dd><dt><code>SPHINX_EXECUTABLE</code></dt><dd>Location of the <code>sphinx-build</code> executable.
Required only if building documentation.</dd><dt><code>SPHINX_HTML</code></dt><dd>Build documentation in <code>html</code> format.</dd><dt><code>SPHINX_MAN</code></dt><dd>Build documentation in <code>man</code> format.</dd></dl><p><br></p><p>I have g++ and clang++ installed in my computer. So my questions are,</p><p>1-) Description says to run cmake on CastXML "source tree". Does this mean I should run cmake with the CMakeLists.txt or there are additional things that I need to include? What is going to be the input for cmake?</p><p>2-)My other question is about LLVM_DIR. It says location of LLVM/Clang SDK. This is not the clang compiler itself right? This is I suppose Software Development Kit used by clang compiler?</p><p>3-) What does it mean <prefix> to be top of LLVM/Clang install tree?</p><p> <code><prefix>/share/llvm/cmake what does this has to do with LLVM/Clang SDK? <br></code></p><p>When I run cmake with CMakeLists.txt, I get the following error from the terminal</p><p>CMake Error at /usr/share/llvm-3.6/cmake/LLVMConfig.cmake:52 (include):<br>  include could not find load file:<br><br>    /usr/lib/llvm-3.6/share/llvm/cmake/LLVMExports.cmake<br>Call Stack (most recent call first):<br>  CMakeLists.txt:58 (find_package)<br><br><br>CMake Error at /usr/share/llvm-3.6/cmake/LLVMConfig.cmake:55 (include):<br>  include could not find load file:<br><br>    /usr/lib/llvm-3.6/share/llvm/cmake/LLVM-Config.cmake<br>Call Stack (most recent call first):<br>  CMakeLists.txt:58 (find_package)<br><br><br>CMake Error at src/CMakeLists.txt:46 (llvm_map_components_to_libnames):<br>  Unknown CMake command "llvm_map_components_to_libnames".<br><br><br>-- Configuring incomplete, errors occurred!<br></p><p>Do you know what causes this error?</p><p>Regards,<br></p><p><br></p></div>