[cfe-dev] Static Linking and loading "libclang.so"

Renato Golin renato.golin at linaro.org
Mon Oct 14 06:38:49 PDT 2013


On 14 October 2013 08:42, Anton Smirnov <dev at antonsmirnov.name> wrote:

> Caused by: java.lang.UnsatisfiedLinkError: Cannot load library:
> link_image[1891]:   185 could not load needed library 'libdl.so.2' for
> 'libclang.so.3.3' (load_library[1093]: Library 'libdl.so.2' not found)
>

Hi Anton,

libdl is required (as others) and probably not installed in your target
system. You should be able to install it via yum/apt-get etc.

Installing Clang via packages would probably bring that dependency
automatically, but you compiled it from scratch on a separate machine, so
dependencies won't be met automatically.

And, yes, Clang/LLVM libraries are huge, especially ones with debug symbols
in it.

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131014/fe251115/attachment.html>


More information about the cfe-dev mailing list