r4542 not building

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----------------------------------------
> From: aftnix@xxxxxxxx
> To: pjsip at lists.pjsip.org
> Date: Sun, 23 Jun 2013 18:34:54 +0600
> Subject: r4542 not building
>
> Build Stops with following error :
>
> ../src/pjmedia/ffmpeg_util.h:50:12: warning: ?enum CodecID? declared inside parameter list [enabled by default]
> ../src/pjmedia/ffmpeg_util.h:50:12: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
> ../src/pjmedia/ffmpeg_util.h:53:7: warning: ?enum CodecID? declared inside parameter list [enabled by default]
> ../src/pjmedia/ffmpeg_util.c:65:18: error: field ?codec_id? has incomplete type
> ../src/pjmedia/ffmpeg_util.c:167:13: error: conflicting types for ?pjmedia_format_id_to_CodecID?
> ../src/pjmedia/ffmpeg_util.h:49:13: note: previous declaration of ?pjmedia_format_id_to_CodecID? was here
> ../src/pjmedia/ffmpeg_util.c: In function ?pjmedia_format_id_to_CodecID?:
> ../src/pjmedia/ffmpeg_util.c:173:35: warning: comparison between pointer and integer [enabled by default]
> ../src/pjmedia/ffmpeg_util.c:174:6: error: dereferencing pointer to incomplete type
> ../src/pjmedia/ffmpeg_util.c:174:6: warning: statement with no effect [-Wunused-value]
> ../src/pjmedia/ffmpeg_util.c:179:5: error: dereferencing pointer to incomplete type
> ../src/pjmedia/ffmpeg_util.c:179:5: warning: statement with no effect [-Wunused-value]
> ../src/pjmedia/ffmpeg_util.c: At top level:
> ../src/pjmedia/ffmpeg_util.c:183:55: error: parameter 1 (?codec_id?) has incomplete type
> make[2]: *** [output/pjmedia-x86_64-unknown-linux-gnu/ffmpeg_util.o] Error 1
> make[2]: Leaving directory `/home/arif/sak/pjsip/pjmedia/build'
> make[1]: *** [pjmedia] Error 2
> make[1]: Leaving directory `/home/arif/sak/pjsip/pjmedia/build'
> make: *** [all] Error 1
>
> I've ffmpeg available in my dev machine. I have searched CodecID enum. But all references comes up with enum AVCodecID.
>
> Is it because of some kind version mismatch? I'm on this commit of ffmpeg : 96b33ddbd00121db51dd573ae80e83955918773d
>

Well this patch fixes the build. Old ffmpeg's had CodecID which was renamed AVCodecID.

The ffmpeg commit that did was :

commit 104e10fb426f903ba9157fdbfe30292d0e4c3d72
Author: Anton Khirnov <anton at khirnov.net>
Date: Sun Aug 5 10:36:55 2012 +0200

lavc: add AV prefix to codec ids.

diff --git a/doc/APIchanges b/doc/APIchanges
index ecb2e87..436e994 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -13,6 +13,9 @@ libavutil: 2011-04-18

API changes, most recent first:

+2012-08-xx - xxxxxxx - lavc 54.25 - avcodec.h
+ Rename CodecID to AVCodecID and all CODEC_ID_* to AV_CODEC_ID_*.
+
2012-08-03 - xxxxxxx - lavu 51.37.1 - cpu.h
lsws 2.1.1 - swscale.h
Rename AV_CPU_FLAG_MMX2 ---> AV_CPU_FLAG_MMXEXT.
.....

Commit URL :?

<a href="https&#58;&#47;&#47;github.com&#47;FFmpeg&#47;FFmpeg&#47;commit&#47;104e10fb426f903ba9157fdbfe30292d0e4c3d72" target="_blank" class="newlyinsertedlink">https&#58;&#47;&#47;github.com&#47;FFmpeg&#47;FFmpeg&#47;commit&#47;104e10fb426f903ba9157fdbfe30292d0e4c3d72</a>

I guess pjsip should update it.

> ----------
> Cheers
> Arif
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org 		 	   		  


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux