shared-libraries

How to copy numbered/versioned .so file during apk install

99封情书 提交于 2020-01-05 08:48:09
问题 I am using Android NDK to compile a library for Android. I successfully built the library and obtained the .so file. Wrote JNI wrappers and able to create an apk without any compilation errors. My library depends on some other .so files. I manage to include them within the apk using the method described here. But the problem is, my library also depends on a numbered/versioned .so file, i.e. libxxx.so.9 and this file is not copied during apk installation. In other words, in my apk file, under

How to copy numbered/versioned .so file during apk install

喜欢而已 提交于 2020-01-05 08:48:06
问题 I am using Android NDK to compile a library for Android. I successfully built the library and obtained the .so file. Wrote JNI wrappers and able to create an apk without any compilation errors. My library depends on some other .so files. I manage to include them within the apk using the method described here. But the problem is, my library also depends on a numbered/versioned .so file, i.e. libxxx.so.9 and this file is not copied during apk installation. In other words, in my apk file, under

How to see the object file contents of a .so file

扶醉桌前 提交于 2020-01-04 13:52:20
问题 how to see what .o files constitute .so file? Means how to notice what are the object files are used to build the .so file from the .so file (If I have only the .so file) 回答1: You can't know , given just a shared library, what object files were compiled into it. If you're lucky, you may be able to make a reasonable guess. A shared library is made, by the linker, from object files and possibly other shared libraries, but it does not contain the object files or shared libraries from which it

How to see the object file contents of a .so file

别说谁变了你拦得住时间么 提交于 2020-01-04 13:51:34
问题 how to see what .o files constitute .so file? Means how to notice what are the object files are used to build the .so file from the .so file (If I have only the .so file) 回答1: You can't know , given just a shared library, what object files were compiled into it. If you're lucky, you may be able to make a reasonable guess. A shared library is made, by the linker, from object files and possibly other shared libraries, but it does not contain the object files or shared libraries from which it

Why does linux multiarch use x86_64-linux-gnu instead of lib64?

谁说我不能喝 提交于 2020-01-04 07:26:39
问题 I recently came across multiarch in linux when deploying 32 & 64bit libraries. Out of curiosity, why was /lib64 abandoned in favour of e.g. /lib/x86_64-linux-gnu It seems overly complex but there must be a reason for that. 回答1: The long version can be found at http://wiki.debian.org/Multiarch , in particular http://wiki.debian.org/Multiarch/TheCaseForMultiarch . The short version is that using triplets is a more general solution that allows things like multiple ABI's (such as x86 and x32, as

Linking a DLL using xerces gives undefined symbols

左心房为你撑大大i 提交于 2020-01-04 06:20:10
问题 I'm creating a shared library/DLL using cygwin which makes use of Xerces. When I call the xercesc functions from the main application everything is fine, but when I try to put some code into the library, then I get undefined symbols for all the static stuff that xerxesc defines. For example: std::string fromXMLString(XMLCh *oXMLString) { std::string result; xercesc::DOMImplementation *impl = xercesc::DOMImplementationRegistry::getDOMImplementation(X("Core")); char *temp = xercesc::XMLString:

intellij idea does not see java 9 standard classes

筅森魡賤 提交于 2020-01-04 06:13:29
问题 I've got a maven project that uses Java 9 . It imported into IntelliJ IDEA 2017.2.3 Community . But for some reason it cannot find standard java classes like String or Float . For example When I try to Setup Project JDK it changes nothing What is the problem? module-info looks like this module com.lapots.breed.platform.cloud.javacloudsample { requires spring.boot; requires hibernate.jpa; requires spring.web; requires spring.boot.autoconfigure; } Project itself is there java-cloud-sample 来源:

intellij idea does not see java 9 standard classes

我与影子孤独终老i 提交于 2020-01-04 06:13:25
问题 I've got a maven project that uses Java 9 . It imported into IntelliJ IDEA 2017.2.3 Community . But for some reason it cannot find standard java classes like String or Float . For example When I try to Setup Project JDK it changes nothing What is the problem? module-info looks like this module com.lapots.breed.platform.cloud.javacloudsample { requires spring.boot; requires hibernate.jpa; requires spring.web; requires spring.boot.autoconfigure; } Project itself is there java-cloud-sample 来源:

Unable to get stat with dlsym

我们两清 提交于 2020-01-04 05:48:25
问题 I'm trying to write a hook for stat / lstat / fstat but I can't seem to get the original version from dlsym . I'm using the following code to obtain the original pointers. orig_stat = dlsym(RTLD_NEXT, "stat"); orig_lstat = dlsym(RTLD_NEXT, "lstat"); orig_fstat = dlsym(RTLD_NEXT, "fstat"); However, all three variables are set to null and calling dlerror also returns null . I'm creating the shared object with: clang fakestat.c -shared -fPIC -ldl -o fakestat.so and using my library by running a

Sharing custom code between two NodeJS microservices

泄露秘密 提交于 2020-01-04 05:31:09
问题 I am creating web app and micorservice for that app, and both need to have same DB model created with Sequelize. What is approach for handling this task with NodeJS? I am thinking about creating separate module of my DB models and save it in private git and add this private git to my web app and microservice as npm dependency. But I am wondering is it right approach or what is right way to separate shared private module between few microservices, in my case it is DB models? Should I go with