[kde-solaris] Compiling QT 3.1???

Joshua Symons kde-solaris@mail.kde.org
Fri Jan 31 00:12:36 2003


They may have put -shared back into gcc 3.2.1 for legacy support,
compiling with gcc 3.2 failed for me if I did not change the -shared to
-G. The occasional crash you are experiencing may be due to png. There
was a bug report a while back about an incompatibility between qt and a
certain version of libpng. Png is quite integrated into kde, i would
definitely research that.
libpng version 1.2.5 - October 3, 2002 is what I am currently using, try
strings libpng.so | grep version to compare. It might also be an
incompatiblity between png and zlib.
I have been running kde 3.1.rc2 now at home for app 79 days with 0
failures (Ultra 30/Solaris 8/896M of ram). I also ran kde 3.1.rc2 on
another machine (Ultra 2/Solaris 8/385M of ram) with no problems, and on
that same machine just rebuilt kde 3.1.rc6 and have been running that
for 2 days now with no problems as of yet.


~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Joshua Symons &lt vmcore at mysun dot com &gt
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

----- Original Message -----
From: Bart Whiteley <whiteley2@llnl.gov>
Date: Thursday, January 30, 2003 12:15 pm
Subject: Re: [kde-solaris] Compiling QT 3.1???

> I'm curious why these two changes are needed.  I configure
> with 
>      -system-zlib \
>      -qt-gif \
>      -plugin-imgfmt-png \
>      -system-libpng \
>      -plugin-imgfmt-jpeg \
>      -system-libjpeg \
>      -plugin-imgfmt-mng \
>      -system-libmng \
>      -thread \
>      -no-g++-exceptions \
>      -platform solaris-g++ 
> 
> I'm on sparc/Solaris8 with gcc-3.2.1.  gnu tools are used all 
> around. 
> It builds without a hitch, and I'm running kde3.1 final. 
> 
> I'm asking because I do get the occasional crash.  Would it be 
> more stable if I made the changes you describe? 
> 
> On Thu, Jan 30, 2003 at 11:21:38AM -0600, 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 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 mak>  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
> > ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
> 
> -- 
> Bart Whiteley             Computer Scientist   voice: (925) 423-2249
> National Atmospheric Release Advisory Center   FAX: (925) 423-8274
> Lawrence Livermore National Laboratory         email: 
> whiteley2@llnl.govP.O. Box 808, Livermore, CA 94551-0808         
> MS: L-103
> ___________________________________________________
> This message is from the kde-solaris mailing list.
> Account management:  http://mail.kde.org/mailman/listinfo/kde-solaris.
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.
>