Xcode Dynamic Library file extension
Questions tagged [dylib]
803 questions
0
votes
1 answer
Using a category in a dylib to extend a binary's class
I have an objc app that has the class Foobar and I want to make a dylib that will be loaded into that app on start and extends the class Foobar with a few methods.
Unfortunately I cannot build the library, I get the following linker error:
…

Kim
- 1
- 2
0
votes
1 answer
Accesing to /usr/local/lib through Xcode 4
I am trying to use OpenCV within Xcode. I was following this thread but OpenCV's dylib are in /usr/local/lib and not in /opt/local/lib is there a way to see the first path within Xcode? Should I change the install path of OpenCV? I don't know if…

BRabbit27
- 6,333
- 17
- 90
- 161
0
votes
1 answer
Copy .dylib library from one xcode project to another
So I have one Xcode project that I downloaded that comes with a ~.dylib file and a folder titled 'include' that comes with all the files for that library.
What I want to do is copy these files into another XCode project.
However I don't know how…

user1855952
- 1,515
- 5
- 26
- 55
0
votes
1 answer
strange crash on osx lion possibly due to bad symbol lookup
I have a c++ app running on OS/X Lion which crashes in a call to glIsBuffer(0). The XCode 4.5 stack trace states:
error: address doesn't contain a section that points to a section in a object file
and DYLD_PRINT_APIS…

user1031420
- 505
- 1
- 5
- 13
0
votes
1 answer
Removed MAMP from OS X, dyld still using MAMP libraries
When I try and use a populator or sphinx on a Ruby app I keep receiving dyld errors. I used to use MAMP on OS X Leopard but since I've upgraded to Snow Leopard and am now using standalone MySQL (10.5 64-bit).
$ rake ts:index
Would return
dyld:…
dizzee
0
votes
1 answer
Check if boost is used in a binary
I'm having problems writing a plugin as a dylib for a poorly documented application on osx and I'm wondering if its because of a missmatch in boost libraries used in my .dylib and the application. Does anybody know of any way to check if boost was…

jonathan topf
- 7,897
- 17
- 55
- 85
0
votes
1 answer
Debugging Plugins in another thread
In my app I have a plugin system that allow users to develop plugins (in C/C++ dylib) and execute them at runtime (using dlopen/dlsym).
Basically I have a main thread (which is drawing my GUI) and another thread (which is the plugin thread) that is…

McBob
- 1,011
- 2
- 13
- 25
0
votes
1 answer
Overriding a libc function using an injected dylib on OS X
I am trying to override some libc functions (eg: puts()) with my own implementation.
I have defined my own implementation in a dylib file as follows.
int puts ( const char * str );
When I link my binary with the dylib file in Xcode and build, my…

Karthik
- 770
- 1
- 6
- 12
0
votes
0 answers
C++ Runtime error on Mac 10.7/10.8
I am using Eclipse, GCC 4.8 and building C++ project on both Mac OS 10.7 and 10.8. For the most of the time, the project builds and runs properly except for some specific functions. For example:
int main( int argc, char ** argv ) {
string a =…

zeroliu
- 990
- 2
- 10
- 15
0
votes
0 answers
SIGABRT. How get line from code, which issues error?
Use xCode 4.5 SDK 6.0 + cocos2d 2.1
Then xCode issues SIGABRT, we see this:
image 1
In log we read method, which issues error. For example: [IntroLayer zeroMethods]; It's ok.
And we need find this method in project by hands.
But, in previuos version…

Sinba
- 314
- 3
- 12
0
votes
1 answer
Splitting a large c++ program into several components
I have a c++ program that consists of many .cpp & .h files.
I'd like to introduce some physical decoupling by taking a bunch of .cpp files for a certain feature of the program, and compile that feature into a seperate .dll / dylib.
When doing this,…

Lucas Meijer
- 4,424
- 6
- 36
- 53
0
votes
1 answer
How to debug this stdc++ crash on osx 10.5
I have a .dylib I built for integrating as an Adobe AIR native library. The code runs great on osx 10.6, 10.7, and 10.8, but I've gotten reports that it's crashing on 10.5. I can't seem to find instructions (that actually work) on how to get a…

Andrew Westberg - BCSH
- 823
- 1
- 11
- 18
0
votes
1 answer
Protobuf, OSX, ant compilation error
I use a protobuf project compiled with Ant. The proto files are shared via SVN, and they are locally compiled to Java classes using:
ant protobuf
I've recently upgraded OSX Mountain Lion. When one of the proto files has changed, I've got this error…

Adam Matan
- 128,757
- 147
- 397
- 562
0
votes
1 answer
Statically linking a library into a C++ dylib on OSX
I am compiling a number of .dylibs (a plugins) and I want to statically include tinyxml2 into them.
I've got tinyxml2.cpp and tinyxml2.h sitting next to the sources. When I run my make, the commands it produces are:
rm -rf *.a *.os *.dylib
g++-4.0…

Julik
- 7,676
- 2
- 34
- 48
0
votes
1 answer
how can i create dylib with init function
I am trying to create a dylib in xcode. I can able to create dylb by choosing c/c++ Library template in Xcode.
I want to add "init" method for this dylib. I don't know how to add "init" method for dylib.
My idea is to call this "init" on runtime…

user123456789
- 81
- 1
- 8