[kde-solaris] Compiling QT 3.1???

thefrog kde-solaris@mail.kde.org
Fri Jan 31 07:40:00 2003


On Thursday 30 January 2003 18:21, Joshua Symons wrote:
> 2 things you should do to compile qt 3.1 on solaris 8 with gcc 3.2.
> First is change the LFLAGS to -G instead of -shared, since -shared is n=
o
> longer supported in gcc 3.2.

I use the g++ 3.2 installed from sunfreeware.com around christmas, I didn=
't=20
changed these flags above, but my shared qt libs (qt 3.1.1) are fine.
May be that they backported this compability to gcc 3.2 or do I use somet=
hing=20
which should not work but it has not been told no to work and therefore w=
orks=20
=2E.. ):-

just wondering
rainald

> 1) Modify template file ${SRC}/mkspecs/solaris-g++/qmake.conf
>  or
>  ${SRC}/mkspecs/solaris-g++-64/qmake.conf
>  depending on which type of build you are doing.
>  Change QMAKE_LFLAGS_SHLIB to -G from -shared.
>  Do this BEFORE ./configure, so with a new src tree, otherwise
>  it will be in all of your makefiles.
> 2) Use system tools (ccs make/as/ld) no gmake/as/ld.
>  The no-g++-exceptions isn't necessary. Here's how i configured
>  mine.
>  QTDIR=3D$(pwd) ; PATH=3D$QTDIR/bin:$PATH ;
>  LD_LIBRARY_PATH=3D$QTDIR/lib:$LD_LIBRARY_PATH
>  export QTDIR PATH LD_LIBRARY_PATH
>  The above is based on ksh and necessary so that qmake is found
>  when compiling, change according to whatever shell you use.
>  echo yes | ./configure --prefix=3D/opt/kdebase_3.1.rc2 -no-tablet -no-=
xft
> -xkb -no-xrender -no-xinerama -no-nas-sound -qt-libmng -system-libjpeg
> -system-libpng -no-stl -system-zlib -qt-gif -shared -release -platform
> solaris-g++ -thread
>  Also according to your errors, i'd check that png is correctly
> installed on your system. Might want to update to the latest version,
> since previous versions had some bugs afaik.
>
> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
> Joshua Symons &lt vmcore at mysun dot com &gt
> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
> Content-Type: multipart/alternative;
> =09boundary=3D"----_=3D_NextPart_001_01C2C87B.11FFFF3C"
>
>
> ------_=3D_NextPart_001_01C2C87B.11FFFF3C
> Content-Type: text/plain;
> =09charset=3D"iso-8859-1"
>
> I'm trying to compile Qt 3.1 on a Solaris 8 box using gcc 3.2 but no lu=
ck.
> Here is a sampling of the errors I am getting (this is the end if the
> errors, they begin beyond my buffer). Any ideas on what I am doing wron=
g?
>
> Thanks!
>
> ./configure -system-zlib -qt-gif -system-libpng -system-libjpeg
> -plugin-imgfmt-mng -thread -no-stl -no-xinerama -no-g++-exceptions
> [...]
> kernel/qpngio.cpp:816: parse error before `,' token
> kernel/qpngio.cpp:817: parse error before `,' token
> kernel/qpngio.cpp:819: parse error before `,' token
> kernel/qpngio.cpp:833: 'png_structp' is used as a type, but is not defi=
ned
> as a
>    type.
> kernel/qpngio.cpp:834: 'png_infop' is used as a type, but is not define=
d as
> a
>    type.
> kernel/qpngio.cpp:924: parse error before `,' token
> kernel/qpngio.cpp: In function `void info_callback(...)':
> kernel/qpngio.cpp:926: `png_get_progressive_ptr' undeclared (first use =
this
>    function)
> kernel/qpngio.cpp:927: `info' undeclared (first use this function)
> kernel/qpngio.cpp: At global scope:
> kernel/qpngio.cpp:931: parse error before `,' token
> kernel/qpngio.cpp: In function `void row_callback(...)':
> kernel/qpngio.cpp:935: `new_row' undeclared (first use this function)
> kernel/qpngio.cpp:935: `row_num' undeclared (first use this function)
> kernel/qpngio.cpp:935: `pass' undeclared (first use this function)
> kernel/qpngio.cpp: At global scope:
> kernel/qpngio.cpp:939: parse error before `,' token
> kernel/qpngio.cpp: In member function `virtual int
> QPNGFormat::decode(QImage&,
>    QImageConsumer*, const uchar*, int)':
> kernel/qpngio.cpp:1022: `png_set_progressive_read_fn' undeclared (first=
 use
>    this function)
> kernel/qpngio.cpp:1049: parse error before `,' token
> kernel/qpngio.cpp: At global scope:
> kernel/qpngio.cpp:1063: `png_structp' was not declared in this scope
> kernel/qpngio.cpp:1063: parse error before `,' token
> kernel/qpngio.cpp: In member function `void QPNGFormat::info(...)':
> kernel/qpngio.cpp:1065: `png' undeclared (first use this function)
> kernel/qpngio.cpp:1065: `png_set_interlace_handling' undeclared (first =
use
> this
>    function)
> kernel/qpngio.cpp:1066: cannot pass objects of non-POD type `class QIma=
ge'
>    through `...'
> kernel/qpngio.cpp: At global scope:
> kernel/qpngio.cpp:1069: parse error before `,' token
> kernel/qpngio.cpp: In member function `void QPNGFormat::row(...)':
> kernel/qpngio.cpp:1073: `png_progressive_combine_row' undeclared (first=
 use
