Hi, I have got into a stupid compilation problem. I am trying to register my demuxer for initial testing and here is what I have done: At line 170 I added ++ libavformat/allformats.c REGISTER_DEMUXER (YOP,yop) This is before libavformat/allformats.c REGISTER_MUXDEMUX (YUV4MPEGPIPE,yuv4mpegpipe) ++ libavformat/Makefile OBJS-$(CONFIG_YOP_DEMUXER) += yop.o And at the end of yop.c I have: AVInputFormat yop_demuxer = { "yop", "yop format", sizeof(YOPDemuxContext), yop_probe, yop_read_header, yop_read_packet, yop_read_close, }; Top Level Make produces the following error: 'allformats.c:170 error: 'ENABLE_YOP_DEMUXER' undeclared (first use in this function) Thanks for any help, Indrani ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
G'day Indrani, On Sun, Mar 23, 2008 at 11:54 AM, Indrani Kundu Saha <indrani_ju_mtech_etce@yahoo.com> wrote:
Hi, I have got into a stupid compilation problem. I am trying to register my demuxer for initial testing and here is what I have done:
At line 170 I added ++ libavformat/allformats.c REGISTER_DEMUXER (YOP,yop)
Did you do configure after registering your muxer in allformats.c? Because configure picks up these changes from the avformat.c for muxers and parsers. Also if you do this you'll see that newly generated config.h file shall have #define CONFIG_YOP_DEMUXER 1 and #define ENABLE_YOP_DEMUXER 1 in them. Cheers A G BHATT
On Sat, Mar 22, 2008 at 06:54:08PM -0700, Indrani Kundu Saha wrote:
Hi, I have got into a stupid compilation problem. I am trying to register my demuxer for initial testing and here is what I have done:
At line 170 I added ++ libavformat/allformats.c REGISTER_DEMUXER (YOP,yop)
This is before libavformat/allformats.c REGISTER_MUXDEMUX (YUV4MPEGPIPE,yuv4mpegpipe)
++ libavformat/Makefile OBJS-$(CONFIG_YOP_DEMUXER) += yop.o
And at the end of yop.c I have:
AVInputFormat yop_demuxer = { "yop", "yop format", sizeof(YOPDemuxContext), yop_probe, yop_read_header, yop_read_packet, yop_read_close, };
Top Level Make produces the following error: 'allformats.c:170 error: 'ENABLE_YOP_DEMUXER' undeclared (first use in this function)
try running configure again an then make [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB When the tyrant has disposed of foreign enemies by conquest or treaty, and there is nothing more to fear from them, then he is always stirring up some war or other, in order that the people may require a leader. -- Plato
participants (3)
-
Abhishek Bhatt -
Indrani Kundu Saha -
Michael Niedermayer