Closed Ludea closed 3 years ago
Nothing related to x11 packages or webkit2gtk. Something either injected system libraries into linking path.
Make sure you don't have LD_LIBRARY_PATH set and your build scripts do not involve libs from /system/lib(64).
With unset LD_LIBRARY_PATH
still have issue
I have to link only $TERMUX_PREFIX lib ?
If I link /system/lib64/liblzma.so
I get library "libGL.so" not found
whereas I link /system/lib64/libOpenSLES.so
Make sure you don't have LD_LIBRARY_PATH set and your build scripts do not involve libs from /system/lib(64).
This might be related to termux/termux-packages#10159
@leapofazzam123 Nope, that's due to Android's private variant of libOpenSLES.so.
For successful linking, a variant from NDK sysroot should be used instead.
liblzma.so
inside /system/lib64 is a p7zip library whereas liblzma.so
from $PREFIX/lib is a part of XZ project. They are entirely different and cannot be used as drop-in replacement for each other.
Problem description
When building a rust project with webkit2gtk, I get
note: /data/data/com.termux/files/usr/bin/ld: /system/lib64/libunwindstack.so: undefined reference to
Crc64GenerateTable'` and with lzma function too.Steps to reproduce
clone webkit and build it on device.
Expected behavior
Sucessfull build
System information