>    this function)
> kernel/qpngio.cpp: At global scope:
> kernel/qpngio.cpp:1077: parse error before `,' token
> kernel/qpngio.cpp: In member function `void QPNGFormat::end(...)':
> kernel/qpngio.cpp:1079: `png_get_x_offset_pixels' undeclared (first use
> this function)
> kernel/qpngio.cpp:1080: `png_get_y_offset_pixels' undeclared (first use
> this function)
> kernel/qpngio.cpp:1090: parse error before `;' token
> kernel/qpngio.cpp: In function `void qt_zlib_compression_hack()':
> kernel/qpngio.cpp:1216: `compress' undeclared (first use this function)
> kernel/qpngio.cpp:1217: `uncompress' undeclared (first use this functio=
n)
> gmake[2]: *** [.obj/release-shared-mt/qpngio.o] Error 1
> gmake[2]: Leaving directory
> `/export/home/rjl01/kde31/qt-x11-free-3.1.1/src' gmake[1]: *** [sub-src=
]
> Error 2
> gmake[1]: Leaving directory `/export/home/rjl01/kde31/qt-x11-free-3.1.1=
'
> gmake: *** [init] Error 2
>
>
>   _____
>
> Russ LeBar
> NMSA UNIX System Administrator
> Phone:=09 314-512-3355
> Fax:=09 314-512-6002
> Pager:=09 314-841-7565
>
>
>
> ------_=3D_NextPart_001_01C2C87B.11FFFF3C
> Content-Type: text/html;
> =09charset=3D"iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META HTTP-EQUIV=3D3D"Content-Type" CONTENT=3D3D"text/html; =3D
> charset=3D3Diso-8859-1">
>
>
> <META content=3D3D"MSHTML 6.00.2800.1106" name=3D3DGENERATOR></HEAD>
> <BODY>
> <DIV><SPAN class=3D3D453271416-30012003><FONT face=3D3DArial size=3D3D2=
>I'm =3D
> trying to=3D20
> compile Qt 3.1 on a Solaris 8 box using gcc 3.2 but no=3D20
> luck.&nbsp;</FONT></SPAN><SPAN class=3D3D453271416-30012003><FONT =3D
> face=3D3DArial=3D20
> size=3D3D2>Here is a sampling of the errors I am getting (this is the e=
nd =3D
> if the=3D20
> errors, they begin beyond my buffer). Any ideas on what I am doing=3D20
> wrong?</FONT></SPAN></DIV>
> <DIV><SPAN class=3D3D453271416-30012003><FONT face=3D3DArial=3D20
> size=3D3D2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=3D3D453271416-30012003><FONT face=3D3DArial=3D20
> size=3D3D2>Thanks!</FONT></SPAN></DIV>
> <DIV><SPAN class=3D3D453271416-30012003><FONT face=3D3DArial=3D20
> size=3D3D2></FONT></SPAN>&nbsp;</DIV><SPAN class=3D3D453271416-30012003=
>
> <DIV><SPAN class=3D3D453271416-30012003><FONT face=3D3DArial =3D
> size=3D3D2>./configure=3D20
> -system-zlib -qt-gif -system-libpng -system-libjpeg -plugin-imgfmt-mng =
=3D
> -thread=3D20
> -no-stl -no-xinerama =3D
> -no-g++-exceptions</FONT></SPAN></DIV></SPAN><PRE><SPAN =3D
> class=3D3D453271416-30012003>[...]</SPAN></PRE><PRE><SPAN =3D
> class=3D3D453271416-30012003>kernel/qpngio.cpp:816: parse error before =
=3D
> `,' token<BR>kernel/qpngio.cpp:817: parse error before `,' =3D
> token<BR>kernel/qpngio.cpp:819: parse error before `,' =3D
> token<BR>kernel/qpngio.cpp:833: 'png_structp' is used as a type, but is=
 =3D
> not defined as a<BR>&nbsp;&nbsp; type.<BR>kernel/qpngio.cpp:834: =3D
> 'png_infop' is used as a type, but is not defined as a<BR>&nbsp;&nbsp; =
=3D
> type.<BR>kernel/qpngio.cpp:924: parse error before `,' =3D
> token<BR>kernel/qpngio.cpp: In function `void =3D
> info_callback(...)':<BR>kernel/qpngio.cpp:926: =3D
> `png_get_progressive_ptr' undeclared (first use this<BR>&nbsp;&nbsp; =3D
> function)<BR>kernel/qpngio.cpp:927: `info' undeclared (first use this =3D
> function)<BR>kernel/qpngio.cpp: At global =3D
> scope:<BR>kernel/qpngio.cpp:931: parse error before `,' =3D
> token<BR>kernel/qpngio.cpp: In function `void =3D
> row_callback(...)':<BR>kernel/qpngio.cpp:935: `new_row' undeclared =3D
> (first use this function)<BR>kernel/qpngio.cpp:935: `row_num' =3D
> undeclared (first use this function)<BR>kernel/qpngio.cpp:935: `pass' =3D
> undeclared (first use this function)<BR>kernel/qpngio.cpp: At global =3D
> scope:<BR>kernel/qpngio.cpp:939: parse error before `,' =3D
> token<BR>kernel/qpngio.cpp: In member function `virtual int =3D
> QPNGFormat::decode(QImage&amp;,<BR>&nbsp;&nbsp; QImageConsumer*, const =
=3D
> uchar*, int)':<BR>kernel/qpngio.cpp:1022: `png_set_progressive_read_fn'=
 =3D
