[FFmpeg-devel] Fw: FFmpeg build failing in IOS 5.1
Krishna
krishnaks at iwavesystems.com
Tue Apr 17 19:59:50 CEST 2012
Hello,
When I try to link ffmpeg library with IOS application, I am getting following link error.
What may be the issue?
ld: warning: ignoring file ./libavcodec.a, file was built for archive
which is not the architecture being linked (i386)
ld: warning: ignoring file ./libavformat.a, file was built for archive
which is not the architecture being linked (i386)
ld: warning: ignoring file ./libswscale.a, file was built for archive
which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_av_register_all", referenced from:
+[VideoDecoder staticInitialize] in VideoDecoder.o
"_avcodec_init", referenced from:
+[VideoDecoder staticInitialize] in VideoDecoder.o
"_av_log_set_callback", referenced from:
+[VideoDecoder registerLogCallback:] in VideoDecoder.o
"_avcodec_find_decoder", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:]
in VideoDecoder.o
"_avcodec_alloc_context", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:]
in VideoDecoder.o
"_av_malloc", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:]
in VideoDecoder.o
-[VideoDecoder decodeFrame:] in VideoDecoder.o
"_avcodec_alloc_frame", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:]
in VideoDecoder.o
"_avcodec_open", referenced from:
-[VideoDecoder initWithCodec:colorSpace:width:height:privateData:]
in VideoDecoder.o
"_avcodec_decode_video2", referenced from:
-[VideoDecoder decodeFrame:] in VideoDecoder.o
"_avpicture_get_size", referenced from:
-[VideoDecoder decodeFrame:] in VideoDecoder.o
"_avpicture_fill", referenced from:
-[VideoDecoder decodeFrame:] in VideoDecoder.o
"_sws_getContext", referenced from:
-[VideoDecoder decodeFrame:] in VideoDecoder.o
"_sws_scale", referenced from:
-[VideoDecoder getDecodedFrame] in VideoDecoder.o
"_av_free", referenced from:
-[VideoDecoder dealloc] in VideoDecoder.o
"_avcodec_close", referenced from:
-[VideoDecoder dealloc] in VideoDecoder.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Thanks in advance,
KP
----- Original Message -----
From: "Krishna" <krishnaks at iwavesystems.com>
To: "Krishna" <krishnaks at iwavesystems.com>
Sent: Friday, April 13, 2012 10:39 PM
Subject: Fw: [FFmpeg-devel] FFmpeg build failing in IOS 5.1
>
> ----- Original Message -----
> From: "Ching-Yi Chan" <chingyichan.tw at gmail.com>
> To: "FFmpeg development discussions and patches" <ffmpeg-devel at ffmpeg.org>
> Sent: Friday, April 13, 2012 10:04 PM
> Subject: Re: [FFmpeg-devel] FFmpeg build failing in IOS 5.1
>
>
>> Hi,
>>
>> sysroot is no effect.
>> try:
>> -isysroot
>> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
>>
>> there are configuration sample for our project:
>> https://gitorious.org/ffmpeg_iradio/ffmpeg_iradio/commit/6d2be83b23a5a51679c146300ccf0790edab22cc
>>
>> 2012/4/14 Krishna <krishnaks at iwavesystems.com>
>>
>>> Hi,
>>>
>>> I am trying to build ffmpeg in IOS 5.1. But always I am gettin following
>>> error:
>>> Configuring ffmpeg for armv7...
>>> /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc is unable to
>>> create an executable file.
>>> C compiler test failed.
>>>
>>> If you think configure made a mistake, make sure you are using the
>>> latest
>>> version from Git. If the latest version fails, report the problem to the
>>> ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
>>> Include the log file "config.log" produced by configure as this will help
>>> solving the problem.
>>>
>>> Config.log attached for your reference
>>>
>>> Thanks in advance,
>>> KP
>>>
>>> _______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>
>>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list