ciphor / ffmpeg4ios

ffmpeg library migrated onto iOS
Other
82 stars 27 forks source link

unable to build libs for ios5.0 please help me(file was built for archive which is not the architecture being linked (armv7)) #2

Open 3kanth opened 12 years ago

3kanth commented 12 years ago

file was built for archive which is not the architecture being linked (armv7) Ld /Users/arijasoftmac/Library/Developer/Xcode/DerivedData/iPlayer-bsiutkabquvufqbsyacpfddqlztf/Build/Products/Release-iphoneos/vMEye.app/vMEye normal armv7 cd /Volumes/arija2/ffmpeg4ios/samples/rtsp_player setenv IPHONEOS_DEPLOYMENT_TARGET 5.0 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/clang++ -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/arijasoftmac/Library/Developer/Xcode/DerivedData/iPlayer-bsiutkabquvufqbsyacpfddqlztf/Build/Products/Release-iphoneos -L/Volumes/arija2/ffmpeg4ios/samples/rtsp_player/Classes/rtsp -L/Volumes/arija2/ffmpeg4ios/samples/rtsp_player/../../armv7 -F/Users/arijasoftmac/Library/Developer/Xcode/DerivedData/iPlayer-bsiutkabquvufqbsyacpfddqlztf/Build/Products/Release-iphoneos -filelist /Users/arijasoftmac/Library/Developer/Xcode/DerivedData/iPlayer-bsiutkabquvufqbsyacpfddqlztf/Build/Intermediates/iPlayer.build/Release-iphoneos/Demo.build/Objects-normal/armv7/vMEye.LinkFileList -dead_strip -miphoneos-version-min=5.0 -lstdc++ -lz -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -lRtspParser -lavcodec -lavformat -lavdevice -lswscale -lavutil -o /Users/arijasoftmac/Library/Developer/Xcode/DerivedData/iPlayer-bsiutkabquvufqbsyacpfddqlztf/Build/Products/Release-iphoneos/vMEye.app/vMEye

ld: warning: ignoring file /Volumes/arija2/ffmpeg4ios/armv7/libavcodec.a, file was built for archive which is not the architecture being linked (armv7) ld: warning: ignoring file /Volumes/arija2/ffmpeg4ios/armv7/libavformat.a, file was built for archive which is not the architecture being linked (armv7) ld: warning: ignoring file /Volumes/arija2/ffmpeg4ios/armv7/libavdevice.a, file was built for archive which is not the architecture being linked (armv7) ld: warning: ignoring file /Volumes/arija2/ffmpeg4ios/armv7/libswscale.a, file was built for archive which is not the architecture being linked (armv7) ld: warning: ignoring file /Volumes/arija2/ffmpeg4ios/armv7/libavutil.a, file was built for archive which is not the architecture being linked (armv7) Undefined symbols for architecture armv7: "_avcodec_alloc_context", referenced from: _InitDecode in VideoDecode.o "_avcodec_init", referenced from: -[RtspTestViewController setupScaler] in RtspTestViewController.o _InitDecode in VideoDecode.o "_avcodec_open", referenced from: _InitDecode in VideoDecode.o "_avcodec_register_all", referenced from: _InitDecode in VideoDecode.o "_avpicture_free", referenced from: -[RtspTestViewController setupScaler] in RtspTestViewController.o "_avpicture_fill", referenced from: _InitDecode in VideoDecode.o "_sws_getContext", referenced from: -[RtspTestViewController setupScaler] in RtspTestViewController.o _AVDecode in VideoDecode.o "_avpicture_alloc", referenced from: -[RtspTestViewController setupScaler] in RtspTestViewController.o "_av_free", referenced from: __Z12UnInitDecodeP12CVideoDecodei in VideoDecode.o "_avcodec_find_decoder", referenced from: _InitDecode in VideoDecode.o "_sws_scale", referenced from: -[RtspTestViewController getFrames] in RtspTestViewController.o _AVDecode in VideoDecode.o "_sws_freeContext", referenced from: -[RtspTestViewController setupScaler] in RtspTestViewController.o __Z12UnInitDecodeP12CVideoDecodei in VideoDecode.o "_avcodec_alloc_frame", referenced from: _InitDecode in VideoDecode.o "_avcodec_decode_video2", referenced from: _AVDecode in VideoDecode.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)