> undeclared (first use<BR>&nbsp;&nbsp; this =3D
> function)<BR>kernel/qpngio.cpp:1049: parse error before `,' =3D
> token<BR>kernel/qpngio.cpp: At global scope:<BR>kernel/qpngio.cpp:1063:=
 =3D
> `png_structp' was not declared in this scope<BR>kernel/qpngio.cpp:1063:=
 =3D
> parse error before `,' token<BR>kernel/qpngio.cpp: In member function =3D
> `void QPNGFormat::info(...)':<BR>kernel/qpngio.cpp:1065: `png' =3D
> undeclared (first use this function)<BR>kernel/qpngio.cpp:1065: =3D
> `png_set_interlace_handling' undeclared (first use this<BR>&nbsp;&nbsp;=
 =3D
> function)<BR>kernel/qpngio.cpp:1066: cannot pass objects of non-POD =3D
> type `class QImage'<BR>&nbsp;&nbsp; through `...'<BR>kernel/qpngio.cpp:=
 =3D
> At global scope:<BR>kernel/qpngio.cpp:1069: parse error before `,' =3D
> token<BR>kernel/qpngio.cpp: In member function `void =3D
> QPNGFormat::row(...)':<BR>kernel/qpngio.cpp:1073: =3D
> `png_progressive_combine_row' undeclared (first use<BR>&nbsp;&nbsp; =3D
> this function)<BR>kernel/qpngio.cpp: At global =3D
> scope:<BR>kernel/qpngio.cpp:1077: parse error before `,' =3D
> token<BR>kernel/qpngio.cpp: In member function `void =3D
> QPNGFormat::end(...)':<BR>kernel/qpngio.cpp:1079: =3D
> `png_get_x_offset_pixels' undeclared (first use this<BR>&nbsp;&nbsp; =3D
> function)<BR>kernel/qpngio.cpp:1080: `png_get_y_offset_pixels' =3D
> undeclared (first use this<BR>&nbsp;&nbsp; =3D
> function)<BR>kernel/qpngio.cpp:1090: parse error before `;' token<BR>ke=
r=3D
> nel/qpngio.cpp: In function `void =3D
> qt_zlib_compression_hack()':<BR>kernel/qpngio.cpp:1216: `compress' =3D
> undeclared (first use this function)<BR>kernel/qpngio.cpp:1217: =3D
> `uncompress' undeclared (first use this function)<BR>gmake[2]: *** =3D
> [.obj/release-shared-mt/qpngio.o] Error 1<BR>gmake[2]: Leaving =3D
> directory `/export/home/rjl01/kde31/qt-x11-free-3.1.1/src'<BR>gmake[1]:=
 =3D
