shared-libraries

CMake - Make a list of paths absolute.

安稳与你 提交于 2019-12-11 07:31:45
问题 I have a variable: set(${PROJECT_NAME}_EXTERNAL_LIBRARIES ${PocoNetExternal_LIBRARIES} ) Which comes from: set(EXTERNAL_NAME PocoNetExternal) set(${EXTERNAL_NAME}_LIBRARIES ${PROJECT_BINARY_DIR}/${EXTERNAL_NAME}/Foundation/${CMAKE_SHARED_LIBRARY_PREFIX}PocoFoundation${POCO_build_postfix}${CMAKE_STATIC_LIBRARY_SUFFIX} ${PROJECT_BINARY_DIR}/${EXTERNAL_NAME}/Util/${CMAKE_SHARED_LIBRARY_PREFIX}PocoUtil${POCO_build_postfix}${CMAKE_STATIC_LIBRARY_SUFFIX} ${PROJECT_BINARY_DIR}/${EXTERNAL_NAME}/Net/$

Analyzing core file of shared object

若如初见. 提交于 2019-12-11 07:24:40
问题 Tests : [1] creating divide of 0 in executable hat was compiled with optimization (O2) and debugging symbols , thus a core was generated. [2] creating divide of 0 in shared object hat was compiled with optimization (O2) and debugging symbols , thus a core was generated. Results: [First] analysing the core generated by [1] was succeeded and an exact location of the crush could be seen in GDB/Totalview. [Second] analysing the core generated by [2] was NOT succeeded and a hex numeric location

How to link the “lame” mp3 encoder shared object to an Android studio project

孤者浪人 提交于 2019-12-11 07:14:14
问题 I am trying to write an Android app that uses the Lame mp3 encoder. My development environment is Android Studio 1.1. Following the hints under Lame MP3 Encoder compile for Android I managed to install the Android NDK and compile Lame. Under /app/src/main/libs/armeabi I obtained the shared object "libmp3lame.so", with libmp3lame.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped. However, trying to load this file in a simple Android Studio

Matlab missing dependency MEX-file

风格不统一 提交于 2019-12-11 06:58:50
问题 I have a script in matlab that calls other libraries. I use matlab version 2012a on linux . I get below error and I don't know how to fix it. The error is : Invalid MEX-file '/home/XXX/nearest_neighbors.mexa64': libflann.so.1.8: cannot open shared object file: No such file or directory Error in flann_search (line 82) [indices,dists] = nearest_neighbors('find_nn', data, testset, n, params); Error in MyScript (line 73) [nresult, ndists] = flann_search(Ntraindata', Ntraindata', resu.KNN, struct(

hash of libgmp.so changes automatically

懵懂的女人 提交于 2019-12-11 06:23:51
问题 I am using libgmp.so.3.3.3 in my application on RHEL 5.3. From my application I am taking the hash of /usr/lib64/libgmp.so.3.3.3 through sha512sum utility. My requirement is that the hash of gmp should match the hash of gmp when it was first installed otherwise it exits with an error. When I run my applications a few times, suddenly it appears the hash of libgmp.so.3.3.3 changes and my application exits. When I re-install the gmp, it starts to work fine again as the hash matches with the one

Link to a DLL in Pelles C

扶醉桌前 提交于 2019-12-11 06:09:17
问题 I have a 218KB .dll and a 596KB .so file, both with identical names. I want to link to the .dll to avoid the "unresolved external symbol" error that the linker returns, but I can't find a way to link to the DLL file. According to this Pelles C forum topic, I need to use the .def file to create a .lib ... but I don't have a .def file. This forum topic shows how to use polink to create a .lib from the command line, so I ran polink /? to get some more options. I noticed a /MAKEDEF option, but

How to configure scons to link using rpath on mac?

元气小坏坏 提交于 2019-12-11 05:55:19
问题 It works on Ubuntu to link my task using RPATH, but on mac, it doesn't work env.Program(source = Glob("*.cpp") + Glob("../*.cpp"), LIBS = [ "l_util", "boost_system", "boost_timer", ], LIBPATH = libPath, RPATH = libPath, CPPPATH = includePath) On Ubuntu, using ldd , I can see shared libs are linked with absolute path. But using otool -L on mac gives me relative path to top dir of my Sconstruct file. Anyone setup RPATH correctly on mac using scons? 来源: https://stackoverflow.com/questions

Creating C++ Redis Module - “does not export RedisModule_OnLoad() symbol”

萝らか妹 提交于 2019-12-11 05:13:51
问题 I am having some trouble loading my Redis module. I am just copying the example from https://redis.io/topics/modules-intro, but I stripped it down. #include "redismodule.h" #include <stdlib.h> int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (RedisModule_Init(ctx,"avromodule",1,REDISMODULE_APIVER_1) == REDISMODULE_ERR) return REDISMODULE_ERR; return REDISMODULE_OK; } This is saved in avromodule.cpp. I compile it using the following: g++ -shared -fPIC -o

Recompiling libiconv, gettext undefined symbols occurring after an already successful install

这一生的挚爱 提交于 2019-12-11 05:03:50
问题 Main Obvious Error " Undefined symbols for architecture x86_64 " How do I get these to compile successfully again? The Operating System is Mac OS X. Have installed multiple programs from their sources. Noticed the problem after having installed: binutils v2.25 , libtool v2.4.6 , glib v2.45.2 , OR pkgconfig v0.28 Before installing any of the above, recompiling libiconv and gettext produced no errors and both successfully installed multiple times. pkg-config --list-all does not display libiconv

Jboss 4.2.3 custom shared lib

时间秒杀一切 提交于 2019-12-11 04:45:09
问题 I am in the process of moving the shared libraries to some custom jboss lib folder. Right now as I see, libs are placed under 1)Jboss/lib folder 2)Jboss/server/FM/lib 3)WebInf/Lib in the webapp's Now I want to move some of the libs which are shared by the webapp's in shared lib but not under jboss/server/FM/lib as I want them to at separate folder something like below: jboss/server/FM/lib/custom. I would still like libraries to loaded from Jboss/server/Fm/lib as well. Is there any way to do