oleg_krv Posted August 22, 2016 Share Posted August 22, 2016 There is a problem, can someone tell me the solution. There is a library of video surveillance systems manufacturer Assembly for Windows Linux x86 64 and Android. Is it possible to start the assembly of its application in the ARM Linux using the library for Android if it is assembled with the Bionic. I could not get: > 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 Warning corrected by creating links and installation of the library, but I failed to "fstat" overcome. This problem occurs on the Internet link, but the solution I could not find. Who sent out requests to rebuild this library for ARM Linux, but the chances of it .... PS. I understand that this is a problem different glibc, but suddenly someone knows the solution Android SDK.zip Link to comment Share on other sites More sharing options...
jernej Posted August 23, 2016 Share Posted August 23, 2016 There is always libhybris project which lets you use Android (bionic) libraries on ordinary (glibc) Linux. The catch is that if you intend to use some non standard library, you have to extend libhybris source with wrapper for it (or at least I understand it that way). Oh, did I mention that you also need other Android libraries, on which your lib depends (and dependencies of those libs and so on)? But at least they can be extracted from some Android image. I didn't use it so good luck! 1 Link to comment Share on other sites More sharing options...
oleg_krv Posted August 27, 2016 Author Share Posted August 27, 2016 Thank you. I'll try to compile libhybris and understand what they are doing there and how to get it to work. While a more or less clear notes and hints found http://www.cnx-software.com/2013/04/21/how-to-use-libhybris-and-android-gpu-libraries-with-mer-linux-on-the-cubieboard/ and as an example of adding no system library: http://linux-sunxi.org/CedarX/libve Link to comment Share on other sites More sharing options...
oleg_krv Posted August 29, 2016 Author Share Posted August 29, 2016 There is always libhybris project which lets you use Android (bionic) libraries on ordinary (glibc) Linux. The catch is that if you intend to use some non standard library, you have to extend libhybris source with wrapper for it (or at least I understand it that way). Oh, did I mention that you also need other Android libraries, on which your lib depends (and dependencies of those libs and so on)? But at least they can be extracted from some Android image. I didn't use it so good luck! Excellent - assembled libxmnetsdk and libhybris - everything is working !!!! Thanks for your reply! Link to comment Share on other sites More sharing options...
jernej Posted August 29, 2016 Share Posted August 29, 2016 Just curious, did you need to rebuild any Android library or just extract everything from some Android image? For which SoC? Link to comment Share on other sites More sharing options...
oleg_krv Posted August 31, 2016 Author Share Posted August 31, 2016 Just curious, did you need to rebuild any Android library or just extract everything from some Android image? For which SoC? 1) I compiled from source library for BananaPi Android 2) I found on the Internet is already the compiled charges according to Article Cubieboard (Android CyanogenMod) Both assemblies are working perfectly. libhybris - compiled with header files from Android Banana Pi SoC - A20, but at me to the hardware part of anything not tied. Link to comment Share on other sites More sharing options...
Recommended Posts