Questions tagged [dynamic-library]

Compiled binaries capable to be loaded in the process address space in runtime.

Dynamic Libraries are compiled binaries capable of being loaded/unloaded into/from the process address space at runtime.

In the Unix world, they are called shared libraies; in the Windows world, they are known as DLLs (dynamically-loadable libraries).

They can be loaded simultaneously into multiple processes, saving RAM and disk space.

Their file format is similar to, or even the same as, that of binary executables.

484 questions
1
vote
1 answer

makefile gcc custom dynamic lib linking issue with .so file

Guys I'm having a very hard time trying to make a custom .so file be correctly linked with the a another code file. Where is the Makefile of the who creates the .so file: #the compiler CC = gcc #the standart ompilation flags of the project CFLAGS =…
1
vote
0 answers

If no additional directory in the install_name of a dynamic library, then which path does dyld search?

Mac, for a compiled project (using QT 5.5.0), I directly run the executable file, the error: libraw.10.dylib not loaded; OK, I know the reason. One solution is to use install_name_tool to change the install name of libraw.10.dylib and put it in…
user1914692
  • 3,033
  • 5
  • 36
  • 61
1
vote
1 answer

Is it possible to share an installation of an iOS framework you have created between multiple apps?

Since Xcode 6/iOS 8, it has been possible to create a framework for use with iOS apps. There is a template for this called 'Cocoa Touch Framework' under Framework & Library when creating a new project in Xcode. I haven't found much…
1
vote
0 answers

dlopen() returns null when dynamic library is codesigned using distribution certification on iOS

Hi I am working on iOS app using dynamic library. Here is the problem I am encounting recently. I apply dynamic library which consists of nativce fuctions. It is ok when I use dlopen() to load dynamic library with codesigning developer…
1
vote
2 answers

LD_LIBRARY_PATH failing while trying to run Qt app

I want to run a Qt 5 based application usind dynamic libraries on Linux. In summary, a script will copy the executable and other relevant files, including all required .so inside a lib folder, to the desired destination and a script calling gksudo…
Momergil
  • 2,213
  • 5
  • 29
  • 59
1
vote
1 answer

@executable_path not working

I have installed SDL2. I can link my program with clang++ -lSDL2 -lv8 main.o test.o -o nano8 However, for distributing reasons, I'd like to give SDL2 away with the binary, and hence i've copied libSDL2-2.0.0.dylib under…
pistacchio
  • 56,889
  • 107
  • 278
  • 420
1
vote
1 answer

Cmake file linking dynamic library to executable

I am trying to make a cmake file for my project just to learn how to make a cmake file. My directory Structure. I am getting an error : square_and_add |- src | |- |- libsrc | |- include | |- | |- src | |-…
1
vote
1 answer

Error with JNI app

I have compiled .so library for app and java app app for calling methods from this library. Library compiled for ARMv7 and app work fine on real device (Nexus 4). When i try to lauch this app on emulator, I get next…
1
vote
0 answers

XCode undefined symbols error with c++ dynamic library

I am trying to create C++ dynamic library in XCode 6, very simple one just as a test. I've built it and trid to integrate it to both c++ other app and Obj-C app, but I always get same error ! I've searched everywhere ! I'm loosing my mind ;p See…
Livevlad
  • 33
  • 6
1
vote
0 answers

How to prevent CMake from putting the release version in the .so filename?

I build a dynamic library (.so file) with CMake. With the pretty standard settings SET_TARGET_PROPERTIES(mylib PROPERTIES SOVERSION "1" VERSION "0.3.1") CMake creates the following files in /usr/lib: libmylib.so -> libmylib.so.1 libmylib.so.1 ->…
Torsten Bronger
  • 9,899
  • 7
  • 34
  • 41
1
vote
1 answer

Swift: Dynamic Library And AFNetworking

I have a problem integrating AFNetworking in my Swift Dynamic Library: Here is what I have done: Create Xcode Project: ( Cocoa Touch Framework ) Initialize Pod: ( pod init ) via Terminal Modify Podfile: Here is the content of the podfile, and…
Allan Macatingrao
  • 2,071
  • 1
  • 20
  • 28
1
vote
0 answers

programmatically Copy Dynamic lib(.dylib) in Usr/local/lib path

I need to copy the C++(.dylib) dynamic lib in usr/local/lib path via my framework project. In normal Application project I set the environment variable DYLD_LIBRARY_PATH working fine. but framework project not working. What am I missing?
user4497581
1
vote
1 answer

Get list of libraries used in a library

I am trying to compile a library "A" on my machine, & i have "C" & "D" optional dependencies of A installed at standard path as well as local/custom path , the libraries at custom path( -O3 ) are more optimized as compared to the libraries at…
puneet336
  • 433
  • 5
  • 20
1
vote
1 answer

Unable to open symbol file. Error (20): Not a directory

I am using ffmpeg library on android to stream live video feed. I have complied ffmpeg for android following roman10 instructions. The application is working correctly - it connects to the server, download the feed, transcode it, rescale it and…
grzebyk
  • 1,024
  • 1
  • 15
  • 26
1
vote
3 answers

Calling C++ Application Code from C library?

Folks, Assuming I have a c++ application / library running which implements say /* Alloc API */ void* my_alloc(int size) { return malloc(sizeof(size)); } This is not under "extern c". I have a C dynamic library from which I need to call…
Madhava
  • 121
  • 4