[kde-solaris] Compiling QT 3.1???

Joshua Symons kde-solaris@mail.kde.org
Thu Jan 30 18:28:09 2003


This is a multi-part message in MIME format.

----6fae2731b244ecf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

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 no
longer supported in gcc 3.2.
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=$(pwd) ; PATH=$QTDIR/bin:$PATH ; 
 LD_LIBRARY_PATH=$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=/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;
	boundary="----_=_NextPart_001_01C2C87B.11FFFF3C"


------_=_NextPart_001_01C2C87B.11FFFF3C
Content-Type: text/plain;
	charset="iso-8859-1"

I'm trying to compile Qt 3.1 on a Solaris 8 box using gcc 3.2 but no luck.
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 wrong?
 
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 defined
as a
   type.
kernel/qpngio.cpp:834: 'png_infop' is used as a type, but is not defined 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 QImage'
   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 function)
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:	 314-512-3355	
Fax:	 314-512-6002	
Pager:	 314-841-7565	
 	
 

------_=_NextPart_001_01C2C87B.11FFFF3C
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D453271416-30012003><FONT face=3DArial size=3D2>I'm =
trying to=20
compile Qt 3.1 on a Solaris 8 box using gcc 3.2 but no=20
luck.&nbsp;</FONT></SPAN><SPAN class=3D453271416-30012003><FONT =
face=3DArial=20
size=3D2>Here is a sampling of the errors I am getting (this is the end =
if the=20
errors, they begin beyond my buffer). Any ideas on what I am doing=20
wrong?</FONT></SPAN></DIV>
<DIV><SPAN class=3D453271416-30012003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D453271416-30012003><FONT face=3DArial=20
size=3D2>Thanks!</FONT></SPAN></DIV>
<DIV><SPAN class=3D453271416-30012003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV><SPAN class=3D453271416-30012003>
<DIV><SPAN class=3D453271416-30012003><FONT face=3DArial =
size=3D2>./configure=20
-system-zlib -qt-gif -system-libpng -system-libjpeg -plugin-imgfmt-mng =
-thread=20
-no-stl -no-xinerama =
-no-g++-exceptions</FONT></SPAN></DIV></SPAN><PRE><SPAN =
class=3D453271416-30012003>[...]</SPAN></PRE><PRE><SPAN =
class=3D453271416-30012003>kernel/qpngio.cpp:816: parse error before =
`,' token<BR>kernel/qpngio.cpp:817: parse error before `,' =
token<BR>kernel/qpngio.cpp:819: parse error before `,' =
token<BR>kernel/qpngio.cpp:833: 'png_structp' is used as a type, but is =
not defined as a<BR>&nbsp;&nbsp; type.<BR>kernel/qpngio.cpp:834: =
'png_infop' is used as a type, but is not defined as a<BR>&nbsp;&nbsp; =
type.<BR>kernel/qpngio.cpp:924: parse error before `,' =
token<BR>kernel/qpngio.cpp: In function `void =
info_callback(...)':<BR>kernel/qpngio.cpp:926: =
`png_get_progressive_ptr' undeclared (first use this<BR>&nbsp;&nbsp; =
function)<BR>kernel/qpngio.cpp:927: `info' undeclared (first use this =
function)<BR>kernel/qpngio.cpp: At global =
scope:<BR>kernel/qpngio.cpp:931: parse error before `,' =
token<BR>kernel/qpngio.cpp: In function `void =
row_callback(...)':<BR>kernel/qpngio.cpp:935: `new_row' undeclared =
(first use this function)<BR>kernel/qpngio.cpp:935: `row_num' =
undeclared (first use this function)<BR>kernel/qpngio.cpp:935: `pass' =
undeclared (first use this function)<BR>kernel/qpngio.cpp: At global =
scope:<BR>kernel/qpngio.cpp:939: parse error before `,' =
token<BR>kernel/qpngio.cpp: In member function `virtual int =
QPNGFormat::decode(QImage&amp;,<BR>&nbsp;&nbsp; QImageConsumer*, const =
uchar*, int)':<BR>kernel/qpngio.cpp:1022: `png_set_progressive_read_fn' =
undeclared (first use<BR>&nbsp;&nbsp; this =
function)<BR>kernel/qpngio.cpp:1049: parse error before `,' =
token<BR>kernel/qpngio.cpp: At global scope:<BR>kernel/qpngio.cpp:1063: =
`png_structp' was not declared in this scope<BR>kernel/qpngio.cpp:1063: =
parse error before `,' token<BR>kernel/qpngio.cpp: In member function =
`void QPNGFormat::info(...)':<BR>kernel/qpngio.cpp:1065: `png' =
undeclared (first use this function)<BR>kernel/qpngio.cpp:1065: =
`png_set_interlace_handling' undeclared (first use this<BR>&nbsp;&nbsp; =
function)<BR>kernel/qpngio.cpp:1066: cannot pass objects of non-POD =
type `class QImage'<BR>&nbsp;&nbsp; through `...'<BR>kernel/qpngio.cpp: =
At global scope:<BR>kernel/qpngio.cpp:1069: parse error before `,' =
token<BR>kernel/qpngio.cpp: In member function `void =
QPNGFormat::row(...)':<BR>kernel/qpngio.cpp:1073: =
`png_progressive_combine_row' undeclared (first use<BR>&nbsp;&nbsp; =
this function)<BR>kernel/qpngio.cpp: At global =
scope:<BR>kernel/qpngio.cpp:1077: parse error before `,' =
token<BR>kernel/qpngio.cpp: In member function `void =
QPNGFormat::end(...)':<BR>kernel/qpngio.cpp:1079: =
`png_get_x_offset_pixels' undeclared (first use this<BR>&nbsp;&nbsp; =
function)<BR>kernel/qpngio.cpp:1080: `png_get_y_offset_pixels' =
undeclared (first use this<BR>&nbsp;&nbsp; =
function)<BR>kernel/qpngio.cpp:1090: parse error before `;' token<BR>ker=
nel/qpngio.cpp: In function `void =
qt_zlib_compression_hack()':<BR>kernel/qpngio.cpp:1216: `compress' =
undeclared (first use this function)<BR>kernel/qpngio.cpp:1217: =
`uncompress' undeclared (first use this function)<BR>gmake[2]: *** =
[.obj/release-shared-mt/qpngio.o] Error 1<BR>gmake[2]: Leaving =
directory `/export/home/rjl01/kde31/qt-x11-free-3.1.1/src'<BR>gmake[1]: =
*** [sub-src] Error 2<BR>gmake[1]: Leaving directory =
`/export/home/rjl01/kde31/qt-x11-free-3.1.1'<BR>gmake: *** [init] Error =
2<BR></PRE></SPAN>
<DIV>
<TABLE cellSpacing=3D0 border=3D0>
  <TBODY>
  <TR>
    <TD>&nbsp;</TD></TR></TBODY></TABLE></DIV>
<DIV>
<HR align=3Dleft width=3D225 color=3D#c0c0c0 noShade SIZE=3D1>

<TABLE cellSpacing=3D0 border=3D0>
  <TBODY>
  <TR>
    <TD colSpan=3D2><FONT face=3D"BrushScript BT" color=3D#0072b6 =
size=3D5>Russ=20
      LeBar</FONT></TD></TR>
  <TR>
    <TD colSpan=3D2><FONT size=3D1>NMSA UNIX System =
Administrator</FONT></TD></TR>
  <TR>
    <TD><FONT size=3D1>Phone:</FONT></TD>
    <TD><FONT size=3D1>314-512-3355</FONT></TD></TR>
  <TR>
    <TD><FONT size=3D1>Fax:</FONT></TD>
    <TD><FONT size=3D1>314-512-6002</FONT></TD></TR>
  <TR>
    <TD><FONT size=3D1>Pager:</FONT></TD>
    <TD><FONT =
size=3D1>314-841-7565</FONT></TD></TR></TBODY></TABLE></DIV>
<DIV>
<TABLE cellSpacing=3D0 border=3D0>
  <TBODY>
  <TR>
    <TD>&nbsp;</TD></TR></TBODY></TABLE></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C2C87B.11FFFF3C--

----6fae2731b244ecf--