shared-libraries

How to obtain readelf and objdump binaries for OS X?

二次信任 提交于 2019-12-13 20:06:09
问题 From where can I download readelf and objdump binaries for OS X? I'm trying to get the list of exported functions from an NDK .so library and neither nm nor otool worked for me. I've read that the library might be in elf format and that readelf or objdump might work. I was able to find the source code for those utilities but I would like the binaries. Surely they've been compiled by someone already. There was a lot of information in this SO article: How do I list the symbols in a .so file It

How to install METIS package in python on windows?

老子叫甜甜 提交于 2019-12-13 20:04:07
问题 I am currently running a source code in python which uses METIS. I wanted to run it using Jetbrains PyCharm, conda interpreter and these are installed on windows 10. Although I have installed METIS using conda, I could not enable shared libraries and I faced this error: ModuleNotFoundError: No module named 'metis' When I tried to run it without conda I faced the following error although I have added the metis.dll location to the environment variables. RuntimeError: Could not load METIS dll

JNA Native.loadLibrary generates a memory failure: __memmove_avx_unaligned_erms

无人久伴 提交于 2019-12-13 19:17:31
问题 I develop an app in java that loads a C++ shared library using JNA. The detailed procedure is the following. Find library in the jar use System.load( C_LIBRARY_PATH ) with the result of step 1 Load library using JNA tools: Wrapper INSTANCE = Native.loadLibrary( C_LIBRARY_PATH, Wrapper.class ); This procedure is used to create a wrapper of the c++ library and hence produces a java library that is used for other projects. Point 1 and 2 are inspired by the work of adamheinrich. The existence of

Registering multiple .dll libraries into a single java class using JNA

筅森魡賤 提交于 2019-12-13 19:08:45
问题 First of all some context, to thoroughly explain the methods I've already tried: I'm working in a java-based programming platform on windows which provides access to custom java functions with several other extensions. Within the source code of this modelling platform, there is a class "CVODE" which grants access to native library "cvode" to import the functionality of a C++ library CVODE. //imports public class CVODE { static { Native.register("cvode"); } public static native int ... /

Native Client application vs shared libraries (e.g.security) updates?

微笑、不失礼 提交于 2019-12-13 18:54:16
问题 In traditional model, when program does dynamic linking of shared library, than - as one of side effects - it, usually does not have to care about updates, as when new version (let's say with security or performance fix) comes, it's updated (by some kind of package manager on some Uhix or sth equivalent on Windows), and application can benefit on next run from new version. In such process, application maintainer does not have to perform any steps, in order for his/her users to benefit from

Locating Boost Libraries in Ubuntu

半世苍凉 提交于 2019-12-13 18:36:48
问题 I want to build an autotools project which is making use of the boost libraries program_options and iostreams . Therefor I install those libraries: sudo aptitude install libboost-iostreams-dev libboost-program_options-dev Now ./configure is fine and the progam compiles. However the linking fails: /usr/bin/ld: cannot find -lboost_program_options-mt /usr/bin/ld: cannot find -lboost_iostreams-mt This is a well documented issue and can be fixed either by fixing the autotools stuff or by linking

Shared Library not found error on android LogCat

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 18:28:39
问题 I'm trying to develop android app which can stream images from the camera to a server. So I've found a project that stream to the browser and you can find here: http://code.google.com/p/ipcamera-for-android/ I'm trying to run this code, but I get an error: 06-28 12:43:47.030: E/AndroidRuntime(31749): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1963]: 1567 could not load needed library 'libffmpeg.so' for 'libipcamera.so' (load_library[1105]: Library 'libffmpeg.so' not found

SIGSEGV in DSO, mixed C/C++

百般思念 提交于 2019-12-13 17:36:34
问题 I'm using the SWI-Prolog foreign language interface for C++, attempting to integrate some other resource. It mostly works, but any attempt to throw an exception result in a SIGSEGV. Exceptions are routinely used in validation of user parameters, and thus are a fundamental part of the interface. I'm compiling SWI-Prolog from source (via supplied script), and the CXX flags are -c -O2 -gdwarf-2 -g3 -Wall -pthread -fPIC I'm using the same flags to compile my C++ code, that is assembled in a .so,

Shared library linked with static library: relocation error

梦想的初衷 提交于 2019-12-13 17:08:35
问题 I would like to create a shared library with gfortran, linking it with the static version of libgfortran for portability reasons. Unfortunately, I don't manage to link the different objects appropriately. I have already found some posts addressing a similar issue, but I could not figure out how to fix the problem. My source files are all compiled with the -fPIC flag. When I try to link the objects with the flags -shared and -static-libgfortran , I get the following error message: gfortran

symfony2: how to integrate a php library which is not a bundle

半腔热情 提交于 2019-12-13 16:44:16
问题 I am trying to integrate Agile CRM in my Symfony2 application. There is a PHP library provided by Agile : https://github.com/agilecrm/php-api However it's not a bundle. How can I integrate it correctly in my application? Should I put a require once in my app.php or my kernel? Or is there a better way? 回答1: Composer has a feature to auto load files https://getcomposer.org/doc/04-schema.md#files { "autoload": { "files": ["src/MyLibrary/functions.php"] } } Other ways ? Expose the functionality