[FFmpeg-devel] GSoC project (JPEG 2000)
spyfeng at gmail.com
Sun Mar 27 08:04:23 CEST 2011
On Sun, Mar 27, 2011 at 1:46 PM, rukhsana afroz <rukhsana.afroz at gmail.com>wrote:
> On Sat, Mar 26, 2011 at 10:10 PM, Peter Ross <pross at xvid.org> wrote:
> > The FFmpeg build system forbids the use of global functions, without a
> > previous
> > prototype declaration. To fix this, you need to declare a
> > 'ff_j2k_init_tier1_luts'
> > prototype somewhere _or_ make the function static.
> > From the gcc manpage:
> > -Wmissing-prototypes (C and Objective-C only)
> > Warn if a global function is defined without a previous prototype
> > declaration. This warning is issued even if
> > the definition itself provides a prototype. The aim is to detect
> > global functions that fail to be declared in
> > header files.
> Thanks Peter for your help. I made static this file in both declaration and
> implementation. Now, I got rid of this problem. While linking jpeg 2000
> ffmpeg, i got the following error:
> LD ffmpeg_g
> In function `avcodec_register_all':
> undefined reference to `ff_jpeg2000_decoder'
> collect2: ld returned 1 exit status
> make: *** [ffmpeg_g] Error 1
> If anybody could help getting rid of it, that would be great.
This is link error.
I think you should modify the libavcodec/Makefile like this:
More information about the ffmpeg-devel