2014-01-24 5 views
0

현재 프로젝트에서 동일한 프로젝트에서 live555와 ffmpeg 라이브러리를 모두 사용해야합니다. 우리는 구축하고 문제없이 두 프로젝트에 대한 샘플을 실행 할 수 있지만 다음과 같은 컴파일러 오류가 발생했습니다 프로젝트에 두 프로젝트를 병합 할 때 :live555와 ffmpeg를 Xcode 5로 컴파일

Undefined symbols for architecture armv7: 
    "av_free_packet(AVPacket*)", referenced from: 
     -[MyRtspClient readFFmpegAudioFrameAndDecode] in MyRtspClient.o 
    "av_read_frame(AVFormatContext*, AVPacket*)", referenced from: 
     -[MyRtspClient readFFmpegAudioFrameAndDecode] in MyRtspClient.o 
    "av_strerror(int, char*, unsigned long)", referenced from: 
     -[MyRtspClient readFFmpegAudioFrameAndDecode] in MyRtspClient.o 
    "av_dict_set(AVDictionary**, char const*, char const*, int)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "av_init_packet(AVPacket*)", referenced from: 
     -[MyRtspClient readFFmpegAudioFrameAndDecode] in MyRtspClient.o 
    "avcodec_register_all()", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "av_register_all()", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "av_log_set_level(int)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "av_log(void*, int, char const*, ...)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "avformat_alloc_context()", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "avformat_network_deinit()", referenced from: 
     -[MyRtspClient destroyFFmpegAudioStream] in MyRtspClient.o 
    "avformat_open_input(AVFormatContext**, char const*, AVInputFormat*, AVDictionary**)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "avformat_find_stream_info(AVFormatContext*, AVDictionary**)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "av_find_best_stream(AVFormatContext*, AVMediaType, int, int, AVCodec**, int)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "av_dump_format(AVFormatContext*, int, char const*, int)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "avcodec_open2(AVCodecContext*, AVCodec const*, AVDictionary**)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "avformat_network_init()", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "av_dict_free(AVDictionary**)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
    "avcodec_find_decoder(AVCodecID)", referenced from: 
     -[MyRtspClient initFFmpegAudioStream] in MyRtspClient.o 
ld: symbol(s) not found for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
나는 조금 어이 나는 그래서 내가 필요한 모든 파일을 포함해야

이것으로 어떤 제안이라도 환영합니다, 감사합니다.

답변

0

예, 성공적으로 결합 할 수 있습니다. 가장 좋은 방법은 ffmpeg와 live555 라이브러리를 병합하는 작업 공간, 을 만드는 것입니다.

여기 예가 나와 있습니다. enter image description here

+0

감사합니다. 다시 시도해 봅니다. 병합 할 때 내가 어리석은 행동을했을 수도 있습니다. Xcode 5.0.x에서 제대로 작동하는지 확인해 보셨습니까? – Kai

+0

프로젝트가 live555 & ffmpeg의 간단한 병합 인 경우에도 여전히 동일한 오류 메시지가 표시됩니다. 다운로드하여 시도 할 수있는 곳으로 업로드 할 수 있습니까? 사전에 감사드립니다 – Kai

+0

직접 또는 내 Facebook 페이지를 통해 연락 할 수 있습니다. https://www.facebook.com/groups/mooncatventures/ –

관련 문제