Error compiling httpsegmenter
Posted: Sun Jun 12, 2011 9:59 pm
Hi,
I am sure this should be very easy ...
I follewed the manual on here somewhere to do a clean install with 11.04 and all works fine except the httpsegmenter compiling part; ffmpeg has been compiled with shared libraries.
Here is the output:
root@gecko:/usr/src/zm_xml_p2fs3/httpsegmenter# make
gcc -Wall -g segmenter.c -o segmenter -lavformat -lavcodec -lavutil
segmenter.c: In function âadd_output_streamâ:
segmenter.c:57:14: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
segmenter.c:57:14: note: each undeclared identifier is reported only once for each function it appears in
segmenter.c:69:14: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
segmenter.c: In function âmainâ:
segmenter.c:278:9: warning: implicit declaration of function âguess_formatâ
segmenter.c:278:14: warning: assignment makes pointer from integer without a cast
segmenter.c:297:18: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
segmenter.c:302:18: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
segmenter.c:313:5: warning: âav_set_parametersâ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1368)
segmenter.c:318:5: warning: âdump_formatâ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1471)
segmenter.c:332:5: warning: âurl_fopenâ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
segmenter.c:359:67: error: âPKT_FLAG_KEYâ undeclared (first use in this function)
segmenter.c:370:13: warning: âput_flush_packetâ is deprecated (declared at /usr/local/include/libavformat/avio.h:293)
segmenter.c:371:13: warning: âurl_fcloseâ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
segmenter.c:391:13: warning: âurl_fopenâ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
segmenter.c:433:5: warning: âurl_fcloseâ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
make: *** [all] Error 1
Any ideas?
I am sure this should be very easy ...
I follewed the manual on here somewhere to do a clean install with 11.04 and all works fine except the httpsegmenter compiling part; ffmpeg has been compiled with shared libraries.
Here is the output:
root@gecko:/usr/src/zm_xml_p2fs3/httpsegmenter# make
gcc -Wall -g segmenter.c -o segmenter -lavformat -lavcodec -lavutil
segmenter.c: In function âadd_output_streamâ:
segmenter.c:57:14: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
segmenter.c:57:14: note: each undeclared identifier is reported only once for each function it appears in
segmenter.c:69:14: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
segmenter.c: In function âmainâ:
segmenter.c:278:9: warning: implicit declaration of function âguess_formatâ
segmenter.c:278:14: warning: assignment makes pointer from integer without a cast
segmenter.c:297:18: error: âCODEC_TYPE_VIDEOâ undeclared (first use in this function)
segmenter.c:302:18: error: âCODEC_TYPE_AUDIOâ undeclared (first use in this function)
segmenter.c:313:5: warning: âav_set_parametersâ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1368)
segmenter.c:318:5: warning: âdump_formatâ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1471)
segmenter.c:332:5: warning: âurl_fopenâ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
segmenter.c:359:67: error: âPKT_FLAG_KEYâ undeclared (first use in this function)
segmenter.c:370:13: warning: âput_flush_packetâ is deprecated (declared at /usr/local/include/libavformat/avio.h:293)
segmenter.c:371:13: warning: âurl_fcloseâ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
segmenter.c:391:13: warning: âurl_fopenâ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
segmenter.c:433:5: warning: âurl_fcloseâ is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
make: *** [all] Error 1
Any ideas?