<div dir="ltr">Make sure you compile the libs for the same target <span style="font-family:arial,sans-serif;font-size:13px">architecture (32 or 64) as your xcode proj.</span> If you use the lldb debugger (standard setting in xcode) and move the libs to another location before you link lldb won't find the source code. If you switch to gdb instead you will be able to use the "directory" command in the debug console to specify source code locations.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/29 Gary Overall <span dir="ltr"><<a href="mailto:goverall@hotmail.com" target="_blank">goverall@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Thank you for your help. I feel like I am very close. I did as you said, and it did actually build the libav libraries as I compiled and ran my project within Xcode. I had to put the location of the libraries in my header search path to to be able to include the .h files. However, when I try to call anything in the libraries (ie av_register_all();) I get the following linker error. I just assumed that since I put the ffmpeg source tree as a target dependency, that the linker would find the library files. Am I still missing a critical step??<div>
<br></div><div>
<p> "_av_register_all", referenced from:</p>
<p> -[FFAppDelegate applicationDidFinishLaunching:] in FFAppDelegate.o</p>
<p>ld: symbol(s) not found for architecture x86_64</p>
<p>clang: error: linker command failed with exit code 1 (use -v to see invocation)</p>
<p><br></p>
<p>It found the .h files, but it did not seem to find the libraries. </p><p><br></p><p>Thanks,</p><p>Gary O</p><br><div><div></div>> From: <a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a><br>
> Date: Thu, 28 Mar 2013 09:29:52 +0100<br>> To: <a href="mailto:libav-user@ffmpeg.org" target="_blank">libav-user@ffmpeg.org</a><br>> Subject: Re: [Libav-user] Source code debugging libav using Xcode<div><div class="h5">
<br>> <br>> In xcode 3, I simply add a new external build target to which I add the ffmpeg source tree. Add that target as a dependency to your own target, and you should be set. If you want to be extra sure, build ffmpeg with the same compiler you use in your project.<br>
> BTW, I have a git project up over on <a href="http://github.com/RJVB" target="_blank">github.com/RJVB</a> that shows how to make a monolithic framework out of the FFmpeg libs .<br>> _______________________________________________<br>
> Libav-user mailing list<br>> <a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>> <a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></div></div> </div></div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>