私は、iPhoneでIPカメラからrtspを介してライブビデオをストリーミングするアプリケーションに取り組んでいます。私はlive555、DecoderWrapper、RTSPClientなどのオープンソースプロジェクトを使用しています。プロジェクトのコンパイル中に次のエラーが発生します。
Undefined symbols for architecture i386:
"_av_register_all", referenced from:
+[VideoDecoder staticInitialize] in libDecoderWrapper.a(VideoDecoder.o)
"_avcodec_init", referenced from:
+[VideoDecoder staticInitialize] in libDecoderWrapper.a(VideoDecoder.o)
"_av_log_set_callback", referenced from:
+[VideoDecoder registerLogCallback:] in libDecoderWrapper.a(VideoDecoder.o)
"_avcodec_find_decoder", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:] in libDecoderWrapper.a(VideoDecoder.o)
"_avcodec_alloc_context", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:] in libDecoderWrapper.a(VideoDecoder.o)
"_av_malloc", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:] in libDecoderWrapper.a(VideoDecoder.o)
-[VideoDecoder decodeFrame:] in libDecoderWrapper.a(VideoDecoder.o)
"_avcodec_alloc_frame", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:] in libDecoderWrapper.a(VideoDecoder.o)
"_avcodec_open", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:] in libDecoderWrapper.a(VideoDecoder.o)
"_avcodec_decode_video2", referenced from:
-[VideoDecoder decodeFrame:] in libDecoderWrapper.a(VideoDecoder.o)
"_avpicture_get_size", referenced from:
-[VideoDecoder decodeFrame:] in libDecoderWrapper.a(VideoDecoder.o)
"_avpicture_fill", referenced from:
-[VideoDecoder decodeFrame:] in libDecoderWrapper.a(VideoDecoder.o)
"_sws_getContext", referenced from:
-[VideoDecoder decodeFrame:] in libDecoderWrapper.a(VideoDecoder.o)
"_sws_scale", referenced from:
-[VideoDecoder getDecodedFrame] in libDecoderWrapper.a(VideoDecoder.o)
"_avpicture_free", referenced from:
-[VideoDecoder getDecodedFrame] in libDecoderWrapper.a(VideoDecoder.o)
"_avpicture_alloc", referenced from:
-[VideoDecoder getDecodedFrame] in libDecoderWrapper.a(VideoDecoder.o)
"_av_picture_copy", referenced from:
-[VideoDecoder getDecodedFrame] in libDecoderWrapper.a(VideoDecoder.o)
"_av_free", referenced from:
-[VideoDecoder dealloc] in libDecoderWrapper.a(VideoDecoder.o)
"_avcodec_close", referenced from:
-[VideoDecoder dealloc] in libDecoderWrapper.a(VideoDecoder.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
プロジェクトにフレームワークをコピーしたかどうかを確認するなど、さまざまなソリューションをすでに試しました。チェックしましたが、「フレームワーク検索パス」に何もありません。プロジェクトで「ffmpeg」を使用しているので、i386用のライブラリをコンパイルしてみて、これらのライブラリをプロジェクトに追加しました。しかし、何も機能しません!誰か助けてくれませんか?必要に応じてコードの詳細を提供できます。