c'est deja fais
avec urpmi, c'est pour installé les nouvelle source sa ? (j'y connais rien en linux)
sinon j'ai sa comme erreur:
[root@serveur fblogo-0.5.2]# make
gcc -o fblogo -g -O2 -W -Wall -DPNG_SETJMP_NOT_SUPPORTED -lpng -lz -lm fblogo.c
In file included from fblogo.c:15:
fblogo.h:31:17: png.h: No such file or directory
In file included from fblogo.c:15:
fblogo.h:70: error: parse error before '*' token
fblogo.h:71: error: parse error before "int"
fblogo.h:72: error: parse error before "png_ptr"
fblogo.h:76: error: parse error before "width_"
fblogo.h:76: warning: type defaults to `int' in declaration of `width_'
fblogo.h:76: warning: data definition has no type or storage class
fblogo.h:77: error: parse error before "height_"
fblogo.h:77: warning: type defaults to `int' in declaration of `height_'
fblogo.h:77: warning: data definition has no type or storage class
fblogo.h:80: error: parse error before "palette_"
fblogo.h:80: warning: type defaults to `int' in declaration of `palette_'
fblogo.h:80: warning: data definition has no type or storage class
fblogo.h:81: error: parse error before "image_data_"
fblogo.h:81: warning: type defaults to `int' in declaration of `image_data_'
fblogo.h:81: warning: data definition has no type or storage class
fblogo.c: In function `main':
fblogo.c:25: warning: assignment makes integer from pointer without a cast
fblogo.c:26: warning: assignment makes integer from pointer without a cast
fblogo.c: In function `cleanup':
fblogo.c:66: warning: comparison between pointer and integer
fblogo.c:67: warning: passing arg 1 of `free' makes pointer from integer without a cast
fblogo.c:69: warning: comparison between pointer and integer
fblogo.c:70: warning: passing arg 1 of `free' makes pointer from integer without a cast
fblogo.c: In function `displayNotice':
fblogo.c:96: warning: long int format, int arg (arg 3)
fblogo.c:97: warning: long int format, int arg (arg 3)
fblogo.c: In function `pngCheck':
fblogo.c:227: warning: implicit declaration of function `png_sig_cmp'
fblogo.c: At top level:
fblogo.c:236: error: parse error before '*' token
fblogo.c: In function `pngInit':
fblogo.c:239: error: `png_ptr' undeclared (first use in this function)
fblogo.c:239: error: (Each undeclared identifier is reported only once
fblogo.c:239: error: for each function it appears in.)
fblogo.c:239: warning: implicit declaration of function `png_create_read_struct'
fblogo.c:239: error: `PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
fblogo.c:239: error: `png_voidp' undeclared (first use in this function)
fblogo.c:246: error: `info_ptr' undeclared (first use in this function)
fblogo.c:246: warning: implicit declaration of function `png_create_info_struct'
fblogo.c:250: warning: implicit declaration of function `png_destroy_read_struct'
fblogo.c:250: error: `png_infopp' undeclared (first use in this function)
fblogo.c:255: warning: implicit declaration of function `png_init_io'
fblogo.c:256: warning: implicit declaration of function `png_set_sig_bytes'
fblogo.c:257: warning: implicit declaration of function `png_read_info'
fblogo.c: At top level:
fblogo.c:263: error: parse error before "png_ptr"
fblogo.c: In function `pngGetPalette':
fblogo.c:266: error: `png_colorp' undeclared (first use in this function)
fblogo.c:266: error: parse error before "png_palette"
fblogo.c:268: error: `color_type' undeclared (first use in this function)
fblogo.c:268: error: `PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
fblogo.c:268: error: `bit_depth' undeclared (first use in this function)
fblogo.c:274: warning: implicit declaration of function `png_set_packing'
fblogo.c:274: error: `png_ptr' undeclared (first use in this function)
fblogo.c:276: warning: implicit declaration of function `png_get_PLTE'
fblogo.c:276: error: `info_ptr' undeclared (first use in this function)
fblogo.c:276: error: `png_palette' undeclared (first use in this function)
fblogo.c:284: error: `png_color' undeclared (first use in this function)
fblogo.c:284: warning: assignment makes integer from pointer without a cast
fblogo.c:285: warning: passing arg 1 of `memcpy' makes pointer from integer without a cast
fblogo.c: At top level:
fblogo.c:292: error: parse error before "png_ptr"
fblogo.c: In function `pngReadImage':
fblogo.c:294: error: `png_uint_32' undeclared (first use in this function)
fblogo.c:294: error: parse error before "rowbytes"
fblogo.c:295: error: `png_bytepp' undeclared (first use in this function)
fblogo.c:299: error: `rowbytes' undeclared (first use in this function)
fblogo.c:299: warning: implicit declaration of function `png_get_rowbytes'
fblogo.c:299: error: `png_ptr' undeclared (first use in this function)
fblogo.c:299: error: `info_ptr' undeclared (first use in this function)
fblogo.c:301: error: `png_bytep' undeclared (first use in this function)
fblogo.c:301: error: parse error before "malloc"
fblogo.c:301: warning: empty body in an if-statement
fblogo.c:296: warning: unused variable `counter'
fblogo.c: At top level:
fblogo.c:306: error: parse error before "if"
fblogo.c:309: warning: type defaults to `int' in declaration of `free'
fblogo.c:309: warning: parameter names (without types) in function declaration
fblogo.c:309: error: conflicting types for `free'
/usr/include/stdlib.h:569: error: previous declaration of `free'
fblogo.c:309: warning: data definition has no type or storage class
fblogo.c:310: error: parse error before "return"
fblogo.c:318: warning: type defaults to `int' in declaration of `png_read_image'
fblogo.c:318: warning: parameter names (without types) in function declaration
fblogo.c:318: warning: data definition has no type or storage class
fblogo.c:320: warning: type defaults to `int' in declaration of `png_read_end'
fblogo.c:320: warning: parameter names (without types) in function declaration
fblogo.c:320: warning: data definition has no type or storage class
fblogo.c:321: warning: type defaults to `int' in declaration of `free'
fblogo.c:321: warning: parameter names (without types) in function declaration
fblogo.c:321: warning: data definition has no type or storage class
fblogo.c:322: error: parse error before "return"
fblogo.c: In function `readInputFile':
fblogo.c:334: error: `png_structp' undeclared (first use in this function)
fblogo.c:334: error: parse error before "png_ptr"
fblogo.c:335: error: `png_infop' undeclared (first use in this function)
fblogo.c:342: error: `png_ptr' undeclared (first use in this function)
fblogo.c:342: error: `info_ptr' undeclared (first use in this function)
fblogo.c:348: warning: implicit declaration of function `png_get_IHDR'
fblogo.c:362: error: `png_infopp' undeclared (first use in this function)
fblogo.c: In function `writeOutputFileHeader':
fblogo.c:374: warning: implicit declaration of function `time'
fblogo.c:375: warning: implicit declaration of function `strftime'
fblogo.c:375: warning: implicit declaration of function `localtime'
fblogo.c:396: warning: long int format, int arg (arg 3)
fblogo.c:397: warning: long int format, int arg (arg 3)
fblogo.c: In function `writeOutputFile':
fblogo.c:420: error: `png_bytep' undeclared (first use in this function)
fblogo.c:420: error: parse error before "pixel"
fblogo.c:437: error: subscripted value is neither array nor pointer
fblogo.c:449: error: subscripted value is neither array nor pointer
fblogo.c:462: error: subscripted value is neither array nor pointer
fblogo.c:470: error: `pixel' undeclared (first use in this function)
fblogo.c:472: warning: comparison between signed and unsigned
make: *** [fblogo] Erreur 1
[root@serveur fblogo-0.5.2]# urpmi libpng
Tout est déjà installé
[root@serveur fblogo-0.5.2]# make
gcc -o fblogo -g -O2 -W -Wall -DPNG_SETJMP_NOT_SUPPORTED -lpng -lz -lm fblogo.c
In file included from fblogo.c:15:
fblogo.h:31:17: png.h: No such file or directory
In file included from fblogo.c:15:
fblogo.h:70: error: parse error before '*' token
fblogo.h:71: error: parse error before "int"
fblogo.h:72: error: parse error before "png_ptr"
fblogo.h:76: error: parse error before "width_"
fblogo.h:76: warning: type defaults to `int' in declaration of `width_'
fblogo.h:76: warning: data definition has no type or storage class
fblogo.h:77: error: parse error before "height_"
fblogo.h:77: warning: type defaults to `int' in declaration of `height_'
fblogo.h:77: warning: data definition has no type or storage class
fblogo.h:80: error: parse error before "palette_"
fblogo.h:80: warning: type defaults to `int' in declaration of `palette_'
fblogo.h:80: warning: data definition has no type or storage class
fblogo.h:81: error: parse error before "image_data_"
fblogo.h:81: warning: type defaults to `int' in declaration of `image_data_'
fblogo.h:81: warning: data definition has no type or storage class
fblogo.c: In function `main':
fblogo.c:25: warning: assignment makes integer from pointer without a cast
fblogo.c:26: warning: assignment makes integer from pointer without a cast
fblogo.c: In function `cleanup':
fblogo.c:66: warning: comparison between pointer and integer
fblogo.c:67: warning: passing arg 1 of `free' makes pointer from integer without a cast
fblogo.c:69: warning: comparison between pointer and integer
fblogo.c:70: warning: passing arg 1 of `free' makes pointer from integer without a cast
fblogo.c: In function `displayNotice':
fblogo.c:96: warning: long int format, int arg (arg 3)
fblogo.c:97: warning: long int format, int arg (arg 3)
fblogo.c: In function `pngCheck':
fblogo.c:227: warning: implicit declaration of function `png_sig_cmp'
fblogo.c: At top level:
fblogo.c:236: error: parse error before '*' token
fblogo.c: In function `pngInit':
fblogo.c:239: error: `png_ptr' undeclared (first use in this function)
fblogo.c:239: error: (Each undeclared identifier is reported only once
fblogo.c:239: error: for each function it appears in.)
fblogo.c:239: warning: implicit declaration of function `png_create_read_struct'
fblogo.c:239: error: `PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
fblogo.c:239: error: `png_voidp' undeclared (first use in this function)
fblogo.c:246: error: `info_ptr' undeclared (first use in this function)
fblogo.c:246: warning: implicit declaration of function `png_create_info_struct'
fblogo.c:250: warning: implicit declaration of function `png_destroy_read_struct'
fblogo.c:250: error: `png_infopp' undeclared (first use in this function)
fblogo.c:255: warning: implicit declaration of function `png_init_io'
fblogo.c:256: warning: implicit declaration of function `png_set_sig_bytes'
fblogo.c:257: warning: implicit declaration of function `png_read_info'
fblogo.c: At top level:
fblogo.c:263: error: parse error before "png_ptr"
fblogo.c: In function `pngGetPalette':
fblogo.c:266: error: `png_colorp' undeclared (first use in this function)
fblogo.c:266: error: parse error before "png_palette"
fblogo.c:268: error: `color_type' undeclared (first use in this function)
fblogo.c:268: error: `PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
fblogo.c:268: error: `bit_depth' undeclared (first use in this function)
fblogo.c:274: warning: implicit declaration of function `png_set_packing'
fblogo.c:274: error: `png_ptr' undeclared (first use in this function)
fblogo.c:276: warning: implicit declaration of function `png_get_PLTE'
fblogo.c:276: error: `info_ptr' undeclared (first use in this function)
fblogo.c:276: error: `png_palette' undeclared (first use in this function)
fblogo.c:284: error: `png_color' undeclared (first use in this function)
fblogo.c:284: warning: assignment makes integer from pointer without a cast
fblogo.c:285: warning: passing arg 1 of `memcpy' makes pointer from integer without a cast
fblogo.c: At top level:
fblogo.c:292: error: parse error before "png_ptr"
fblogo.c: In function `pngReadImage':
fblogo.c:294: error: `png_uint_32' undeclared (first use in this function)
fblogo.c:294: error: parse error before "rowbytes"
fblogo.c:295: error: `png_bytepp' undeclared (first use in this function)
fblogo.c:299: error: `rowbytes' undeclared (first use in this function)
fblogo.c:299: warning: implicit declaration of function `png_get_rowbytes'
fblogo.c:299: error: `png_ptr' undeclared (first use in this function)
fblogo.c:299: error: `info_ptr' undeclared (first use in this function)
fblogo.c:301: error: `png_bytep' undeclared (first use in this function)
fblogo.c:301: error: parse error before "malloc"
fblogo.c:301: warning: empty body in an if-statement
fblogo.c:296: warning: unused variable `counter'
fblogo.c: At top level:
fblogo.c:306: error: parse error before "if"
fblogo.c:309: warning: type defaults to `int' in declaration of `free'
fblogo.c:309: warning: parameter names (without types) in function declaration
fblogo.c:309: error: conflicting types for `free'
/usr/include/stdlib.h:569: error: previous declaration of `free'
fblogo.c:309: warning: data definition has no type or storage class
fblogo.c:310: error: parse error before "return"
fblogo.c:318: warning: type defaults to `int' in declaration of `png_read_image'
fblogo.c:318: warning: parameter names (without types) in function declaration
fblogo.c:318: warning: data definition has no type or storage class
fblogo.c:320: warning: type defaults to `int' in declaration of `png_read_end'
fblogo.c:320: warning: parameter names (without types) in function declaration
fblogo.c:320: warning: data definition has no type or storage class
fblogo.c:321: warning: type defaults to `int' in declaration of `free'
fblogo.c:321: warning: parameter names (without types) in function declaration
fblogo.c:321: warning: data definition has no type or storage class
fblogo.c:322: error: parse error before "return"
fblogo.c: In function `readInputFile':
fblogo.c:334: error: `png_structp' undeclared (first use in this function)
fblogo.c:334: error: parse error before "png_ptr"
fblogo.c:335: error: `png_infop' undeclared (first use in this function)
fblogo.c:342: error: `png_ptr' undeclared (first use in this function)
fblogo.c:342: error: `info_ptr' undeclared (first use in this function)
fblogo.c:348: warning: implicit declaration of function `png_get_IHDR'
fblogo.c:362: error: `png_infopp' undeclared (first use in this function)
fblogo.c: In function `writeOutputFileHeader':
fblogo.c:374: warning: implicit declaration of function `time'
fblogo.c:375: warning: implicit declaration of function `strftime'
fblogo.c:375: warning: implicit declaration of function `localtime'
fblogo.c:396: warning: long int format, int arg (arg 3)
fblogo.c:397: warning: long int format, int arg (arg 3)
fblogo.c: In function `writeOutputFile':
fblogo.c:420: error: `png_bytep' undeclared (first use in this function)
fblogo.c:420: error: parse error before "pixel"
fblogo.c:437: error: subscripted value is neither array nor pointer
fblogo.c:449: error: subscripted value is neither array nor pointer
fblogo.c:462: error: subscripted value is neither array nor pointer
fblogo.c:470: error: `pixel' undeclared (first use in this function)
fblogo.c:472: warning: comparison between signed and unsigned
make: *** [fblogo] Erreur 1