<div dir="ltr"><div><div><div>I have found the package and downloaded it. When I tried to install I am getting the following error,<br><br>Preparing to unpack castxml_0.1+git20150807-1_amd64.deb ...<br>Unpacking castxml (0.1+git20150807-1) over (0.1+git20150807-1) ...<br>dpkg: dependency problems prevent configuration of castxml:<br> castxml depends on libstdc++6 (>= 5.2); however:<br>  Version of libstdc++6:amd64 on system is 4.8.4-2ubuntu1~14.04.<br><br>dpkg: error processing package castxml (--install):<br> dependency problems - leaving unconfigured<br>Processing triggers for man-db (2.6.7.1-1ubuntu1) ...<br>Errors were encountered while processing:<br> castxml<br><br></div>Someone says this is because castxml is built in a distro that is higher than 14.04? <br></div>Do you know any way to fix this problem?<br><br></div>Thank you,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 26, 2015 at 1:34 AM, Steve Robbins <span dir="ltr"><<a href="mailto:steve@sumost.ca" target="_blank">steve@sumost.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Castxml has been packaged for debian/Ubuntu already.  It's pretty recent so apt-get may not work for your distribution.   But you can look at the source package to see in detail how to build it. <br>
<br>
  <br><br><div class="gmail_quote"><div><div class="h5">On November 26, 2015 12:24:40 AM CST, "Uğur Büyükdurak" <<a href="mailto:ugurbd@gmail.com" target="_blank">ugurbd@gmail.com</a>> wrote:</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">
<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/" target="_blank">CMake</a> cross-platform build system generator.</li><li><a href="http://clang.llvm.org/" target="_blank">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/" target="_blank">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>
<p style="margin-top:2.5em;margin-bottom:1em;border-bottom:1px solid #000"></p></div></div><pre><hr><br>CastXML mailing list<br><a href="mailto:CastXML@public.kitware.com" target="_blank">CastXML@public.kitware.com</a><br><a href="http://public.kitware.com/mailman/listinfo/castxml" target="_blank">http://public.kitware.com/mailman/listinfo/castxml</a><span class="HOEnZb"><font color="#888888"><br></font></span></pre></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</font></span></div></blockquote></div><br></div>