--- On Wed, 12/2/09, Joseph Mastromonaco <[email protected]> wrote:

> From: Joseph Mastromonaco <[email protected]>
> Subject: [libav-user] linking error when compiling ffmpeg for iphone device
> To: [email protected]
> Date: Wednesday, December 2, 2009, 11:20 AM
> Hey all,
> 
>   Does anyone have any ideas about this?  I'm
> still stuck :(
> 
> > 
> > Hello!
> > 
> >   I'm trying to experiment with ffmpeg
> for the iPhone and have run into a snag.
> > 
> >   I followed the installation
> instructions from 
> here:   http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/076618.html
> > 
> >   After I did that I added the
> libavcodec.a to my project in xcode.  I also set my
> header search path to the folder where the libraries are.
> > 
> >   It appears that I can compile and run
> on the iPhone simulator - however when I compile for the
> actual device I get a linking error of:
> > 
> > Building target “VideoFun” of project
> “VideoFun” with configuration “Debug” — (1 error)
> >         cd
> "/Users/jmastro0517/Documents/iPhone Apps/VideoFun"
> >     setenv
> IPHONEOS_DEPLOYMENT_TARGET 3.1
> >     setenv
> MACOSX_DEPLOYMENT_TARGET 10.5
> >     setenv PATH
> "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
> > 
>    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2
> -arch armv6 -isysroot
> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk
> "-L/Users/jmastro0517/Documents/iPhone
> Apps/VideoFun/build/Debug-iphoneos"
> -L/users/jmastro0517/documents/FFmpeg/bin/arm
> "-F/Users/jmastro0517/Documents/iPhone
> Apps/VideoFun/build/Debug-iphoneos" -filelist
> "/Users/jmastro0517/Documents/iPhone
> Apps/VideoFun/build/VideoFun.build/Debug-iphoneos/VideoFun.build/Objects-normal/armv6/VideoFun.LinkFileList"
> -mmacosx-version-min=10.5 -Wl,-dead_strip
> -miphoneos-version-min=3.1 -framework Foundation -framework
> UIKit -framework CoreGraphics -framework MobileCoreServices
> -lavcodec -o "/Users/jmastro0517/Documents/iPhone
> Apps/VideoFun/build/Debug-iphoneos/VideoFun.app/VideoFun"
> > ld: library not found for -lavcodec
> > collect2: ld returned 1 exit status
> >         ld: library not
> found for -lavcodec
> >         collect2: ld
> returned 1 exit status
> > Build failed (1 error)
> > 
> > I've been beating my head against a wall for a week
> now and any help is greatly appreciated.
> > 
> > Thanks, Joe.
> 
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> 

I followed these steps:
http://code.google.com/p/ffmpeg4iphone/wiki/Build_Instructions
and it works well (you already have the compiled library in ffplay, but might 
not have the flags that you want).
 The patch doesn't work on latest versions though.
I hope this helps.


      
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to