O
O
Oleg Krivorot2016-08-22 15:06:09
linux
Oleg Krivorot, 2016-08-22 15:06:09

Is it possible to use libraries compiled for Android in ARM Linux (armbian)?

Greetings.
There is such a problem: there are SDK libraries from the manufacturer of video surveillance equipment assembled under Windows Linux x86 and 64, and found under Android.
When building a test application under ARM Linux, I got an error:

LC_ALL=c g++ test.cpp -L. -lxmnetsdk -Wl,-rpath,. -o testsdk
/usr/bin/ld: warning: liblog.so, needed by ./libxmnetsdk.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libstdc++.so, needed by ./libxmnetsdk.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: testsdk: hidden symbol 'fstat' in /usr/lib/arm-linux-gnueabihf/libc_nonshared.a(fstat.oS) is referenced by DSO
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

warnings are solved by installing liblog and creating a symbolic link for libstdc++.so and "hidden symbol `fstat'" is an architectural difference between libc Linux and libc Bionic, but maybe someone knows the solution.
I would be grateful for any push in the right direction, because rebuilding the library for the desired architecture and base ... is unrealistic to achieve.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Krivorot, 2016-08-29
@oleg_krv

I will answer myself (suddenly it will come in handy for someone):
Problem solution: Build the libhybris libraries with a wrapper for libxmnetsdk and Android system files - and everything is assembled and works great.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question