OpenWatch / FFmpegWrapper

A lightweight Objective-C wrapper for some FFmpeg libav functions
Other
179 stars 54 forks source link

Fails when compiling #18

Open IdoBn opened 8 years ago

IdoBn commented 8 years ago

I'm receiving the following error during compilation. Any ideas on how to go about fixing this?

Libtool /Users/idobn/Library/Developer/Xcode/DerivedData/M4ATestSix-gioieygmkoyfcgeictkobsfmvnmd/Build/Products/Debug-iphonesimulator/libFFmpegWrapper.a normal x86_64 cd /Users/idobn/dev/ios_code/M4ATestSix/Submodules/FFmpegWrapper export IPHONEOS_DEPLOYMENT_TARGET=9.3 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/idobn/Library/Developer/Xcode/DerivedData/M4ATestSix-gioieygmkoyfcgeictkobsfmvnmd/Build/Products/Debug-iphonesimulator -L/Users/chrisbal/FFmpegWrapper/Submodules/FFmpeg-iOS/dependencies/lib -filelist /Users/idobn/Library/Developer/Xcode/DerivedData/M4ATestSix-gioieygmkoyfcgeictkobsfmvnmd/Build/Intermediates/FFmpegWrapper.build/Debug-iphonesimulator/FFmpegWrapper.build/Objects-normal/x86_64/FFmpegWrapper.LinkFileList -lavcodec -lavutil -lswscale -lavdevice -lavfilter -lavformat -lswresample -lavutil -lavfilter -framework Foundation -lavdevice -lswscale -lavformat -lswresample -lavcodec -o /Users/idobn/Library/Developer/Xcode/DerivedData/M4ATestSix-gioieygmkoyfcgeictkobsfmvnmd/Build/Products/Debug-iphonesimulator/libFFmpegWrapper.a

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavcodec error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavcodec is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavutil error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavutil is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lswscale error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lswscale is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavdevice error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavdevice is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavfilter error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavfilter is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavformat error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavformat is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lswresample error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lswresample is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavutil error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavutil is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavfilter error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavfilter is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavdevice error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavdevice is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lswscale error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lswscale is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavformat error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavformat is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lswresample error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lswresample is not an object file (not allowed in a library) error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lavcodec error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lavcodec is not an object file (not allowed in a library)

monxarat commented 7 years ago

You must link header folder and lib folder to your project.

Header Search Path Library Search Path

//:configuration = Debug HEADER_SEARCH_PATHS = $(inherited) $(SRCROOT)/Submodules/FFmpeg-iOS/include LIBRARY_SEARCH_PATHS = $(inherited) $(PROJECT_DIR)/Submodules/FFmpeg-iOS/lib

//:configuration = Release HEADER_SEARCH_PATHS = $(inherited) $(SRCROOT)/Submodules/FFmpeg-iOS/include LIBRARY_SEARCH_PATHS = $(inherited) $(PROJECT_DIR)/Submodules/FFmpeg-iOS/lib

//:completeSettings = some HEADER_SEARCH_PATHS LIBRARY_SEARCH_PATHS