<div dir="ltr"><br><br><div class="gmail_quote">On Fri, May 11, 2012 at 9:32 AM, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What are the libclang runtime dependencies?<br>
<br>
1. Does it depend on any LLVM library or is all included into libclang<br>
<br></blockquote><div>When I build LLVM (and clang as tool inside the LLVM tree) for Linux / Mac / Windows using MinGW + MSYS</div><div>I am using this configure line:</div><div><br></div><div>./configure --disable-assertions --disable-debug --enable-optimized --enable-optimized --disable-threads --disable-shared</div>
<div><br></div><div>The last part: --disable-shared is the key switch, without it your libclang will depends on libLLVM.so (or something like that)</div><div>To test the build, simply run 'ldd libclang.so'</div><div>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2. What about header files and similar. Is it enough to have the system<br>
compiler installed when running a tool built with libclang<br>
<br></blockquote><div>For me, I only provide (lib)clang.dylib / dll / so ( choose your suffix / prefix) and its enough</div><div>code completion is working without a problem (a bit slow on Windows on a real world application and not 'Hello World') - but it is working properly</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. Anything else I've forgotten about<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>If you plan on providing the binary on Linux, I suggest that you use an older g++ version to build libclang with (I am using g++4.4.1, although I could use 4.7) this will "lower" the glibc requirements and you will be able</div>
<div>to use the same binary on different distros</div><div> </div><div>HTH,</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
/Jacob Carlborg<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Eran Ifrah<br>Author of the cross platform, open source C++ IDE: <a href="http://www.codelite.org" target="_blank">http://www.codelite.org</a><br>
YTubePlayer <a href="http://www.ytubeplayer.com" target="_blank">http://www.ytubeplayer.com</a></div><br>
</div>