[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

qt problems ...



I am trying to upgrade my woody KDE to 3.0.4, Ive done this in the past with 
red hat AOK but am having problems with debian.

My KDE is in /opt/kde3
My qt is in /opt/kde3/qt

I setup my variables with the following script ...

#! /bin/sh

KDEDIR=/opt/kde3
QTDIR=$KDEDIR/qt
PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH

export KDEDIR QTDIR PATH MANPATH LD_LIBRARY_PATH

I then moved to the qt directory
did a  ....

./configure -system-zlib -qt-gif -system-libpng \
-system-libjpeg -plugin-imgfmt-mng -thread -no-stl \
-no-xinerama -no-g++-exceptions

All OK so far ....
Then did a make
I got the following .....


debian:/opt/kde3/qt# make
make[1]: Entering directory `/opt/kde3/qt'
cd qmake && make
make[2]: Entering directory `/opt/kde3/qt/qmake'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/kde3/qt/qmake'
cd src/moc && make
make[2]: Entering directory `/opt/kde3/qt/src/moc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory `/opt/kde3/qt/src/moc'
cd src && make
make[2]: Entering directory `/opt/kde3/qt/src'
g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED 
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_NIS 
-DQT_NO_XINERAMA -DQT_NO_XFTFREETYPE -DQT_NO_REMOTE -DQT_NO_IMAGEIO_MNG 
-DQT_NO_IMAGEIO_JPEG -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_AQUA 
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_COMPACT 
-I/opt/kde3/qt/include -I/usr/X11R6/include -I.moc/release-mt/ 
-I/opt/kde3/qt/mkspecs/linux-g++ -o .obj/release-mt/qpngio.o kernel/qpngio.cpp
kernel/qpngio.cpp:45: png.h: No such file or directory
kernel/qpngio.cpp:59: `png_structp' was not declared in this scope
kernel/qpngio.cpp:59: parse error before `,'
kernel/qpngio.cpp: In function `void iod_read_fn(...)':
kernel/qpngio.cpp:61: `png_ptr' undeclared (first use this function)
kernel/qpngio.cpp:61: (Each undeclared identifier is reported only once
kernel/qpngio.cpp:61: for each function it appears in.)
kernel/qpngio.cpp:61: implicit declaration of function `int 
png_get_io_ptr(...)'kernel/qpngio.cpp:64: `length' undeclared (first use this 
function)
kernel/qpngio.cpp:65: `data' undeclared (first use this function)
kernel/qpngio.cpp:67: implicit declaration of function `int png_error(...)'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:76: parse error before `,'
kernel/qpngio.cpp:90: parse error before `)'
kernel/qpngio.cpp:103: type specifier omitted for parameter
kernel/qpngio.cpp:103: parse error before `,'
kernel/qpngio.cpp: In function `void setup_qt(...)':
kernel/qpngio.cpp:105: `screen_gamma' undeclared (first use this function)
kernel/qpngio.cpp:105: `info_ptr' undeclared (first use this function)
kernel/qpngio.cpp:105: `PNG_INFO_gAMA' undeclared (first use this function)
kernel/qpngio.cpp:105: implicit declaration of function `int 
png_get_valid(...)'kernel/qpngio.cpp:107: implicit declaration of function 
`int png_get_gAMA(...)' kernel/qpngio.cpp:108: implicit declaration of 
function `int png_set_gamma(...)'kernel/qpngio.cpp:111: `png_uint_32' 
undeclared (first use this function)
kernel/qpngio.cpp:111: parse error before `;'
kernel/qpngio.cpp:115: `width' undeclared (first use this function)
kernel/qpngio.cpp:115: `height' undeclared (first use this function)
kernel/qpngio.cpp:116: implicit declaration of function `int 
png_get_IHDR(...)' kernel/qpngio.cpp:118: `PNG_COLOR_TYPE_GRAY' undeclared 
(first use this function)
kernel/qpngio.cpp:121: implicit declaration of function `int 
png_set_invert_mono(...)'
kernel/qpngio.cpp:122: implicit declaration of function `int 
png_read_update_info(...)'
kernel/qpngio.cpp:123: `image' undeclared (first use this function)
kernel/qpngio.cpp:128: implicit declaration of function `int 
png_set_strip_16(...)'
kernel/qpngio.cpp:130: implicit declaration of function `int 
png_set_packing(...)'
kernel/qpngio.cpp:138: `PNG_INFO_tRNS' undeclared (first use this function)
kernel/qpngio.cpp:149: `PNG_COLOR_TYPE_PALETTE' undeclared (first use this 
function)
kernel/qpngio.cpp:149: `PNG_INFO_PLTE' undeclared (first use this function)
kernel/qpngio.cpp:189: implicit declaration of function `int 
png_set_expand(...)'
kernel/qpngio.cpp:191: `PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use this 
function)
kernel/qpngio.cpp:192: implicit declaration of function `int 
png_set_gray_to_rgb(...)'
kernel/qpngio.cpp:197: `PNG_COLOR_MASK_ALPHA' undeclared (first use this 
function)
kernel/qpngio.cpp:201: `PNG_FILLER_BEFORE' undeclared (first use this 
function) kernel/qpngio.cpp:201: `PNG_FILLER_AFTER' undeclared (first use 
this function)
kernel/qpngio.cpp:201: implicit declaration of function `int 
png_set_filler(...)'
kernel/qpngio.cpp:208: implicit declaration of function `int 
png_set_swap_alpha(...)'
kernel/qpngio.cpp:216: implicit declaration of function `int png_set_bgr(...)'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:224: `png_structp' was not declared in this scope
kernel/qpngio.cpp:224: `png_const_charp' was not declared in this scope
kernel/qpngio.cpp:224: parse error before `)'
kernel/qpngio.cpp: In function `void qt_png_warning(...)':
kernel/qpngio.cpp:226: `message' undeclared (first use this function)
kernel/qpngio.cpp: In function `void read_png_image(QImageIO *)':
kernel/qpngio.cpp:237: parse error before `;'
kernel/qpngio.cpp:239: `png_infop' undeclared (first use this function)
kernel/qpngio.cpp:240: `png_bytep' undeclared (first use this function)
kernel/qpngio.cpp:240: `row_pointers' undeclared (first use this function)
kernel/qpngio.cpp:242: `PNG_LIBPNG_VER_STRING' undeclared (first use this 
function)
kernel/qpngio.cpp:242: implicit declaration of function `int 
png_create_read_struct(...)'
kernel/qpngio.cpp:248: implicit declaration of function `int 
png_set_error_fn(...)'
kernel/qpngio.cpp:250: implicit declaration of function `int 
png_create_info_struct(...)'
kernel/qpngio.cpp:252: implicit declaration of function `int 
png_destroy_read_struct(...)'
kernel/qpngio.cpp:257: `end_info' undeclared (first use this function)
kernel/qpngio.cpp:264: implicit declaration of function `int setjmp(...)'
kernel/qpngio.cpp:270: implicit declaration of function `int 
png_set_read_fn(...)'
kernel/qpngio.cpp:271: implicit declaration of function `int 
png_read_info(...)'kernel/qpngio.cpp:274: warning: cannot pass objects of 
type `QImage' through `...'
kernel/qpngio.cpp:277: parse error before `;'
kernel/qpngio.cpp:285: parse error before `['
kernel/qpngio.cpp:291: implicit declaration of function `int 
png_read_image(...)'
kernel/qpngio.cpp:311: implicit declaration of function `int 
png_get_x_pixels_per_meter(...)'
kernel/qpngio.cpp:312: implicit declaration of function `int 
png_get_y_pixels_per_meter(...)'
kernel/qpngio.cpp:318: implicit declaration of function `int 
png_read_end(...)' kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:360: type specifier omitted for parameter
kernel/qpngio.cpp:360: parse error before `,'
kernel/qpngio.cpp: In function `void set_text(...)':
kernel/qpngio.cpp:364: `png_textp' undeclared (first use this function)
kernel/qpngio.cpp:364: parse error before `='
kernel/qpngio.cpp:370: `short_not_long' undeclared (first use this function)
kernel/qpngio.cpp:372: `text_ptr' undeclared (first use this function)
kernel/qpngio.cpp:372: `PNG_TEXT_COMPRESSION_NONE' undeclared (first use this 
function)
kernel/qpngio.cpp:374: `PNG_TEXT_COMPRESSION_zTXt' undeclared (first use this 
function)
kernel/qpngio.cpp:375: `png_charp' undeclared (first use this function)
kernel/qpngio.cpp:376: parse error before `.'
kernel/qpngio.cpp:381: implicit declaration of function `int 
png_set_text(...)' kernel/qpngio.cpp: In method `bool 
QPNGImageWriter::writeImage(const QImage &, int, int, int)':
kernel/qpngio.cpp:400: parse error before `;'
kernel/qpngio.cpp:404: implicit declaration of function `int 
png_create_write_struct(...)'
kernel/qpngio.cpp:413: implicit declaration of function `int 
png_destroy_write_struct(...)'
kernel/qpngio.cpp:429: implicit declaration of function `int 
png_set_compression_level(...)'
kernel/qpngio.cpp:433: implicit declaration of function `int 
png_set_gAMA(...)' kernel/qpngio.cpp:436: implicit declaration of function 
`int png_set_write_fn(...)'
kernel/qpngio.cpp:448: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use this 
function)
kernel/qpngio.cpp:449: `PNG_COLOR_TYPE_RGB' undeclared (first use this 
function)kernel/qpngio.cpp:449: implicit declaration of function `int 
png_set_IHDR(...)' kernel/qpngio.cpp:458: implicit declaration of function 
`int png_set_packswap(...)'
kernel/qpngio.cpp:460: `png_colorp' undeclared (first use this function)
kernel/qpngio.cpp:460: parse error before `='
kernel/qpngio.cpp:461: `png_bytep' undeclared (first use this function)
kernel/qpngio.cpp:465: `palette' undeclared (first use this function)
kernel/qpngio.cpp:465: parse error before `['
kernel/qpngio.cpp:466: implicit declaration of function `int 
png_set_PLTE(...)' kernel/qpngio.cpp:482: `copy_trans' undeclared (first use 
this function)
kernel/qpngio.cpp:482: parse error before `['
kernel/qpngio.cpp:485: implicit declaration of function `int 
png_set_tRNS(...)' kernel/qpngio.cpp:506: `PNG_OFFSET_PIXEL' undeclared 
(first use this function)
kernel/qpngio.cpp:506: implicit declaration of function `int 
png_set_oFFs(...)' kernel/qpngio.cpp:510: implicit declaration of function 
`int png_set_sig_bytes(...)'
kernel/qpngio.cpp:515: `PNG_RESOLUTION_METER' undeclared (first use this 
function)
kernel/qpngio.cpp:515: implicit declaration of function `int 
png_set_pHYs(...)' kernel/qpngio.cpp:520: warning: cannot pass objects of 
type `const QImage' through `...'
kernel/qpngio.cpp:523: implicit declaration of function `int 
png_write_info(...)'
kernel/qpngio.cpp:527: warning: cannot pass objects of type `const QImage' 
through `...'
kernel/qpngio.cpp:543: `png_byte' undeclared (first use this function)
kernel/qpngio.cpp:543: parse error before `)'
kernel/qpngio.cpp:551: parse error before `)'
kernel/qpngio.cpp:554: parse error before `;'
kernel/qpngio.cpp:562: parse error before `['
kernel/qpngio.cpp:567: implicit declaration of function `int 
png_write_image(...)'
kernel/qpngio.cpp:570: implicit declaration of function `int 
png_write_end(...)'kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:776: parse error before `,'
kernel/qpngio.cpp:777: parse error before `,'
kernel/qpngio.cpp:779: parse error before `,'
kernel/qpngio.cpp:793: syntax error before `;'
kernel/qpngio.cpp:794: syntax error before `;'
kernel/qpngio.cpp:884: parse error before `,'
kernel/qpngio.cpp: In function `void info_callback(...)':
kernel/qpngio.cpp:886: implicit declaration of function `int 
png_get_progressive_ptr(...)'
kernel/qpngio.cpp:887: `info' undeclared (first use this function)
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:891: parse error before `,'
kernel/qpngio.cpp: In function `void row_callback(...)':
kernel/qpngio.cpp:895: `new_row' undeclared (first use this function)
kernel/qpngio.cpp:895: `row_num' undeclared (first use this function)
kernel/qpngio.cpp:895: `pass' undeclared (first use this function)
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:899: parse error before `,'
kernel/qpngio.cpp: In method `int QPNGFormat::decode(QImage &, QImageConsumer 
*, const uchar *, int)':
kernel/qpngio.cpp:980: implicit declaration of function `int 
png_set_progressive_read_fn(...)'
kernel/qpngio.cpp:1004: parse error before `,'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:1018: `png_structp' was not declared in this scope
kernel/qpngio.cpp:1018: parse error before `,'
kernel/qpngio.cpp: In method `void QPNGFormat::info(...)':
kernel/qpngio.cpp:1020: `png' undeclared (first use this function)
kernel/qpngio.cpp:1020: implicit declaration of function `int 
png_set_interlace_handling(...)'
kernel/qpngio.cpp:1021: warning: cannot pass objects of type `QImage' through 
`...'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:1024: parse error before `,'
kernel/qpngio.cpp: In method `void QPNGFormat::row(...)':
kernel/qpngio.cpp:1028: implicit declaration of function `int 
png_progressive_combine_row(...)'
kernel/qpngio.cpp: At top level:
kernel/qpngio.cpp:1032: parse error before `,'
kernel/qpngio.cpp: In method `void QPNGFormat::end(...)':
kernel/qpngio.cpp:1034: implicit declaration of function `int 
png_get_x_offset_pixels(...)'
kernel/qpngio.cpp:1035: implicit declaration of function `int 
png_get_y_offset_pixels(...)'
kernel/qpngio.cpp:1045: parse error before `;'
kernel/qpngio.cpp:1047: implicit declaration of function `int 
png_get_text(...)'kernel/qpngio.cpp: In function `void 
qt_zlib_compression_hack()':
kernel/qpngio.cpp:1159: implicit declaration of function `int compress(...)'
kernel/qpngio.cpp:1160: implicit declaration of function `int uncompress(...)'
make[2]: *** [.obj/release-mt/qpngio.o] Error 1
make[2]: Leaving directory `/opt/kde3/qt/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/opt/kde3/qt'
make: *** [init] Error 2
debian:/opt/kde3/qt#

Any ideas ???
I know this qt download is AOK since it is the same as I used for red hat ...

Many thanks in advance,
Dave



Reply to: