On Sat, 19 Nov 2005, Mumuletz wrote:

in primul si in primul rand va multumesc pentru raspuns. in al doilea rand doresc sa va spun ca.. la mine da eroare compilarea. adica merge ok configul si cand ii dau un make nu vrea. bag un log cu ceva erori pls poate ma ajuta careva.
nu ma pricep prea bine dar mi-a placut tare mult simplitatea acestuia.

am si libpng instalat si am si zlib-ul dar imi da 2 erori si zice ca nu le gaseste

unele scripturi configure au probleme la a gasi png-ul
Vezi daca nu ai vreo optiune la configure sa-i dai calea spre include-urile si librariile de png.

Alta solutie ar fi sa-i dai pe linia de comanda calea spre librarii
CFLAGS="-I/cale/spre/includeuri/png" LDFLAGS="-L/calea/spre/librarii/png -lpng -lz" ./configure
sau daca ai un libpngxy-config (unde xy sint cifre sau nimic)
CFLAGS=`libpngxy-config --cflags` LDFLAGS=`libpngxy-config --ldflags `\ ./configure


---------------eroare config----------------
[EMAIL PROTECTED] bwbar-1.2.2]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking if gcc accepts -Wall... yes
checking if gcc accepts -W... yes
checking if gcc accepts -Wpointer-arith... yes
checking if gcc accepts -Wbad-function-cast... yes
checking if gcc accepts -Wcast-equal... no
checking if gcc accepts -Wstrict-prototypes... yes
checking if gcc accepts -Wnested-externs... yes
checking if gcc accepts -Winline... yes
checking if gcc accepts -Wshadow... yes
checking if gcc accepts -Wcast-align... yes
checking if gcc accepts -pipe... yes
checking for library containing compress2... no

aici pare sa nu gaseasca zlib

checking for library containing png_init_io... no

... si linia asta poate fi consecinta celei de mai sus (png depinde de zlib)

checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
---------------eroare config----------------

si

