[FFmpeg-devel] GSoC project (JPEG 2000)

rukhsana afroz rukhsana.afroz at gmail.com
Sun Mar 27 07:46:20 CEST 2011


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 with
ffmpeg, i got the following error:

LD    ffmpeg_g
/ubc/ece/home/vl/grads/rukhsana/gsoc11/ffmpeg/libavcodec/libavcodec.a(allcodecs.o):
In function `avcodec_register_all':
/ubc/ece/home/vl/grads/rukhsana/gsoc11/ffmpeg/libavcodec/allcodecs.c:128:
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.




-- 
Rukhsana Ruby
Phd Student
Department of Electrical & Computer Engineering
The University of British Columbia
============================



More information about the ffmpeg-devel mailing list