> *** [sub-src] Error 2<BR>gmake[1]: Leaving directory =3D
> `/export/home/rjl01/kde31/qt-x11-free-3.1.1'<BR>gmake: *** [init] Error=
 =3D
> 2<BR></PRE></SPAN>
> <DIV>
> <TABLE cellSpacing=3D3D0 border=3D3D0>
>   <TBODY>
>   <TR>
>     <TD>&nbsp;</TD></TR></TBODY></TABLE></DIV>
> <DIV>
> <HR align=3D3Dleft width=3D3D225 color=3D3D#c0c0c0 noShade SIZE=3D3D1>
>
> <TABLE cellSpacing=3D3D0 border=3D3D0>
>   <TBODY>
>   <TR>
>     <TD colSpan=3D3D2><FONT face=3D3D"BrushScript BT" color=3D3D#0072b6=
 =3D
> size=3D3D5>Russ=3D20
>       LeBar</FONT></TD></TR>
>   <TR>
>     <TD colSpan=3D3D2><FONT size=3D3D1>NMSA UNIX System =3D
> Administrator</FONT></TD></TR>
>   <TR>
>     <TD><FONT size=3D3D1>Phone:</FONT></TD>
>     <TD><FONT size=3D3D1>314-512-3355</FONT></TD></TR>
>   <TR>
>     <TD><FONT size=3D3D1>Fax:</FONT></TD>
>     <TD><FONT size=3D3D1>314-512-6002</FONT></TD></TR>
>   <TR>
>     <TD><FONT size=3D3D1>Pager:</FONT></TD>
>     <TD><FONT =3D
> size=3D3D1>314-841-7565</FONT></TD></TR></TBODY></TABLE></DIV>
> <DIV>
> <TABLE cellSpacing=3D3D0 border=3D3D0>
>   <TBODY>
>   <TR>
>     <TD>&nbsp;</TD></TR></TBODY></TABLE></DIV>
> <DIV>&nbsp;</DIV></BODY></HTML>
>
> ------_=3D_NextPart_001_01C2C87B.11FFFF3C--