Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to fix Inconsistency detected by ld.so when using sprof to profile a .so library?

I'm trying to profile a shared library with sprof following this guide but when i run this cmd to generate the profile info: sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile I get the ...
WOL39's user avatar
  • 1
1 vote
1 answer
78 views

How to share a variable between a program and dlopen-ed library?

I'm working on making my program extensible and plugin-able, which iterates on a directory containing shared libraries to load them as plugins, using the dlopen function. I want to share a variable ...
sbh's user avatar
  • 75
0 votes
1 answer
27 views

symbol lookup error in shared library for existing function from static library

I have a static library "import" that provides a non-member function import_init(char*) as well as a class ImportObject with the member function Import(char*) that references import_init(...
bugblatterbeast's user avatar
0 votes
1 answer
23 views

Why doesn't my binary find libwx_gtk3u_html-3.2.so.0?

I'm trying to build FileZilla on Linux and have my binary run without needing the hack of having LD_LIBRARY_PATH set in the terminal. I've got the current directory structure: FileZilla3 ├── bin │   ├...
Jez's user avatar
  • 29.4k
0 votes
0 answers
15 views

Why did Android NDK linker remove prelink support

The prelink support was dropped in this commit https://android.googlesource.com/platform/bionic/+/4688279, but does not mention any motivations. Anyone know it was dropped since it seems to me a very ...
kula85's user avatar
  • 73
-1 votes
1 answer
34 views

Android Studio Cannot Find Imported Library (Using TarsosDSP java import error)

There is a package (TarsosDSP) that I wish to use in my app SongTracker. I am able to import 4 of 5 the libraries, but the 5th import statement has the error when trying to compile: import be.tarsos....
kiteandwindsurfer's user avatar
2 votes
2 answers
93 views

Multiple construction and destruction of static variable in multiple translation units

In C++11 code I have a static variable with a nontrivial constructor and destructor (which allocates memory): // in logger.h class logger { public: class log_data { // log_data ...
David Di Lorenzo's user avatar
0 votes
1 answer
17 views

How to run an SPSS 29 Syntax file from command mode?

I want to run an SPSS Syntax in command mode using IBM SPSS 29. First I 'm using this commandline: "path to SPSS executable" "path to syntax". this works, but it only opens the ...
paulusg62's user avatar
-1 votes
1 answer
19 views

libtool: dlopen() fails, but only when running as a subprocess

I have a strange issue with an application that uses libtool to load plugins at runtime. When run directly from the shell, it operates correctly. But when run as a child process of any kind (e.g. ...
calvinsykes's user avatar
-1 votes
0 answers
22 views

How to know which library is using .so files

So, I'm want to support my android app to 16KB page size update. After checking with apk analyzer, I got these .so files, how can I know which library that using these .so files? enter image ...
Zaki Mukhammad's user avatar
-1 votes
0 answers
46 views

How to import functions of an elf shared library by their order?

I want to write a C++ function that uses the dl_iterate_phdr API to iterate over the program headers of a shared library (.so) for which I have the handle in *data. The goal is to extract all the ...
panda tech's user avatar
0 votes
0 answers
66 views

Linker "undefined reference" to shared library functions [duplicate]

I'm having a problem with compiling a C project(proj) to use my shared library. The library provides logging and stats-gathering functionalities which I want to freely include in different projects. ...
Mike's user avatar
  • 9
0 votes
1 answer
22 views

cmake compile same target with different compiler options

I have a static library that is used simultaneously in an executable program and as a part of shared library. cmake_minimum_required(VERSION 3.26) project(mve) set(CMAKE_CXX_STANDARD 17) add_library(...
Dimitry's user avatar
  • 2,290
0 votes
0 answers
29 views

Do shared object files (*.so) need to be built with different bazel rules to run on Android vs Linux?

I'm working on a Unity 3D project that can be built to run on Linux or built to be run on Android. I've written a utility class in C++ that decodes video frames using ffmpeg and named it ...
Lucas B's user avatar
2 votes
1 answer
51 views

How to export a symbol to a shared library in nasm?

I have the following: BITS 64 __NR_getuid equ 102 global sys_getuid section .text sys_getuid: xor eax, eax mov al, __NR_getuid syscall ret This is compiled with: nasm -f elf64 -o ...
Joshua's user avatar
  • 42.5k
0 votes
0 answers
36 views

Calling C functions from Nasm X86_64 Assembly

I'm trying to dynamically link a shared library with my nasm program for a compiler I'm making This is my nasm program main.asm SYS_EXIT equ 60 extern print_thingy %macro exit 1 ; 1 -> takes one ...
Riptide's user avatar
  • 417
0 votes
0 answers
65 views

Is there a way to find out the path from getApplicationInfo().nativeLibraryDir of another app?

Android API provides getApplicationInfo().nativeLibraryDir to find out an app's /data/app lib path, as explained in previous questions How to get the path to the lib folder for an installed package or ...
Ruben P. Grady's user avatar
-1 votes
0 answers
45 views

Should source files be PRIVATE or PUBLIC in static and/or shared libraries with CMake? Assume visbility is set to hidden [duplicate]

I am using Windows (cl.exe version 19.37, Visual Studio 2022, CLion's Ninja builder), but I think gcc in Linux should be similar when symbols are hidden. Within my project, libraries are defined using ...
Breno's user avatar
  • 790
2 votes
0 answers
61 views

Why use a dynamic library when only a single application will use it

I understand generally how dynamic static libraries work. But i don't understand why a lot of libraries online will recommend building them to be dynamic, or why some programs like Unity ship with ...
KneeCapThief's user avatar
-1 votes
0 answers
7 views

how to make static lib .a compatible for arm64 iphonesimulator architecture using command line

I have more then 10 static libs and need to make all libs compatible to arm64 iphonesimulator arch. Please suggest step by step
Parth's user avatar
  • 626
1 vote
1 answer
83 views

Issues Publishing and Versioning Google Apps Script Library

I'm working with Google Apps Script and trying to set up a library that I can use across different projects. I've successfully published the library and can connect to it from other scripts, but I'm ...
A good person's user avatar
0 votes
0 answers
55 views

The executable only works when the DLLs are in the same folder [duplicate]

I have noticed that my executable only works when it's in the same folder as the DLL files it's dependent on. I know if I put the DLL file in system32 folder my executable will work without having the ...
MeMeo LoGisT's user avatar
1 vote
2 answers
103 views

How to create a "shared library" intended to be statically resident at a fixed memory location

I am looking for a proper way to create firmware components for a following architecture without inventing the wheel. Consider that the system has multiple firmware executables that can be either ...
Eugene Sh.'s user avatar
  • 18.1k
1 vote
0 answers
12 views

How to know which package/plugin is creating somelibrary.so file in flutter?

I generated a size analysis json file(apk-code-size-analysis_01.json). I want to know which package/plugin is associated with the particular so file. Searching by these keywords/parts as in project, ...
Akbar Pulatov's user avatar
0 votes
1 answer
31 views

Is lazy binding of shared library achieved using lazy allocation of virtual memory by OS?

In Linux ( unsure for Windows, any knowledge regarding is appreciated too ), a technique named lazy binding is used for boosting performance when only a small portion of shared library is required, ...
PkDrew's user avatar
  • 153
0 votes
1 answer
28 views

ltrace doesn't work for Python compiled with --enable-shared

When I build Python 3.12.4 with --enable-shared option: Enable building a shared Python library: libpython (default is no). the only output I get from ltrace is: Py_BytesMain(2, 0x7ffd1e465518, ...
Marcin Barczyński's user avatar
0 votes
0 answers
51 views

Android.bp support required for precompiled .so in System/lib64 and vendor/lib64

I have few precompiled .so files downloaded from one build system into another one, which is required to be pushed as part of System/lib64 and vendor/lib64 for application to work. I am trying to add ...
Praween k's user avatar
  • 1,015
-1 votes
1 answer
27 views

Link precompiled libraries containg tests to test main function

My folder structure: Project |--Component1 |------src/ |----file.c |------hdr/ |----file.h |------test/ |---unittests.cpp (tests file....
binaryBigInt's user avatar
  • 1,660
1 vote
0 answers
48 views

Getting "Too Many Files Open" Error in C Shared Library Despite ulimit Set to Unlimited

I'm working on a C program where I've created a shared library to intercept the connect system call and route the connection through a proxy server. The code works, but after running it for a while, I ...
Faraz's user avatar
  • 56
1 vote
0 answers
44 views

How to use BLAS in C, using gcc on Linux?

On Linux, in the file a.c, I do #include <cblas.h> and later I do cblas_sgemm(...). Compiling with gcc -O2 -march=native -fopenmp a.c or with gcc -O2 -march=native -lblas -fopenmp a.c results in ...
Sasha's user avatar
  • 361
0 votes
2 answers
41 views

Shared Libraries in jenkins not working in parameters

I am trying to optimize my Jenkins scripts with the usage of shared libraries. I created a repository, created a vars directory and added two groovy scripts: . `-- vars |-- buildDockerImage.groovy ...
Pantelisy's user avatar
0 votes
0 answers
38 views

run a large language model (LLM) as a .so shared library on Android for Unity3D integration

I'm developing a Unity3D application for Android, and I need to integrate a large language model (LLM). From what I understand, I would need to compile the LLM as a .so shared library to use it on ...
Claus's user avatar
  • 5,712
2 votes
1 answer
119 views

Safe passing of pointer from a shared library

I need to implement a solution where shared library provides a class SomeClass, and its factory SomeClassFactory returning a pointer to SomeClass. The reason, why it's a pointer, not a static object ...
Piotr G's user avatar
  • 1,019
0 votes
0 answers
29 views

How to create an .so library in Android studio?

I would like to create a standalone shared library, .so file in Android studio with C++. If I create a new native C++ project, that also compiles into an apk. Should I create a module to compile into ....
Fox1942's user avatar
  • 364
1 vote
1 answer
63 views

Optimising Makefiles and gcc

I'm a bit of a noob in Make and wrote a makefile which essentially parses my src folder looking for .c files and creates a .so file out of them. I then parse my user folder, searching for .c files, ...
CodingMike's user avatar
3 votes
2 answers
53 views

Angular library service always has a new instance

In Angular 17, There is an Angular library named CommonLib and It contains a WaitSpinnerService which has a private class variable waitSpinner = new EventEmitter(); I use the CommonLib ...
L. Kvri's user avatar
  • 1,644
1 vote
1 answer
94 views

Unable to open Azure Devops page after I switched to default directory

I’m Sudarshan Reddy, a Data Engineer at Oracle in India. Last week, I signed up for a free trial plan on Azure to improve my skills with their products. I accessed Azure DevOps using the same account, ...
SUDHARSHAN REDDY 's user avatar
0 votes
1 answer
21 views

Is there a way on Linux for a shared library to dynamically choose how to link to its dependency?

Situation: There is a library A with a dependency on library B. However, B is often provided by the system and some program that may want to link with A may be depending on the system-provided library....
Dan M.'s user avatar
  • 4,020
0 votes
0 answers
30 views

Nextjs cannot find ld-linux-x86-64.so.2

im trying to run nextjs using the base image ruby:2.7.1-alpine and installing node like this: COPY --from=node:18-alpine /usr/local/bin/node /usr/local/bin/node COPY --from=node:18-alpine /usr/local/...
Avixon's user avatar
  • 123
0 votes
0 answers
13 views

How to rename a function in .so file?

I have a library (libms.so) which contains a function Java_com_miar_cpo_Xml_makefile. I want to rename this function to Java_com_mypack_cls_Xml_makefile and save changes in .so file. I want only to ...
yoyo huo's user avatar
0 votes
1 answer
64 views

How to get SFML library installed correctly for MINGW

First thing is, I am a complete beginner to C++ and I'm using VSCode with MINGW. For a project I need the SFML external library installed. I'm not using Visual Studio because my PC is like 10 year old,...
whoo zie's user avatar
0 votes
2 answers
58 views

C++ CMake Project: Issues Including External Library Header Files

I'm trying to use an external library (SerialSDK) in my C++ CMake project. My project structure looks like this: project/ ├── CMakeLists.txt ├── include/ │ └── SerialSDK.h ├── src/ │ └── main.cpp └...
masoume's user avatar
  • 33
0 votes
0 answers
35 views

Upgrading PostgreSQL from 11.x to 16.x with pg_upgrade: failed to load shared libraries

TL;DR: Is it safe to provide shared libraries from multiple environments in LD_LIBRARY_PATH to pg_upgrade? If not, can I somehow tell pg_upgrade the directory it should take its shared libraries from ...
Max N.'s user avatar
  • 1,125
0 votes
0 answers
78 views

Gradle Build Fails Due to Incompatible Variant Matching for Android Plugin

Lib Gradle : plugins { alias(libs.plugins.android.library) alias(libs.plugins.jetbrains.kotlin.android) id("maven-publish") } android { namespace = "com.example....
Tugba's user avatar
  • 11
-2 votes
1 answer
68 views

Can I write a library to preload in C++? Is there anything I need to do other than prepend `extern "C"` to the functions to intercept? [closed]

I am working on a personal project where I need to intercept Linux APIs like open(), read() etc, and I would like to do some data analysis on them. I would need to keep a C++ data structure std::map ...
Aravind A's user avatar
  • 456
0 votes
0 answers
15 views

Android. Gradle. Conflict of native SO libraries names on Windows

I have a huge odl Android project and now we need to update a version of some old legacy library. We are trying to keep 2 version of the same library. Now they are totally different inside. There are ...
Vetalll's user avatar
  • 3,644
1 vote
1 answer
96 views

ODR Violation with static variables and multiple shared libraries in Linux

Say I have the following scenario: A static library (let's call it DummyStatic.a) that declares and defines the following class: class DummySingleton { private: static DummySingleton the_instance_;...
pureofpure's user avatar
  • 1,090
2 votes
0 answers
189 views

Global variable marked as extern is duplicated

I am linking a shared library that declares a global variable like so: __attribute__((visibility("hidden"))) extern HookList<MallocHook::DeleteHook> delete_hooks_; See src/malloc_hook-...
Volodymyr Lashko's user avatar
1 vote
1 answer
101 views

ld cannot find -lblas -llapack while installing R package clarabel (no root access)

I totally understand if this is an incredibly specific situation which would be better directed to my system administrators instead of StackOverflow, but I thought I'd give it a shot anyway. I am ...
ethan-pawl's user avatar
0 votes
0 answers
40 views

In Yocto, how do I install the libiec61850 library and examples on a Linux target?

I've created a Linux image with overlays, docker, docker compose, added and configured users and it all works. I'm now trying to install libiec61850 library and run examples. I've installed the ...
Stan's user avatar
  • 1

1
2 3 4 5
162