dylib

weird ios libprotobuf.dylib cause crash

ⅰ亾dé卋堺 提交于 2019-12-21 06:06:46
问题 i have my own protobuf compiled in the project (in the main target, not a lib), but I found a crash which is caused by protobuf code in libprotobuf.dylib ( which in my guess is a newly included lib in new version of device -- mine is ipad air). * thread #1: tid = 0x6598, 0x0027e96e TutorChat`void google::protobuf::internal::RepeatedPtrFieldBase::Destroy<google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::TypeHandler>(this=0x1567158c) + 66 at repeated_field.h:814, queue

Xcode 4: Can't use Enable Guard Malloc due to dylib error for iPad simulator

喜欢而已 提交于 2019-12-20 14:23:40
问题 In Xcode 4.x I've edited my Run scheme to 'Enable Guard Malloc' since I have a nondescript malloc error I need to track down. I'm aware I need to run in the simulator to use this feature. However, when I do so the app immediately freezes and Xcode shows me a stack trace that looks like this: I've googled around to find a solution, but thus far no joy. It was reported elsewhere that I should be setting an environment variable in my scheme: DYLD_INSERT_LIBRARIES -> /usr/lib/libgmalloc.dylib

Private module map for a framework

爷,独闯天下 提交于 2019-12-20 09:39:08
问题 I'm using this answer to create a module map to create a module for CommonCrypto so I can use it in a framework. Doing this however means that any projects that I use this framework in have access to CommonCrypto with import CommonCrypto - and even worse, declaring CommonCrypto in another framework and importing this into the project results in Redefinition of module 'CommonCrypto' errors. I.e. the following setup: MainProject |--> import FrameworkA - module map for CommonCrypto |--> import

Library (dylib) not loaded - image not found - Python IDE

风格不统一 提交于 2019-12-20 02:57:08
问题 Basically I'm trying to run some Python code from savReaderWriter module in order to create a .sav file ready to open in IBM SPSS. As a macOS user I needed to run these two lines in the terminal first for the module to work: echo 'export DYLD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/savReaderWriter/spssio/macos' >> ~/.bash_profile echo 'export LC_ALL=en_US.UTF-8' >> ~/.bash_profile Below you can see a piece of code I'm trying to run in Python:

dlopen() error image not found

為{幸葍}努か 提交于 2019-12-19 18:11:28
问题 I have software that first loads a .dylib lets call libFirst.dylib using the following command: void* handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL); Later on inside a function from the loaded libFirst.dylib I attempt to load another .dylib using the same command but for libSecond.dylib, the loading of this shared library gives me the following warnings in my Xcode console: error warning: Ignored unknown object module at 0x129310 with type 0x8a8399 dlerror: dlopen(/path/libSecond

How to use dylib file in application?

狂风中的少年 提交于 2019-12-19 07:36:11
问题 I have created lib.dylib dynamic library. I want to use that library in my application. What are the Build setting and build phase settings are required? Steps to use the library in objective-c. 回答1: so there are 2 ways... 1) if the Dyld is available at link time, then you just link against it. (in Xcode you add it to the link build phase of the target you are building.) if using a framework: The headers will end up in the header search path so you can #import <framework/header.h> them. 2) if

Xcode, building and dylibs

↘锁芯ラ 提交于 2019-12-19 04:49:31
问题 I've looked at a few related questions and cannot seem to find a solution for myself. Basically I'm using the libmp3lame.dylib in my Xcode project. The install process for lame produced the .dylib and placed it in usr/local/lib and to get Xcode to build and run the project I changed the Library Search Paths to include the above folder. This works fine. Now it's come to producing a release version and I want to include the .dylib in the bundle so that the user doesn't have to put up with an

How To Call my Qt/C++ Dylib from Objective C?

时光怂恿深爱的人放手 提交于 2019-12-19 04:40:26
问题 I've compiled a dylib in Qt/C++. I created a simple class method called test() that reads a string input and returns a string output with "-response" back. Now how do I load that inside Objective C in XCode 7 (a default Cocoa application) and make it emit test() via NSLog() ? This is what my build folder looks like in Qt/C++. 回答1: You need to use an Objective-C++ class, which is a hybrid of Objective-C and C++. The greatest challenge using one or more Objective-C++ classes in a largely

How To Call my Qt/C++ Dylib from Objective C?

不羁岁月 提交于 2019-12-19 04:39:59
问题 I've compiled a dylib in Qt/C++. I created a simple class method called test() that reads a string input and returns a string output with "-response" back. Now how do I load that inside Objective C in XCode 7 (a default Cocoa application) and make it emit test() via NSLog() ? This is what my build folder looks like in Qt/C++. 回答1: You need to use an Objective-C++ class, which is a hybrid of Objective-C and C++. The greatest challenge using one or more Objective-C++ classes in a largely

dyld not loaded Reason: image not found libopencv_core.2.4.dylib

我只是一个虾纸丫 提交于 2019-12-18 19:45:26
问题 I'm still quite new to Objective C and Xcode, but I just finished a small app that uses the openCV libopencv_core.2.4.2.dylib . When I went to open the final built app on another machine , OS X threw me this error: Dyld Error Message: Library not loaded: */libopencv_core.2.4.dylib Referenced from: /Users/USER/Desktop/my app.app/Contents/MacOS/my app Reason: image not found Why is my app looking for 2.4 instead of 2.4.2 here? What I already checked: I added a new build phase -> so that