shared-libraries

File version information

杀马特。学长 韩版系。学妹 提交于 2019-12-10 10:48:18
问题 How can I add version information to a file? The files will typically be executables, .so and .a files. Note: I'm using C++, dpkg-build and Ubuntu 8.10 if any of those have support for this. 回答1: For shared objects pass -Wl,soname,<soname> to gcc, or -soname <soname> to ld. Executables and static libraries do not have version information per se, but you can add it to the filename if you like. 回答2: Linux executables do not have version information like Windows have...the only way I can think

Avoiding standard library conflicts in unix

我的未来我决定 提交于 2019-12-10 10:47:53
问题 I have a shared library (so) object which exposes a C API ( extern "C" ). It doesn't use C++ in the API nor throws exceptions. Internally it does use C++, especially std::map and other containers, plus some trivial templates. My goal is to be able to provide this library to any program in unix (I compile multiple versions for each target linux distro) without having standard library symbol issues with the loader program (i.e. a program which loads my library with dlopen should function

How do I import shared object libraries at runtime in Android?

强颜欢笑 提交于 2019-12-10 10:43:06
问题 I am developing an open-source emulator project, and it has multiple, customizable native plug-ins. These plug-ins are built as native shared object libraries (.so files), and have various interfaces between native and Java through JNI. Rather than distribute the APK with every single plug-in ever created, and in order to allow folks to build their own custom plug-ins, I need a method of importing these .so files any time after the app has been installed. I've found that I can copy files to

Loading a shared native library in Tomcat on Ubuntu

試著忘記壹切 提交于 2019-12-10 10:39:03
问题 How do I load a shared library in Tomcat6, on Ubuntu? I have created a library "awragrids" with name "libawragrids.so" and placed it in /var/lib/tomcat6/shared I have set the following environment variables in the terminal from which I call start tomcat: export PATH=$PATH:/var/lib/tomcat6/shared export JAVA_OPTS="-Djava.library.path=/var/lib/tomcat6/shared" export LD_LIBRARY_PATH=/var/lib/tomcat6/shared I then try and load the library with private static final String GRIDTOOL_LIBRARY_NAME =

.so with numerals after that, how to match them in find_library in cmake ? Error in linking shared objects which are found as sub-dependencies

喜欢而已 提交于 2019-12-10 10:36:11
问题 Given ls -lrt /usr/lib/libvpx* results lrwxrwxrwx 1 root root 15 Feb 9 2012 /usr/lib/libvpx.so.1.0 ->libvpx.so.1.0.0 lrwxrwxrwx 1 root root 15 Feb 9 2012 /usr/lib/libvpx.so.1 -> libvpx.so.1.0.0 -rw-r--r-- 1 root root 646120 Feb 9 2012 /usr/lib/libvpx.so.1.0.0 ls -lrt /usr/lib/libschroedinger* results lrwxrwxrwx 1 root root 29 Feb 8 2012 /usr/lib/libschroedinger-1.0.so.0 ->libschroedinger-1.0.so.0.11.0 -rw-r--r-- 1 root root 774044 Feb 8 2012 /usr/lib/libschroedinger-1.0.so.0.11.0 ls -lrt /usr

Couldn't load game: findLibrary returned null: with cocos2d-x, no success despite many attempts?

陌路散爱 提交于 2019-12-10 10:24:00
问题 I would like to try a simple project using Eclipse Mobile For Developers, the NDK, Android SDK, and Cocos2d-x. I have correctly set the paths in: cocos2d-x/create-android-project.sh : NDK_ROOT_LOCAL="/Users/Empon/android-ndk-r8e" ANDROID_SDK_ROOT_LOCAL="/Users/Empon/android" and in the settings in Eclipse ("NDK path" from the Properties). I followed the topics in stackoverflow but I can't make my project work. One thing that seems strange compared to one topic: I don't have anything below

Share Fortran 90 module data with F2PY between many extension modules

这一生的挚爱 提交于 2019-12-10 10:16:45
问题 I want to share data which is located in a Fortran 90 module between many self compiled F2PY extension modules. The documentation of F2PY says that this is not possible due to to how Python imports shared libraries in general. F2PY generates wrappers to common blocks defined in a routine signature block. Common blocks are visible by all Fortran codes linked with the current extension module, but not to other extension modules (this restriction is due to how Python imports shared libraries). [

Xcode4 workspace sharing projects

我是研究僧i 提交于 2019-12-10 10:16:33
问题 I am trying to use the new Xcode4 workspace feature to migrate some Xcode3 projects that has dependencies between them. I have a project which creates a static library and then an application project which depends on the static library. So, as the guide mentioned, I created a new workspace and dragged both the projects into the workspace. However, when I build my application, it's unable to find the header files from my static library. I get "No such file or directory" error. My intention is

Unsdefined reference to library class members errors from caller program

核能气质少年 提交于 2019-12-10 10:13:31
问题 Additional Questions added below, 4/11/2011 I am developing a cross-platform set of shared libraries DLLs/Sos and tester programs in C++ though I have to be able to support C. The libraries will ship as object code only, but the tester program(s) will ship with source so our customers can have example code. For this reason I am designing the libraries to be loaded at runtime, i.e. dynamic linking using dlopen()/LoadLibraryA(). I am using g++ 4.4.3-4 on Umbutu 10.04 and VC++ 2008 on Vista/64

How can I make my application to link libraries independent of its location?

狂风中的少年 提交于 2019-12-10 09:33:05
问题 I have built a shared library (i.e libabc.so ) and an executable (i.e myapp ) which uses my shared library. I have placed both the shared library and my executable in my filesystem but when I run my executable it gives me the following error error while loading shared libraries: <target_lib_path>/<mylib>.so cannot open shared object file: No such file or directory. Now my dev environment is I have a different target filesystem which is placed at ~/targetfs after building my shared library I