Questions tagged [shared-objects]

Shared Objects in Flash are used to store persistent data on the client or server side.

Local Shared Objects

Local Shared Objects are used in Flash-based applications to store ActionScript objects persistently on a client. The disk space is limited and defaults to 100 KB per domain.

Remote Shared Objects

Remote Shared Objects can be used with Flash Media Server to store ActionScript objects remotely. They can be shared across multiple clients.

418 questions
3
votes
1 answer

How to call a class and its function present in so file from a C++ program in Linux

Possible Duplicate: C++ Dynamic Shared Library on Linux I am writing a shared object say libtest.so which has a class and a function. I have another program say "Program.cpp" from which i want to call the class and its function present in the…
2
votes
6 answers

Retrieving Global Variable Values from Command Line

In one particular project, we're trying to embed version information into shared object files. We'd like to be able to use some standard linux tool to parse the shared object to determine the version for automated testing. Currently I have "const…
QBasicer
  • 71
  • 5
2
votes
1 answer

Including a prebuilt shared object file in an NDK project

I am working on including a shared object file onto the Android OS image through the NDK project. The android.mk file looks like this LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := Myaccessories LOCAL_SRC_FILES :=…
2
votes
1 answer

Update shared dictionary using mpire package

I am working to update a shared dictionary synchronously using mpire package in Python in a multi-core machine (i.e., parallel processing to update a dict). The environment I am using is a Linux machine with 8 vCPU and 16 GB memory in Amazon…
2
votes
1 answer

Why is gdb refusing to load my shared objects and what is the validation operation

Main question: In Ubuntu trying to debug an embedded application running in QNX, I am getting the following error message from gdb: warning: Shared object "$SOLIB_PATH/libc.so.4" could not be validated and will be ignored., Q: What is the…
2
votes
1 answer

Copy all shared objects from ldd output

How can I copy all shared objects from ldd output of my executable? I'm looking for something like this, but this is for find and I need for ldd: find -name "*python3.7*" -exec cp "{}" /home/user/python/arm-linux-gnueabihf/ \; EDIT: Example of ldd…
IzZy
  • 364
  • 3
  • 16
2
votes
0 answers

Integrating shared object in an application, ldd and readelf show different outputs

I am trying to integrate OpenCV into an application and facing some issues below. error while loading shared libraries: libopencv_imgproc.so.4.1: cannot open shared object file: No such file or directory However, when I check the output of ldd and…
pree
  • 2,297
  • 6
  • 37
  • 55
2
votes
2 answers

How to test if a shared object is 32-bit or 64-bit?

I'm developing a C++ application where I need to test whether a .SO is 32-bit or 64-bit, before loading it. I managed to make this assessment on Windows, taking the Headers file. Now I'm searching for a way to make that assessment in…
Dan Sigolo
  • 55
  • 1
  • 6
2
votes
2 answers

symbol name in shared object differs from function in .cpp file

In a project environment, I wanted to change a source file for a shared object from c to cpp. I made sure to change its entry in the CMakeLists.txt, too: add_library(*name* SHARED *mysource*.cpp) target_link_libraries(*name as target* *item*) The…
SiSc
  • 163
  • 9
2
votes
0 answers

How can I unblacklist 'libnvomx.so', in order to resolve "no such element factory 'omxh264enc'!"?

(Background: In a docker container on a NVidia Jetson TX2 board I have decompressed NVidia's Linux For Tegra tarball which contains lots of drivers and shared object files, some of which provide GStreamer element factories which produce elements…
Milan Lakhani
  • 371
  • 1
  • 2
  • 15
2
votes
1 answer

Macro substitution on a dynamically linked shared object

I have a compiled source code executable which has redefined malloc() with a custom function CustMalloc() using macro substitution. As seen from the below backtrace, the compiled source code executable is supposed to be dynamically linked with…
Chris Petrus
  • 193
  • 1
  • 3
  • 15
2
votes
1 answer

How to connect to MySQL Database from C UDF on CentOS

I'm trying to connect to a MySQL database on localhost from within a UDF written in C. I created a user defined function, provided it to the MySQL DB as shared object in the plugin folder and made the UDF available: CREATE FUNCTION test_udf RETURNS…
Thomas
  • 21
  • 5
2
votes
1 answer

Library will only load with LD_PRELOAD

OS: Ubuntu 16.04 64-bit Python: 2.7.12 I have a really simple Python program which is just loading two libraries libhidapi-hidraw and libpcProxAPI. The latter is dependent on the former. from ctypes import * hidapi =…
fortune
  • 1,527
  • 2
  • 15
  • 22
2
votes
6 answers

Is there any way to prepare a struct for future additions?

I have the following struct which will be used to hold plugin information. I am very sure this will change (added to most probably) over time. Is there anything better to do here than what I have done assuming that this file is going to be…
nakiya
  • 14,063
  • 21
  • 79
  • 118
2
votes
1 answer

Forward/pass file descriptors between threads

I have a task where I'm waiting for connections in one thread and forward them to another thread. Maybe I something misunderstood but why I cannot reopen file descriptor in main thread? Very simplified code: sub inthread { $socket = new…
Thomas Anderson
  • 511
  • 1
  • 5
  • 14