shared-objects

Including a prebuilt shared object file in an NDK project

邮差的信 提交于 2019-12-11 01:55:01
问题 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 := libMyaccessories.so include $(PREBUILT_SHARED_LIBRARY) And I have added the "libMyaccessories.so" to the jni folder where the android.mk is located. On ndk-built, it results in error which is as below Prebuilt : libMyaccessories.so <= jni/ Install :

boost iostreams library exist but i am unable link it

痴心易碎 提交于 2019-12-10 16:17:50
问题 I know that the re plenty of similar questions, but mine is litle bit different and non them helped me. I am using boost-iostreams library and here is my problem, i tried to link my program with libraries: ld -I/usr/include/boost/iostreams/ -I/usr/include/boost/iostreams/device/ -L/usr/lib/libboost_iostreams.so -lboost-iostreams fd.o -o x And the result was: ld: cannot find -lboost-iostreams When i tried to write it explicitly: ld -I/usr/include/boost/iostreams/ -I/usr/include/boost/iostreams

Loading .so Files From Memory [duplicate]

天涯浪子 提交于 2019-12-10 14:02:45
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: dlopen from memory? I've seen this for Windows' DLL files, being loaded from a memory buffer, but I cant find it anywhere for Linux, and "ld" source code is the most complex code I've ever seen. So: Is there any example of loading .so files from memory? Even a simple one that I can finish? I just don't know where to start, even though I've read most of the ELF specifications it's still mysterious to me. 回答1: You

.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

Exceptions on Linux from a shared object (.so)

会有一股神秘感。 提交于 2019-12-10 09:27:49
问题 I have a test program called ftest. It loads .so files that contain tests and runs the tests that it finds in there. One of these tests loads and runs a .so that contains a Postgres database driver for our O/RM. When the Postgres driver throws an exception which is defined in that .so file (or one that it links to, but ftest does not link to) and is caught by the test framework the exception destructor triggers a segfault. This segfault happens whenever the compiled exception is in a .so that

python: sharing huge dictionaries using multiprocessing

断了今生、忘了曾经 提交于 2019-12-10 04:05:01
问题 I'm processing very large amounts of data, stored in a dictionary, using multiprocessing. Basically all I'm doing is loading some signatures, stored in a dictionary, building a shared dict object out of it (getting the 'proxy' object returned by Manager.dict() ) and passing this proxy as argument to the function that has to be executed in multiprocessing. Just to clarify: signatures = dict() load_signatures(signatures) [...] manager = Manager() signaturesProxy = manager.dict(signatures) [...]

How would I go about sharing variables in a C++ class with Lua?

自古美人都是妖i 提交于 2019-12-09 13:31:42
问题 I'm fairly new to Lua, I've been working on trying to implement Lua scripting for logic in a Game Engine I'm putting together. I've had no trouble so far getting Lua up and running through the engine, and I'm able to call Lua functions from C and C functions from Lua. The way the engine works now, each Object class contains a set of variables that the engine can quickly iterate over to draw or process for physics. While game objects all need to access and manipulate these variables in order

Objects saved in a shared object are not keeping their data type after restart. Any ideas?

柔情痞子 提交于 2019-12-08 07:49:05
问题 I'm having issues saving, then retrieving sharedObject data. For example if I make a shared object: var myData:SharedObject = SharedObject.getLocal("myData"); Then, I make an object, in this case, a "feathers" listcollection object var lc:ListCollection = new ListCollection() then assign it: myData.data.lc = lc; ok now, if i don't restart the phone (i'm working on android) and I assign the saved listCollection to listCollection var and it works fine like this: var lc:ListCollection = myData

Cannot Open Shared Object cygmpfr-1.dll

人走茶凉 提交于 2019-12-08 05:06:48
问题 I'm testing CeGCC, that is a gcc built to cross-compile applications to Windows CE devices. As everyone do to test compilers, I've done a Hello World program: #include <stdio.h> int main() { printf("Hello, World!"); return 0; } As I'm using Windows now(because this is my other laptop), I'm using Cygwin. But when I tried to compile I got some errors, as you can see on the terminal log: C:\Dev\WinCE\Test>arm-mingw32ce-gcc test.c /opt/mingw32ce/libexec/gcc/arm-mingw32ce/4.4.0/cc1.exe: error

What data types does a SharedObject support?

限于喜欢 提交于 2019-12-07 23:53:14
问题 I know it is a simple matter to store Strings and Numbers with a SharedObject, and I am also familiar with this sort of thing: var sharedObject:SharedObject = SharedObject.getLocal("userData"); var obj:Object = new Object(); obj.prop = "value"; sharedObject.data.userobj= obj; sharedObject.flush(); However, I am attempting to store an object of the class GameStage, a class I have defined to hold data about stages in my game. This type of thing doesn't seem to be working: var sharedObject