------------------eroare-compilare-----------------------
[EMAIL PROTECTED] bwbar-1.2.2]# make
gcc -g -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wne sted-externs -Winline -Wshadow -Wcast-align -pipe -o bwbar bwbar.c
bwbar.c:32:17: png.h: No such file or directory
bwbar.c: In function `write_bar_graph':
bwbar.c:44: error: syntax error before "palette"
bwbar.c: At top level:
bwbar.c:56: error: syntax error before "png_ptr"
bwbar.c:56: warning: type defaults to `int' in declaration of `png_ptr'
bwbar.c:56: warning: initialization makes integer from pointer without a cast
bwbar.c:56: warning: data definition has no type or storage class
bwbar.c:57: error: syntax error before "info_ptr"
bwbar.c:57: warning: type defaults to `int' in declaration of `info_ptr'
bwbar.c:57: warning: initialization makes integer from pointer without a cast
bwbar.c:57: warning: data definition has no type or storage class
bwbar.c:58: error: syntax error before '*' token
bwbar.c:58: warning: type defaults to `int' in declaration of `border_row'
bwbar.c:58: warning: data definition has no type or storage class
bwbar.c:59: error: syntax error before '*' token
bwbar.c:59: warning: type defaults to `int' in declaration of `bar_row'
bwbar.c:59: warning: data definition has no type or storage class
bwbar.c:60: error: syntax error before '*' token
bwbar.c:60: warning: type defaults to `int' in declaration of `bp'
bwbar.c:60: warning: data definition has no type or storage class
bwbar.c:63: warning: type defaults to `int' in declaration of `bwidth'
bwbar.c:63: error: `width' undeclared here (not in a function)
bwbar.c:63: error: `border' undeclared here (not in a function)
bwbar.c:63: warning: data definition has no type or storage class
bwbar.c:64: warning: type defaults to `int' in declaration of `bheight'
bwbar.c:64: error: `height' undeclared here (not in a function)
bwbar.c:64: warning: data definition has no type or storage class
bwbar.c:66: warning: type defaults to `int' in declaration of `border_row'
bwbar.c:66: error: conflicting types for 'border_row'
bwbar.c:58: error: previous declaration of 'border_row' was here
bwbar.c:66: error: `png_byte' undeclared here (not in a function)
bwbar.c:66: warning: initialization makes integer from pointer without a cast
bwbar.c:66: error: initializer element is not constant
bwbar.c:66: warning: data definition has no type or storage class
bwbar.c:67: warning: type defaults to `int' in declaration of `bar_row'
bwbar.c:67: error: conflicting types for 'bar_row'
bwbar.c:59: error: previous declaration of 'bar_row' was here
bwbar.c:67: warning: initialization makes integer from pointer without a cast
bwbar.c:67: error: initializer element is not constant
bwbar.c:67: warning: data definition has no type or storage class
bwbar.c:69: error: syntax error before "if"
bwbar.c:72: warning: type defaults to `int' in declaration of `png_ptr'
bwbar.c:72: error: redefinition of 'png_ptr'
bwbar.c:56: error: previous definition of 'png_ptr' was here
bwbar.c:72: warning: implicit declaration of function `png_create_write_struct' bwbar.c:72: error: `PNG_LIBPNG_VER_STRING' undeclared here (not in a function)
bwbar.c:73: error: initializer element is not constant
bwbar.c:73: warning: data definition has no type or storage class
bwbar.c:75: error: syntax error before "if"
bwbar.c:78: warning: type defaults to `int' in declaration of `info_ptr'
bwbar.c:78: error: redefinition of 'info_ptr'
bwbar.c:57: error: previous definition of 'info_ptr' was here
bwbar.c:78: warning: implicit declaration of function `png_create_info_struct'
bwbar.c:78: error: initializer element is not constant
bwbar.c:78: warning: data definition has no type or storage class
bwbar.c:79: error: syntax error before "if"
bwbar.c:87: warning: type defaults to `int' in declaration of `png_init_io'
bwbar.c:87: warning: parameter names (without types) in function declaration
bwbar.c:87: warning: data definition has no type or storage class
bwbar.c:89: warning: type defaults to `int' in declaration of `png_set_compressi on_level'
bwbar.c:89: warning: parameter names (without types) in function declaration
bwbar.c:89: warning: data definition has no type or storage class
bwbar.c:92: error: syntax error before numeric constant
bwbar.c:94: warning: type defaults to `int' in declaration of `png_set_IHDR'
bwbar.c:94: warning: function declaration isn't a prototype
bwbar.c:94: warning: data definition has no type or storage class
bwbar.c:96: error: syntax error before numeric constant
bwbar.c:96: warning: type defaults to `int' in declaration of `png_set_PLTE'
bwbar.c:96: warning: function declaration isn't a prototype
bwbar.c:96: warning: data definition has no type or storage class
bwbar.c:98: warning: type defaults to `int' in declaration of `png_write_info'
bwbar.c:98: warning: parameter names (without types) in function declaration
bwbar.c:98: warning: data definition has no type or storage class
bwbar.c:100: warning: type defaults to `int' in declaration of `png_set_packing'
bwbar.c:100: warning: parameter names (without types) in function declaration
bwbar.c:100: warning: data definition has no type or storage class
bwbar.c:105: error: syntax error before numeric constant
bwbar.c:105: warning: type defaults to `int' in declaration of `memset'
bwbar.c:105: warning: function declaration isn't a prototype
bwbar.c:105: error: conflicting types for 'memset'
bwbar.c:105: error: conflicting types for 'memset'
bwbar.c:105: warning: data definition has no type or storage class
bwbar.c:108: warning: type defaults to `int' in declaration of `bp'
bwbar.c:108: error: conflicting types for 'bp'
bwbar.c:60: error: previous declaration of 'bp' was here
bwbar.c:108: error: initializer element is not constant
bwbar.c:108: warning: data definition has no type or storage class
bwbar.c:109: error: syntax error before "for"
bwbar.c:112: warning: type defaults to `int' in declaration of `spacer'
bwbar.c:112: warning: data definition has no type or storage class
bwbar.c:113: error: syntax error before "for"
bwbar.c:115: warning: type defaults to `int' in declaration of `fspacer'
bwbar.c:115: error: `spacers' undeclared here (not in a function)
bwbar.c:115: warning: data definition has no type or storage class
bwbar.c:116: error: syntax error before "if"
bwbar.c:123: error: syntax error before '++' token
bwbar.c:124: warning: type defaults to `int' in declaration of `spacer'
bwbar.c:124: error: redefinition of 'spacer'
bwbar.c:112: error: previous definition of 'spacer' was here
bwbar.c:124: error: initializer element is not constant
bwbar.c:124: warning: data definition has no type or storage class
bwbar.c:125: error: syntax error before '}' token
bwbar.c:139: warning: type defaults to `int' in declaration of `png_write_end'
bwbar.c:139: warning: parameter names (without types) in function declaration
bwbar.c:139: warning: data definition has no type or storage class
bwbar.c:140: warning: type defaults to `int' in declaration of `status'
bwbar.c:140: error: redefinition of 'status'
bwbar.c:61: error: previous definition of 'status' was here
bwbar.c:140: warning: data definition has no type or storage class
bwbar.c:142: error: syntax error before ':' token
bwbar.c:211: confused by earlier errors, bailing out
make: *** [bwbar] Error 1

------------------eroare-compilare-----------------------
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug


--

"frate, trezeste-te, aici nu-i razboiul stelelor"
                                Radu R. pe offtopic at lug.ro


_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui