<div dir="ltr">The same problem if i recompile is in Debug mode and libclang.so is about 48Mb.<div><br></div><div>Any thoughts?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/14 Anton Smirnov <span dir="ltr"><<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey.<div><br></div><div>I've compiled llvm/clang with arm-linux-gnueabi toolchain:<br><br>BUILD=/home/asmirnov/llvm_33_arm_build_gnueabi_cmake<br>
rm -rf $BUILD<br>mkdir $BUILD<br>cd $BUILD<br><br>cmake ../llvm_33 -DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=arm-linux-gnueabi-g++ -DCMAKE_CROSSCOMPILING=True -DLLVM_TABLEGEN=/home/asmirnov/llvm_33_build/Release+Asserts/bin/llvm-tblgen -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabi -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_BUILD_TYPE=Release<br>
</div><div><br></div><div>When i try to load library libclang.so.3.3 on android (linux), i'm getting an error:</div><div><br>
</div><div>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)<br>
<br></div><div>The sources are extracted for clang release 3.3 (llvm, compiler-rt and clang). The build type is "Release". So what should i do in order to link it statically (or walk-around lib absence)?<br><br>
</div><div>PS. "libclang.so.3.3" file size is about 14mb.<br></div><div><br></div><div>Regards, Anton.<br>
</div><div><br></div><div><br></div></div>
</blockquote></div><br></div>