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
0 answers

Why dlopen() always return me image not found?

Under ios, no matter what I do, when I call dlopen() it always returns me "image not found". For example, I deploy WebRTC library in the path .\Frameworks\WebRTC.framework and when I call dlopen('./Frameworks/WebRTC.framework/WebRTC') it's failed…
zeus
  • 12,173
  • 9
  • 63
  • 184
1
vote
1 answer

unexplainable malloc call in simple test program : malloc project

In a purpose to achieve a school project, I must recode malloc and free functions using only mmap and munmap. I must also compile those functions in a dynamic library (.so file) and use this during the run time. I am working under mac OS Sierra…
1
vote
1 answer

LD_PRELOAD multiple interdependent libraries

I Have Libraries with a tree of dependencies, i.e. some of the dependencies have other dependencies I want to Preload. How can I do this? LD_PRELOAD \ /opt/yocto/2.5.1/sysroots/core2-64-poky-linux/usr/lib/libicudata.so.60…
danba
  • 842
  • 11
  • 32
1
vote
1 answer

How to get library path from SONAME?

I'm developing a ldd-python script. As far as I know, ELF binary itself has information only about library's SONAME. How can I get library's full path by this SONAME? I want to print like this original ldd result: $ ldd test libc.so.6…
Jiwon
  • 1,074
  • 1
  • 11
  • 27
1
vote
1 answer

hint the dynamic library dependencies in the archive file

In my c/c++ mixed project, I'm building the source files of individual folders, archiving them with ar into their own .a files and then linking them all together at the final stage. So far so good. My question is, is it possible to hint any dynamic…
abdus_salam
  • 738
  • 2
  • 7
  • 19
1
vote
0 answers

How to get a dynamic library to access network permissions in framework layer?

We developed an algorithm for sound processing, which was packaged into an Android dynamic library using Android ndk. Our customers will integrate it into the android framework layer. We used curl to make a network request to verify the sdk license.…
1
vote
1 answer

Spatialite extension not found when running go binary in docker container

I am setting up a Spatialite database (SQLite + Spatialite extension) and an associated Go program running in a docker container that queries the database and returns data. Go-spatialite, in my understanding will dynamically load the spatialite…
mich
  • 347
  • 3
  • 10
1
vote
0 answers

Using rpath from a dynamic library

Rpath are traditionally defined in the application executable. Is it possible though to define additional additional rpath for a specific dynamic library, so that all the other dynamic libraries that this dynamic library needs will be searched…
Robin Lobel
  • 630
  • 1
  • 5
  • 16
1
vote
0 answers

Execute PE from memory

I tried to write LoadLibrary function in C. The function gets a path to a DLL file which, normally, pops up message box when it loads (I tried to run that DLL file using the original LoadLibrary function and it works). Basically, the DLL content is…
Nick
  • 499
  • 4
  • 11
  • 25
1
vote
0 answers

Does Android ship with fftw

I'm working on a cross-mobile project that requires performant real-time FFT. iOS is easy thanks to the vDSP FFT. Android I cannot see a clear path. Best option I can see: dynamic-link to FFTW. But do I need to supply an FFTW dylib with the project?…
P i
  • 29,020
  • 36
  • 159
  • 267
1
vote
0 answers

How to build dynamic-library in qt static build

I try to build my dynamic library project in linux. I build my qt library in static. But if i use it to build my proj, qt creator builds only libname.a file. However if i use original qt library qt creator builds libname.so file. Wats is the…
Dani Pa
  • 23
  • 1
  • 4
1
vote
0 answers

Swizzle Tap Gesture Action in iOS Cocoa Touch Framework

I am developing an Cocoa Touch Framework or a dynamic Library which would capture user actions using Swift. E.g. When a user taps on a label, my framework should know about it. For achieving this behaviour, I am using method swizzling. I am…
schinj
  • 794
  • 4
  • 19
1
vote
1 answer

Does my executable need relinking when a library used by a library that I use changes?

Imagine we have an executable exe that depends on shared library foo, which in turn depends on shared library bar: exe needs libfoo.so and foo needs libbar.so. Then, bar is changed in a source-compatible manner (i.e. API unchanged), but not in a…
1
vote
1 answer

Check if a symbol is available, to prevent dlopen lazy binding failure

I load a .so library using dlopen(). The library calls myfunc(). The function is available in version 1.0 of the loader. So calling myfunc() works. In version 0.9 however, there is no myfunc(), and libdl shows error about lazy binding failure. Can…
One Other
  • 43
  • 5
1
vote
0 answers

Why does gcc prefer dynamic library to static one during linking process?

I compile and link a simple program: # gcc a.c -pthread # ldd a.out linux-vdso.so.1 (0x00007ffc4ddf2000) libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fbb75e12000) libc.so.6 => /usr/lib/libc.so.6 (0x00007fbb75a6e000) …
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164