dynamic-library

C++ Statically linked shared library

二次信任 提交于 2019-11-27 11:06:00
问题 I have a shared library used by a another application beyond my control which requires *.so objects. My library makes use of sqlite3 which needs to be statically linked with it (I absolutely need a self-contained binary). When I try to compile and link my library: -fpic -flto -pthread -m64 -flto -static -shared I end up with the following error: /usr/bin/ld: /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/crtbeginT.o: relocation R_X86_64_32 against `__DTOR_END__' can not be used when making

CMake: how to produce binaries “as static as possible”

ⅰ亾dé卋堺 提交于 2019-11-27 05:13:42
问题 I would like to have control over the type of the libraries that get found/linked with my binaries in CMake. The final goal is, to generate binaries "as static as possible" that is to link statically against every library that does have a static version available. This is important as would enable portability of binaries across different systems during testing. ATM this seems to be quite difficult to achieve as the FindXXX.cmake packages, or more precisely the find_library command always

Linking Rust application with a dynamic library not in the runtime linker search path

 ̄綄美尐妖づ 提交于 2019-11-26 22:59:45
问题 I have a shared library that I'd like to dynamically link into several separate binary Cargo applications. I include its location in the linker using the -- -L /path/to/dir format and the application compiles correctly with the significant decrease in binary size I expect. However, when checking the generated binary using ldd , I get a message saying that the library couldn't be found: casey@Gilthar-II:~/bot4/backtester/target/release$ ldd backtester linux-vdso.so.1 => (0x00007ffc642f7000)

Xcode 6 and Embedded Frameworks only supported in iOS8

别等时光非礼了梦想. 提交于 2019-11-26 14:03:29
When using an embedded framework (dyld) in Xcode 6.0.1 with deployment target less that iOS 8 I get: Build is successful Runtime library loading error Error: dyld: Library not loaded: @rpath/ObjectiveLyricsTouch2.framework/ObjectiveLyricsTouch2 Referenced from: /private/var/mobile/Containers/Bundle/Application/DC65ACA9-98E5-46CD-95F8-829D3416F6C0/musiXmatch.app/musiXmatch Reason: image not found (lldb) For some time I was thinking that this is my problem as well, but for normal apps ( non-iOS-8-extension ) you just need to change one build setting in your casual Xcode 6 iOS Universal Framework

Xcode 6 iOS Creating a Cocoa Touch Framework - Architectures issues

被刻印的时光 ゝ 提交于 2019-11-26 08:57:50
问题 I\'m trying to make a dynamic framework for an iOS app. Thanks to the new version of Xcode (6) we can select a Cocoa Touch Framework when we create a new project and there is no more need to add an aggregate target, run script and so to make one. I have no issue when i build the framework. But when I\'m trying to use it inside an iOS app I get some architectures issues. ld: warning: ignoring file /Library/Frameworks/MyFramework.framework/MyFramework, file was built for x86_64 which is not the

Xcode 6 and Embedded Frameworks only supported in iOS8

时光怂恿深爱的人放手 提交于 2019-11-26 03:48:04
问题 When using an embedded framework (dyld) in Xcode 6.0.1 with deployment target less that iOS 8 I get: Build is successful Runtime library loading error Error: dyld: Library not loaded: @rpath/ObjectiveLyricsTouch2.framework/ObjectiveLyricsTouch2 Referenced from: /private/var/mobile/Containers/Bundle/Application/DC65ACA9-98E5-46CD-95F8-829D3416F6C0/musiXmatch.app/musiXmatch Reason: image not found (lldb) 回答1: For some time I was thinking that this is my problem as well, but for normal apps (

PHP Warning: PHP Startup: Unable to load dynamic library

情到浓时终转凉″ 提交于 2019-11-25 19:35:46
I run a PHP script and get this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/ixed.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ixed.5.2.lin: cannot open shared object file: No such file or directory in Unknown on line 0 What does that mean? Pascal MARTIN It means there is an extension=... or zend_extension=... line in one of your php configuration files (php.ini, or another close to it) that is trying to load that extension : ixed.5.2.lin Unfortunately that file or path doesn't exist or the