私はffmpegのdylibを統合したXcodeでCocoaプロジェクトを構築しました。 Mac OSX 10.6と10.7ではうまく動作しますが、10.5ではクラッシュします。私は10.6でコンパイルしています。助言がありますか?ありがとう!ここでffmpeg dylibを持つCocoaアプリケーションがMac OSX 10.5でクラッシュする(ただし10.6または10.7ではありません)
は、私はそれをコンパイルした方法は次のとおりです。
に./configure --disable-静的--enable-共有--disable-OUTDEV = SDL --enable-ランタイムcpudetect --disable- bizlib --disable-libfreetype --disable-libopenjpeg --enable-zlib --arch = x86_64 --sysroot =/Developer/SDKs/MacOSX10.6.sdk --extra-cflags = " - isysroot/Developer/SDKs/MacOSX10 .6.sdk -DMACOSX_DEPLOYMENT_TARGET = 10.5 -mmacosx-バージョン分= 10.5"
ここでクラッシュレポートです:
Process: MyApp [27963]
Path: /Applications/MyApp.app/Contents/MacOS/MyApp
Identifier: com.mycompany.MyApp
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: launchd [66]
Interval Since Last Report: 123326 sec
Crashes Since Last Report: 2
Per-App Interval Since Last Report: 0 sec
Per-App Crashes Since Last Report: 2
Date/Time: 2011-11-06 15:29:51.154 -0500
OS Version: Mac OS X 10.5.8 (9L31a)
Report Version: 6
Anonymous UUID: D86EA304-DCDA-4855-9124-69FE8C5BDE1B
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Library not loaded: @rpath/libavcodec.dylib
Referenced from: /Applications/MyApp.app/Contents/MacOS/../Frameworks/MyEngine.framework/Versions/A/MyEngine
Reason: no suitable image found. Did find:
/Applications/MyApp.app/Contents/Frameworks/MyEngine.framework/Versions/A/Libraries/libavcodec.dylib: unknown required load command 0x80000022
リンク先のffmpegライブラリを作成しましたか、それともsomeheresからダウンロードしましたか? –
@MichaelDautermann - 自分で作成しました –