Closed twoplan closed 4 years ago
-static
.-Wl,-rpath=/data/data/com.termux/files/usr/lib,--enable-new-dtags
Problem is that the "chess gui" is another app, so -Wl,-rpath=/data/data/com.termux/files/usr/lib,--enable-new-dtags
won' help here unfortunately
Thanks, does it mean Termux can't be used to compile (c|c++|d|go|rust) chess engines for an Android gui app?
It means that build tools are targeted at Termux environment first.
When using binary compiled in Termux in another application, make sure that all its dependencies are copied too.
I try to compile a chess engine for usage inside an Android chess gui.
The chess engine compiles fine with clang 9. And it works well at the shell inside Termux. Unfortunately the Android chess gui can't load the engine. Log shows:
So I tried to compile the engine with option -static. Get now this error from the linker:
Pretty sure that I'm (new to Termux and Android) missing something.
$ termux-info
$ clang++ -v