I could fix it.
I attached the patch.

(-28163年01月-10日 20:59), Einar Rünkaru wrote:
> 2010/4/3 Aymeric O. <ejisn...@gmail.com>:
>> Hi,
>>
>> I'm trying to compile Cinelerra, but it fails at the filepng point.
>> I attached my build log for you to see what can be wrong.
>>
>> Thanks for your help,
>> Aymeric.
>>
>>
> 
> png_check_sig declaration is missing. It must be in /usr/include/png.h
> 
> You may need png-dev package or a different version of libpng.
> 
> Einar
> 
> 
> 

diff -ur cinelerra-2.1.cv20091210.old/cinelerra/filepng.C 
cinelerra-2.1.cv20091210/cinelerra/filepng.C
--- cinelerra-2.1.cv20091210.old/cinelerra/filepng.C    2009-12-05 
17:47:30.000000000 +0100
+++ cinelerra-2.1.cv20091210/cinelerra/filepng.C        2010-04-04 
15:12:35.834000001 +0200
@@ -56,7 +56,7 @@
                fread(test, 16, 1, stream);
                fclose(stream);
 
-               if(png_check_sig((unsigned char*)test, 8))
+               if(png_sig_cmp((unsigned char*)test, 0, 8))
                {
 //printf("FilePNG::check_sig 1\n");
                        return 1;
diff -ru cinelerra-2.1.cv20091210.old/plugins/shapewipe/shapewipe.C 
cinelerra-2.1.cv20091210/plugins/shapewipe/shapewipe.C
--- cinelerra-2.1.cv20091210.old/plugins/shapewipe/shapewipe.C  2009-12-05 
17:48:05.000000000 +0100
+++ cinelerra-2.1.cv20091210/plugins/shapewipe/shapewipe.C      2010-04-04 
17:20:55.961000001 +0200
@@ -386,7 +386,7 @@
        }
 
        png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING,
-               png_voidp_NULL, png_error_ptr_NULL, png_error_ptr_NULL);
+               NULL, NULL, NULL);
 
        if (!png_ptr)
        {
@@ -399,14 +399,14 @@
        info_ptr = png_create_info_struct(png_ptr);
        if (!info_ptr)
        {
-               png_destroy_read_struct(&png_ptr, png_infopp_NULL, 
png_infopp_NULL);
+               png_destroy_read_struct(&png_ptr, NULL, NULL);
                return 1;
        }
 
        end_info = png_create_info_struct(png_ptr);
        if (!end_info)
        {
-               png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
+               png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
                return 1;
        }
 

Attachment: 0xEF3AF04D.asc
Description: application/pgp-keys

Reply via email to