Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 14

Discussione: Errore di compilazione

  1. #1
    Utente di HTML.it L'avatar di otium
    Registrato dal
    Nov 2003
    Messaggi
    154

    Errore di compilazione

    Sto compilando iscan-1.14.0 per usare lo scanner Epson Perfection 3170 su Ubuntu 5.04 amd64.

    Al comando
    # make
    mi risulta questa serie di errori che non so interpretare:

    root@asterix:/home/checco/Epson kowa/iscan-1.14.0 # make
    making all in libltdl
    make[1]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/libltdl'
    make all-am
    make[2]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/libltdl'
    /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c - o ltdl.lo ltdl.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -fPIC -DPIC -o .libs/ltdl.o
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -o ltdl.o >/dev/null 2>&1
    /bin/sh ./libtool --mode=link gcc -g -O2 -o libltdlc.la ltdl.lo -ldl
    rm -fr .libs/libltdlc.a .libs/libltdlc.la
    ar cru .libs/libltdlc.a .libs/ltdl.o
    ranlib .libs/libltdlc.a
    creating libltdlc.la
    (cd .libs && rm -f libltdlc.la && ln -s ../libltdlc.la libltdlc.la)
    make[2]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/libltdl'
    make[1]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/libltdl'
    making all in include
    make[1]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/include'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/include'
    making all in lib
    make[1]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/lib'
    g++ -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -DPATH_SANE_CONFIG _DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 imgstream.cc
    In file included from imgstream.cc:33:
    imgstream.hh:42:18: ltdl.h: No such file or directory
    In file included from imgstream.cc:33:
    imgstream.hh:111: error: ISO C++ forbids declaration of `lt_dlhandle' with no
    type
    imgstream.hh:111: error: parse error before `;' token
    imgstream.hh:112: error: ISO C++ forbids declaration of `lt_ptr' with no type
    imgstream.hh:112: error: parse error before `;' token
    imgstream.hh:114: error: ISO C++ forbids declaration of `dl_handle' with no
    type
    imgstream.hh:114: error: parse error before `(' token
    imgstream.hh:116: error: ISO C++ forbids declaration of `dl_ptr' with no type
    imgstream.hh:116: error: parse error before `(' token
    imgstream.hh:117: error: `dl_handle' was not declared in this scope
    imgstream.hh:117: error: parse error before `)' token
    imgstream.hh:120: error: ISO C++ forbids declaration of `dl_handle' with no
    type
    imgstream.hh:120: error: declaration of `int iscan::imgstream::dl_handle'
    imgstream.hh:114: error: conflicts with previous declaration `int
    iscan::imgstream::dl_handle'
    imgstream.hh:120: error: parse error before `(' token
    imgstream.cc:158: error: syntax error before `::' token
    imgstream.cc:164: error: parse error before `=' token
    imgstream.cc:167: error: ISO C++ forbids declaration of `lib' with no type
    imgstream.cc:167: error: `int iscan::imgstream::lib' is not a static member of
    `class iscan::imgstream'
    imgstream.cc:167: error: `libname' was not declared in this scope
    imgstream.cc:167: error: `find_dlopen' was not declared in this scope
    imgstream.cc:168: error: parse error before `if'
    imgstream.cc:177: error: syntax error before `::' token
    imgstream.cc:183: error: `dl_handle' was not declared in this scope
    imgstream.cc:183: error: parse error before `)' token
    imgstream.cc: In static member function `static int
    iscan::imgstream::dlclose(...)':
    imgstream.cc:185: error: `lib' undeclared (first use this function)
    imgstream.cc:185: error: (Each undeclared identifier is reported only once for
    each function it appears in.)
    imgstream.cc:185: error: `lt_dlclose' undeclared (first use this function)
    imgstream.cc: At global scope:
    imgstream.cc:213: error: syntax error before `::' token
    imgstream.cc:217: error: parse error before `=' token
    imgstream.cc:221: error: ISO C++ forbids declaration of `name' with no type
    imgstream.cc:221: error: `int iscan::imgstream::name' is not a static member of
    `class iscan::imgstream'
    imgstream.cc:221: error: `name' was not declared in this scope
    imgstream.cc:221: error: `libname' was not declared in this scope
    imgstream.cc:222: error: ISO C++ forbids declaration of `name' with no type
    imgstream.cc:222: error: `int iscan::imgstream::name' is not a static member of
    `class iscan::imgstream'
    imgstream.cc:222: error: `name' was not declared in this scope
    imgstream.cc:224: error: ISO C++ forbids declaration of `_libname' with no type
    imgstream.cc:224: error: conflicting types for `int iscan::imgstream::_libname'
    imgstream.hh:121: error: previous declaration as `const
    char*iscan::imgstream::_libname'
    imgstream.cc:224: error: `name' was not declared in this scope
    imgstream.cc:226: error: parse error before `}' token
    imgstream.cc:231: error: `char*iscan::imgstream:athz' is not a static member
    of `class iscan::imgstream'
    imgstream.cc:232: error: `size_t iscan::imgstream::length' is not a static
    member of `class iscan::imgstream'
    imgstream.cc:233: error: `bool iscan::imgstream::is_pathz_ok' is not a static
    member of `class iscan::imgstream'
    imgstream.cc:234: error: parse error before `{' token
    imgstream.cc:238: error: `const char*iscan::imgstream:ath' is not a static
    member of `class iscan::imgstream'
    imgstream.cc:240: error: parse error before `if'
    imgstream.cc:263: error: `int iscan::imgstream::count' is not a static member
    of `class iscan::imgstream'
    imgstream.cc:263: error: `dir_name' was not declared in this scope
    imgstream.cc:263: error: `match' was not declared in this scope
    imgstream.cc:265: error: parse error before `for'
    imgstream.cc:272: error: `abs_file_name' was not declared in this scope
    imgstream.cc:272: error: `dir_name' was not declared in this scope
    imgstream.cc:272: error: ISO C++ forbids declaration of `strcpy' with no type
    imgstream.cc:272: error: `int iscan::imgstream::strcpy' is not a static member
    of `class iscan::imgstream'
    imgstream.cc:272: error: initializer list being treated as compound expression
    imgstream.cc:273: error: `abs_file_name' was not declared in this scope
    imgstream.cc:273: error: ISO C++ forbids declaration of `strcat' with no type
    imgstream.cc:273: error: `int iscan::imgstream::strcat' is not a static member
    of `class iscan::imgstream'
    imgstream.cc:273: error: initializer list being treated as compound expression
    imgstream.cc:274: error: `abs_file_name' was not declared in this scope
    imgstream.cc:274: error: `file_name' was not declared in this scope
    imgstream.cc:274: error: ISO C++ forbids declaration of `strcat' with no type
    imgstream.cc:274: error: `int iscan::imgstream::strcat' is not a static member
    of `class iscan::imgstream'
    imgstream.cc:274: error: initializer list being treated as compound expression
    imgstream.cc:276: error: ISO C++ forbids declaration of `result' with no type
    imgstream.cc:276: error: `int iscan::imgstream::result' is not a static member
    of `class iscan::imgstream'
    imgstream.cc:276: error: `abs_file_name' was not declared in this scope
    imgstream.cc:276: error: `lt_dlopen' was not declared in this scope
    imgstream.cc:277: error: parse error before `delete'
    imgstream.cc:283: error: `match' was not declared in this scope
    imgstream.cc:283: error: ISO C++ forbids declaration of `free' with no type
    imgstream.cc:283: error: `int iscan::imgstream::free' is not a static member of
    `class iscan::imgstream'
    imgstream.cc:284: error: parse error before `}' token
    imgstream.cc:288: error: `pathz' was not declared in this scope
    imgstream.cc:288: error: ISO C++ forbids declaration of `free' with no type
    imgstream.cc:288: error: `int iscan::imgstream::free' is not a static member of
    `class iscan::imgstream'
    imgstream.cc:290: error: parse error before `return'
    imgstream.cc:299: error: duplicate initialization of iscan::imgstream::_libname
    imgstream.cc:299: error: conflicting types for `const
    char*iscan::imgstream::_libname'
    imgstream.cc:224: error: previous declaration as `int
    iscan::imgstream::_libname'
    imgstream.cc:307: confused by earlier errors, bailing out
    make[1]: *** [imgstream.o] Error 1
    make[1]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/lib'
    make: *** [all-recursive] Error 1
    Pilota virtuale ACVPadova

  2. #2
    prova con apt-get install libtool e poi riprova a compilare.

    ciao

  3. #3
    Utente di HTML.it L'avatar di otium
    Registrato dal
    Nov 2003
    Messaggi
    154
    Fatto, ma il risultato non cambia
    Pilota virtuale ACVPadova

  4. #4
    prova anche: apt-get install libltdl3 libltdl3-dev
    e ricompila.

  5. #5
    Utente di HTML.it L'avatar di otium
    Registrato dal
    Nov 2003
    Messaggi
    154

    Progresso!

    Ora nuovi errori (divido in due parti perché troppo lungo)

    root@asterix:/home/checco/Epson kowa/iscan-1.14.0 # make
    making all in libltdl
    make[1]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/libltdl'
    make all-am
    make[2]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/libltdl'
    /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c - o ltdl.lo ltdl.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -fPIC -DPIC -o .libs/ltdl.o
    gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -o ltdl.o >/dev/null 2>&1
    /bin/sh ./libtool --mode=link gcc -g -O2 -o libltdlc.la ltdl.lo -ldl
    rm -fr .libs/libltdlc.a .libs/libltdlc.la
    ar cru .libs/libltdlc.a .libs/ltdl.o
    ranlib .libs/libltdlc.a
    creating libltdlc.la
    (cd .libs && rm -f libltdlc.la && ln -s ../libltdlc.la libltdlc.la)
    make[2]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/libltdl'
    make[1]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/libltdl'
    making all in include
    make[1]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/include'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/include'
    making all in lib
    make[1]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/lib'
    g++ -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -DPATH_SANE_CONFIG _DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 imgstream.cc
    g++ -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -DPATH_SANE_CONFIG _DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 pnmstream.cc
    g++ -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -DPATH_SANE_CONFIG _DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 pngstream.cc
    In file included from pngstream.cc:29:
    pngstream.hh:39:17: png.h: No such file or directory
    In file included from pngstream.cc:29:
    pngstream.hh:61: error: 'png_structp' is used as a type, but is not defined as
    a type.
    pngstream.hh:62: error: 'png_infop' is used as a type, but is not defined as a
    type.
    pngstream.hh:72: error: `access_version_number_f' was not declared in this
    scope
    pngstream.hh:72: error: variable declaration is not allowed here
    pngstream.hh:72: error: 'access_version_number_f' is used as a type, but is not
    defined as a type.
    pngstream.hh:74: error: `create_write_struct_f' was not declared in this scope
    pngstream.hh:74: error: `png_const_charp' was not declared in this scope
    pngstream.hh:74: error: `png_voidp' was not declared in this scope
    pngstream.hh:74: error: `png_error_ptr' was not declared in this scope
    pngstream.hh:74: error: `png_error_ptr' was not declared in this scope
    pngstream.hh:74: error: variable declaration is not allowed here
    pngstream.hh:74: error: 'create_write_struct_f' is used as a type, but is not
    defined as a type.
    pngstream.hh:76: error: `create_info_struct_f' was not declared in this scope
    pngstream.hh:76: error: `png_structp' was not declared in this scope
    pngstream.hh:76: error: variable declaration is not allowed here
    pngstream.hh:76: error: 'create_info_struct_f' is used as a type, but is not
    defined as a type.
    pngstream.hh:78: error: `png_structpp' was not declared in this scope
    pngstream.hh:78: error: `png_infopp' was not declared in this scope
    pngstream.hh:78: error: variable declaration is not allowed here
    pngstream.hh:78: error: 'destroy_write_struct_f' is used as a type, but is not
    defined as a type.
    pngstream.hh:80: error: `png_structp' was not declared in this scope
    pngstream.hh:80: error: parse error before `*' token
    pngstream.hh:82: error: `png_structp' was not declared in this scope
    pngstream.hh:82: error: `png_infop' was not declared in this scope
    pngstream.hh:82: error: `png_uint_32' was not declared in this scope
    pngstream.hh:82: error: `png_uint_32' was not declared in this scope
    pngstream.hh:82: error: parse error before `,' token
    pngstream.hh:82: error: variable declaration is not allowed here
    pngstream.hh:82: error: 'set_IHDR_f' is used as a type, but is not defined as a
    type.
    pngstream.hh:85: error: `png_structp' was not declared in this scope
    pngstream.hh:85: error: `png_infop' was not declared in this scope
    pngstream.hh:85: error: `png_uint_32' was not declared in this scope
    pngstream.hh:85: error: `png_uint_32' was not declared in this scope
    pngstream.hh:85: error: parse error before `)' token
    pngstream.hh:85: error: variable declaration is not allowed here
    pngstream.hh:85: error: 'set_pHYs_f' is used as a type, but is not defined as a
    type.
    pngstream.hh:87: error: `png_structp' was not declared in this scope
    pngstream.hh:87: error: variable declaration is not allowed here
    pngstream.hh:87: error: 'set_invert_mono_f' is used as a type, but is not
    defined as a type.
    pngstream.hh:88: error: `png_structp' was not declared in this scope
    pngstream.hh:88: error: `png_infop' was not declared in this scope
    pngstream.hh:88: error: variable declaration is not allowed here
    pngstream.hh:88: error: 'write_info_f' is used as a type, but is not defined as
    a type.
    Pilota virtuale ACVPadova

  6. #6
    Utente di HTML.it L'avatar di otium
    Registrato dal
    Nov 2003
    Messaggi
    154
    (Continua)

    pngstream.hh:90: error: `png_structp' was not declared in this scope
    pngstream.hh:90: error: `png_bytep' was not declared in this scope
    pngstream.hh:90: error: variable declaration is not allowed here
    pngstream.hh:90: error: 'write_row_f' is used as a type, but is not defined as
    a type.
    pngstream.hh:92: error: `png_structp' was not declared in this scope
    pngstream.hh:92: error: variable declaration is not allowed here
    pngstream.hh:92: error: 'write_flush_f' is used as a type, but is not defined
    as a type.
    pngstream.hh:94: error: `png_structp' was not declared in this scope
    pngstream.hh:94: error: `png_infop' was not declared in this scope
    pngstream.hh:94: error: variable declaration is not allowed here
    pngstream.hh:94: error: 'write_end_f' is used as a type, but is not defined as
    a type.
    pngstream.hh:99: error: ISO C++ forbids declaration of `png_const_charp' with
    no type
    pngstream.hh:99: error: parse error before `;' token
    pngstream.hh:120: error: `png_structp' was not declared in this scope
    pngstream.hh:120: error: `png_infop' was not declared in this scope
    pngstream.hh:120: error: invalid data member initialization
    pngstream.hh:120: error: (use `=' to initialize static data members)
    pngstream.hh:120: error: variable or field `set_error_handler' declared void
    pngstream.hh:120: error: `set_error_handler' is neither function nor member
    function; cannot be declared friend
    pngstream.hh:131: error: `png_structp' was not declared in this scope
    pngstream.hh:131: error: parse error before `,' token
    pngstream.hh: In function `void iscan::set_error_handler(...)':
    pngstream.hh:133: error: `png' undeclared (first use this function)
    pngstream.hh:133: error: (Each undeclared identifier is reported only once for
    each function it appears in.)
    pngstream.hh:133: error: `png_jmpbuf' undeclared (first use this function)
    pngstream.hh:133: error: `setjmp' undeclared (first use this function)
    pngstream.hh error: `iscan:ngstream:ng_lib_handle*iscan:ngstream::lib
    ' is private
    pngstream.hh:134: error: within this context
    pngstream.hh:134: error: `info' undeclared (first use this function)
    pngstream.cc: At global scope:
    pngstream.cc:35: error: syntax error before `::' token
    pngstream.cc: In destructor `virtual iscan:ngstream::~pngstream()':
    pngstream.cc:51: error: `_png' undeclared (first use this function)
    pngstream.cc:51: error: `_info' undeclared (first use this function)
    pngstream.cc:53: error: `write_flush' undeclared (first use this function)
    pngstream.cc:55: error: `write_end' undeclared (first use this function)
    pngstream.cc:57: error: `destroy_write_struct' undeclared (first use this
    function)
    pngstream.cc: In member function `void iscan:ngstream::init()':
    pngstream.cc:67: error: `version_string' undeclared (first use this function)
    pngstream.cc:68: error: `create_write_struct' undeclared (first use this
    function)
    pngstream.cc:73: error: `create_info_struct' undeclared (first use this
    function)
    pngstream.cc:75: error: `destroy_write_struct' undeclared (first use this
    function)
    pngstream.cc: In static member function `static bool
    iscan:ngstream::is_usable()':
    pngstream.cc:109: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'access_version_number'
    pngstream.cc:109: error: `access_version_number_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:109: error: parse error before `::' token
    pngstream.cc:110: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'create_write_struct'
    pngstream.cc:110: error: `create_write_struct_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:110: error: parse error before `::' token
    pngstream.cc:111: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'create_info_struct'
    pngstream.cc:111: error: `create_info_struct_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:111: error: parse error before `::' token
    pngstream.cc:112: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'destroy_write_struct'
    pngstream.cc:112: error: `destroy_write_struct_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:112: error: parse error before `::' token
    pngstream.cc:114: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'set_IHDR'
    pngstream.cc:114: error: `set_IHDR_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:114: error: parse error before `::' token
    pngstream.cc:115: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'set_pHYs'
    pngstream.cc:115: error: `set_pHYs_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:115: error: parse error before `::' token
    pngstream.cc:116: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'set_invert_mono'
    pngstream.cc:116: error: `set_invert_mono_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:116: error: parse error before `::' token
    pngstream.cc:117: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'write_info'
    pngstream.cc:117: error: `write_info_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:117: error: parse error before `::' token
    pngstream.cc:118: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'write_row'
    pngstream.cc:118: error: `write_row_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:118: error: parse error before `::' token
    pngstream.cc:119: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'write_flush'
    pngstream.cc:119: error: `write_flush_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:119: error: parse error before `::' token
    pngstream.cc:120: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'write_end'
    pngstream.cc:120: error: `write_end_f' is not a member of type `
    iscan:ngstream:ng_lib_handle'
    pngstream.cc:120: error: parse error before `::' token
    pngstream.cc:123: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'access_version_number'
    pngstream.cc:124: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'create_write_struct'
    pngstream.cc:125: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'create_info_struct'
    pngstream.cc:126: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'destroy_write_struct'
    pngstream.cc:128: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'set_IHDR'
    pngstream.cc:129: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'set_pHYs'
    pngstream.cc:130: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'set_invert_mono'
    pngstream.cc:131: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'write_info'
    pngstream.cc:132: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'write_row'
    pngstream.cc:133: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'write_flush'
    pngstream.cc:133: error: 'struct iscan:ngstream:ng_lib_handle' has no
    member named 'write_end'
    pngstream.cc:134: error: `PNG_LIBPNG_VER' undeclared (first use this function)
    pngstream.cc:134: error: `access_version_number' undeclared (first use this
    function)
    pngstream.cc: In member function `virtual iscan::imgstream&
    iscan:ngstream::write(const char*, long int)':
    pngstream.cc:154: error: `png_byte' undeclared (first use this function)
    pngstream.cc:154: error: parse error before `)' token
    pngstream.cc: In member function `virtual iscan::imgstream&
    iscan:ngstream::colour(iscan::colour_space)':
    pngstream.cc:176: error: `PNG_COLOR_TYPE_GRAY' undeclared (first use this
    function)
    pngstream.cc:178: error: `set_invert_mono' undeclared (first use this function)
    pngstream.cc:184: error: `PNG_COLOR_TYPE_RGB' undeclared (first use this
    function)
    pngstream.cc: In member function `iscan::imgstream&
    iscan:ngstream::write_header()':
    pngstream.cc:201: error: `PNG_INTERLACE_NONE' undeclared (first use this
    function)
    pngstream.cc:202: error: `PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use
    this function)
    pngstream.cc:203: error: `PNG_FILTER_TYPE_DEFAULT' undeclared (first use this
    function)
    pngstream.cc:203: error: `set_IHDR' undeclared (first use this function)
    pngstream.cc:205: error: `PNG_RESOLUTION_METER' undeclared (first use this
    function)
    pngstream.cc:205: error: `set_pHYs' undeclared (first use this function)
    pngstream.cc:207: error: `write_info' undeclared (first use this function)
    make[1]: *** [pngstream.o] Error 1
    make[1]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/lib'
    make: *** [all-recursive] Error 1
    Pilota virtuale ACVPadova

  7. #7
    un consiglio, leggi sempre i mess di errore, si scoprono le soluzioni

    apt-get install libpng12-0 libpng12-dev

    codice:
    In file included from pngstream.cc:29:
    pngstream.hh:39:17: png.h: No such file or directory
    ciao

  8. #8
    Utente di HTML.it L'avatar di otium
    Registrato dal
    Nov 2003
    Messaggi
    154
    Le avevo già installate.
    Nel frattempo ho installato le libsdl per far funzionare la webcam. La compilazione adesso si ferma con questo errore:

    making all in frontend
    make[1]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/frontend'
    g++ -c -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I. -I../incl ude -I../include -I../intl -I../include -I../include/sane -I../include/sane -I.. /non-free -I/usr/local/include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DUSE_FILE_FO RMAT_REWRITE -g -O2 file-selector.cc
    In file included from file-selector.cc:27:
    file-selector.h:32:21: gtk/gtk.h: No such file or directory
    In file included from file-selector.cc:27:
    file-selector.h:43: error: `GtkWidget' was not declared in this scope

    E poi continua con altri errori relativi a gtk.
    Ho libgtk1.2 e libgtk2.0 installate, quindi cosa potrebbe mancare?
    Pilota virtuale ACVPadova

  9. #9
    tu hai installato le librerie e non il pacchetto devel delle librerie, libgtk1.2-dev o libgtk2.0-dev

  10. #10
    Utente di HTML.it L'avatar di otium
    Registrato dal
    Nov 2003
    Messaggi
    154
    Ho installato anche i -dev ed ora si ferma così

    making all in frontend
    make[1]: Entering directory `/home/checco/Epson kowa/iscan-1.14.0/frontend'
    g++ -c -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I. -I../incl ude -I../include -I../intl -I../include -I../include/sane -I../include/sane -I.. /non-free -I/usr/local/include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DUSE_FILE_FO RMAT_REWRITE -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/gl ib/include file-selector.cc
    g++ -c -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I. -I../incl ude -I../include -I../intl -I../include -I../include/sane -I../include/sane -I.. /non-free -I/usr/local/include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DUSE_FILE_FO RMAT_REWRITE -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/gl ib/include pisa_aleart_dialog.cc
    g++ -c -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I. -I../incl ude -I../include -I../intl -I../include -I../include/sane -I../include/sane -I.. /non-free -I/usr/local/include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DUSE_FILE_FO RMAT_REWRITE -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/gl ib/include pisa_change_unit.cc
    g++ -c -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I. -I../incl ude -I../include -I../intl -I../include -I../include/sane -I../include/sane -I.. /non-free -I/usr/local/include -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DUSE_FILE_FO RMAT_REWRITE -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/gl ib/include pisa_configuration.cc
    In file included from pisa_settings.h:34,
    from pisa_view_manager.h:36,
    from pisa_configuration.cc:37:
    pisa_structs.h:40:23: gdk_imlib.h: No such file or directory
    make[1]: *** [pisa_configuration.o] Error 1
    make[1]: Leaving directory `/home/checco/Epson kowa/iscan-1.14.0/frontend'
    make: *** [all-recursive] Error 1
    Pilota virtuale ACVPadova

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.