I've started a new project, copied in the libavcodec.a libavformat.a and libavutil.a static libraries from /usr/local/lib to My Project > Frameworks > Linked Frameworks so they are now along side Cocoa.framework.
I checked My Project > Targets > My Project > Link Binary With Libraries and it contains all the static libraries I put in Linked Frameworks, along side the Cocoa.framework.
Next I copied in all the headers from /usr/local/include/ffmpeg to a new group I made under My Project > Classes.
The libraries seem to be linking (still giving me the warning about required architecture but I'm ignoring it for now), but it's still throwing me the error:
Code:
"_av_register_all", referenced from:
_main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
for the tiny bit of code I've tried that uses ffmpeg:
Code:
#import <Cocoa/Cocoa.h>
#include <avcodec.h>
#include <avformat.h>
int main(int argc, char *argv[])
{
av_register_all();
return NSApplicationMain(argc, (const char **) argv);
}
I feel like I'm at the last hurdle I need to struggle through, if you have any ideas I would greatly appreciate it
-Ross
[edit]
After playing around with the XCode settings, I noticed if I set the Active Build Configuration to Debug rather than Release, it compiles perfectly... setting it back to Release throws the error again ...