Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE CVS and QT 3.3.3
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
JLP
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 143
Location: Slovenia

PostPosted: Thu Aug 12, 2004 7:37 am    Post subject: KDE CVS and QT 3.3.3 Reply with quote

Hi,

I just updated QT using Gentoo KDE CVS project ebuilds and after that all the KDE apps stopped working. It looks like they are all missing libqt-mt.so.3. It also looks like the QT on the CVS changed version from 3.3.2 to 3.3.3. Do ebuilds have to be updated for that or did I forget to do something?

Thanks in advance.
_________________
Live long and prosper!
Back to top
View user's profile Send private message
headache
Apprentice
Apprentice


Joined: 26 May 2004
Posts: 226

PostPosted: Thu Aug 12, 2004 1:50 pm    Post subject: Reply with quote

After upgrading QT, did you recompile all of KDE?
If not, that is the cause, else we would have to start debugging to find out....
_________________
"I'd rather have a President who does it to a woman than one who does it to his country" -- Shirley Maclaine
Liberal (adj.): Free from bigotry; open to progress; tolerant of others.
Back to top
View user's profile Send private message
JLP
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 143
Location: Slovenia

PostPosted: Thu Aug 12, 2004 2:17 pm    Post subject: Reply with quote

I tried but configure script also complains about qt-mt and threads support.

I'll try and change the QPV variable in qt-5.ebuild from 3.3.2 to 3.3.3. Could this solve the problem?

Oh and I also have another question: Are the patches from qt-copy/patches/ applied when using KDE CVS ebuilds?
_________________
Live long and prosper!
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Thu Aug 12, 2004 2:21 pm    Post subject: Reply with quote

@JLP
can you post the ebuild which you used to emerge qt 3.3.3?
certain symlinks need to be made.
anyway, post it and will fix it for you
Back to top
View user's profile Send private message
JLP
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 143
Location: Slovenia

PostPosted: Thu Aug 12, 2004 3:10 pm    Post subject: Reply with quote

I used the one from Gentoo KDE CVS project. now with QPV changed arts compiled just fine and kdelibs is also compiling right now. *qt-mt* symlinks and lib are also now installed which were missing previously.
_________________
Live long and prosper!
Back to top
View user's profile Send private message
asimon
l33t
l33t


Joined: 27 Jun 2002
Posts: 979
Location: Germany, Old Europe

PostPosted: Fri Aug 13, 2004 10:50 pm    Post subject: Reply with quote

headache wrote:
After upgrading QT, did you recompile all of KDE?


From the Readme:
Quote:
Qt 3.3.3 is a bugfix release. It maintains both forward and backward
compatibility (source and binary) with Qt 3.3.2, Qt 3.3.1 and Qt 3.3.0.

Thus recompiling KDE because of a minor upgrade of Qt is not required.

JLP wrote:
Are the patches from qt-copy/patches/ applied when using KDE CVS ebuilds?


No they are not applied because the line to apply them in the ebuild is commented out.
Back to top
View user's profile Send private message
JLP
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 143
Location: Slovenia

PostPosted: Fri Aug 13, 2004 11:25 pm    Post subject: Reply with quote

Thanks for all the info.
Why are the KDE patches to QT disabled? Is it safe to enable them?
_________________
Live long and prosper!
Back to top
View user's profile Send private message
asimon
l33t
l33t


Joined: 27 Jun 2002
Posts: 979
Location: Germany, Old Europe

PostPosted: Sat Aug 14, 2004 9:04 am    Post subject: Reply with quote

JLP wrote:
Why are the KDE patches to QT disabled? Is it safe to enable them?

I don't know. I always apply them and haven't encountered any problem yet.
Back to top
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Sat Aug 14, 2004 2:44 pm    Post subject: Reply with quote

try this, name it qt-3.3.3.ebuild:
hth
happy gentooing
PS
you may need to re-emerge kdelibs amd kdebase after emerging the new qt
i wouldn't apply any patches unless i know exactly what they are
Code:

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/x11-libs/qt/qt-3.3.3.ebuild,v 1.1 2004/04/28 17:17:05 caleb Exp $

inherit eutils

SRCTYPE="free"
DESCRIPTION="QT version ${PV}"
HOMEPAGE="http://www.trolltech.com/"

SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-x11-${SRCTYPE}-${PV}.tar.bz2"

LICENSE="QPL-1.0 | GPL-2"
SLOT="3"
KEYWORDS="~x86 ~alpha ~ppc ~amd64 ~sparc ~hppa ~mips"
IUSE="cups nas postgres opengl mysql odbc gif doc firebird zlib icc sqlite ipv6 xinerama"

DEPEND="virtual/x11 virtual/xft
   media-libs/libpng media-libs/jpeg media-libs/libmng
   >=media-libs/freetype-2
   gif? ( media-libs/giflib media-libs/libungif )
   nas? ( >=media-libs/nas-1.5 )
   odbc? ( dev-db/unixODBC )
   mysql? ( dev-db/mysql )
   sqlite? ( dev-db/sqlite )
   firebird? ( dev-db/firebird )
   opengl? ( virtual/opengl virtual/glu )
   postgres? ( dev-db/postgresql )
   cups? ( net-print/cups )
   zlib? ( sys-libs/zlib )
   icc? ( dev-lang/icc )"

RDEPEND="${DEPEND}"

S=${WORKDIR}/qt-x11-${SRCTYPE}-${PV}

QTBASE=/usr/qt/3
export QTDIR=${S}
export PLATFORM=linux-g++

src_unpack() {
   unpack ${A}

   export QTDIR=${S}
   cd ${S}

   cp configure configure.orig
   sed -e 's:read acceptance:acceptance=yes:' configure.orig > configure
   #honor CFLAGS
        sed -i "s:= -O2:= ${CFLAGS}:g" ${S}/mkspecs/linux-g++/qmake.conf
}

src_compile() {
   export QTDIR=${S}
   export SYSCONF=${D}${QTBASE}/etc/settings

   # Let's just allow writing to these directories during Qt emerge
   # as it makes Qt much happier.
   addwrite "${QTBASE}/etc/settings"
   addwrite "$HOME/.qt"

   use nas      && myconf="${myconf} -system-nas-sound"
   use gif      && myconf="${myconf} -qt-gif"
   use mysql   && myconf="${myconf} -plugin-sql-mysql -I/usr/include/mysql -L/usr/lib/mysql" || myconf="${myconf} -no-sql-mysql"
   use postgres   && myconf="${myconf} -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf="${myconf} -no-sql-psql"
   use firebird    && myconf="${myconf} -plugin-sql-ibase" || myconf="${myconf} -no-sql-ibase"
#   use oci8   && myconf="${myconf} -plugin-sql-oci" || myconf="${myconf} -no-sql-oci"
   use sqlite   && myconf="${myconf} -plugin-sql-sqlite" || myconf="${myconf} -no-sql-sqlite"
   use odbc   && myconf="${myconf} -plugin-sql-odbc" || myconf="${myconf} -no-sql-odbc"
   use cups   && myconf="${myconf} -cups" || myconf="${myconf} -no-cups"
   use opengl   && myconf="${myconf} -enable-module=opengl" || myconf="${myconf} -disable-opengl"
   use debug   && myconf="${myconf} -debug" || myconf="${myconf} -release -no-g++-exceptions"
   use xinerama    && myconf="${myconf} -xinerama" || myconf="${myconf} -no-xinerama"
   use zlib   && myconf="${myconf} -system-zlib" || myconf="${myconf} -qt-zlib"
   use ipv6        && myconf="${myconf} -ipv6" || myconf="${myconf} -no-ipv6"

   export YACC='byacc -d'

   ./configure -sm -thread -stl -system-libjpeg -verbose -largefile \
      -qt-imgfmt-{jpeg,mng,png} -tablet -system-libmng \
      -system-libpng -lpthread -xft -platform ${PLATFORM} -xplatform \
      ${PLATFORM} -xrender -prefix ${QTBASE} -fast ${myconf} \
      -dlopen-opengl || die

   export QTDIR=${S}

   emake src-qmake src-moc sub-src || die
   LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" emake sub-tools || die
}

src_install() {
   export QTDIR=${S}

   # binaries
   into $QTBASE
   dobin bin/*

   # libraries

   dolib lib/libqt-mt.so.3.3.3 lib/libqui.so.1.0.0
   dolib lib/lib{editor,qassistantclient,designercore}.a lib/libqt-mt.la

   cd ${D}/$QTBASE/lib
   for x in libqui.so ; do
      ln -s $x.1.0.0 $x.1.0
      ln -s $x.1.0 $x.1
      ln -s $x.1 $x
   done

   # version symlinks - 3.3.1->3.3->3->.so
   ln -s libqt-mt.so.3.3.3 libqt-mt.so.3.3
   ln -s libqt-mt.so.3.3 libqt-mt.so.3
   ln -s libqt-mt.so.3 libqt-mt.so

   # libqt -> libqt-mt symlinks
   ln -s libqt-mt.so.3.3.3 libqt.so.3.3.3
   ln -s libqt-mt.so.3.3 libqt.so.3.3
   ln -s libqt-mt.so.3 libqt.so.3
   ln -s libqt-mt.so libqt.so

   # includes
   cd ${S}
   dodir ${QTBASE}/include/private
   cp include/* ${D}/${QTBASE}/include/
   cp include/private/* ${D}/${QTBASE}/include/private/

   # misc
   insinto /etc/env.d
   doins ${FILESDIR}/{45qt3,50qtdir3}

   dodir ${QTBASE}/tools/designer/templates
   cd ${S}
   cp tools/designer/templates/* ${D}/${QTBASE}/tools/designer/templates

   dodir ${QTBASE}/translations
   cd ${S}
   cp translations/* ${D}/${QTBASE}/translations

   dodir ${QTBASE}/etc
   keepdir ${QTBASE}/etc/settings

   dodir ${QTBASE}/doc

   if [ `use doc` ]; then
      cp -r ${S}/doc ${D}/${QTBASE}

      cd ${S}/examples
      find . -name Makefile | while read MAKEFILE
      do
         cp ${MAKEFILE} ${MAKEFILE}.old
         sed -e 's:${S}:${QTBASE}:g' ${MAKEFILE}.old > ${MAKEFILE}
         rm -f ${MAKEFILE}.old
      done

      cp -r ${S}/examples ${D}/${QTBASE}

      cd ${S}/tutorial
      find . -name Makefile | while read MAKEFILE
      do
         cp ${MAKEFILE} ${MAKEFILE}.old
         sed -e 's:${S}:${QTBASE}:g' ${MAKEFILE}.old > ${MAKEFILE}
         rm -f ${MAKEFILE}.old
      done

      cp -r ${S}/tutorial ${D}/${QTBASE}
   fi

   # misc build reqs
   dodir ${QTBASE}/mkspecs
   cp -R ${S}/mkspecs/${PLATFORM} ${D}/${QTBASE}/mkspecs/

   sed -e "s:${S}:${QTBASE}:g" \
      ${S}/.qmake.cache > ${D}${QTBASE}/.qmake.cache

   # plugins
   cd ${S}
   plugins=`find plugins -name "lib*.so" -print`
   for x in $plugins; do
      insinto ${QTBASE}/`dirname $x`
      doins $x
   done

   # needed to fix lib64 issues on amd64, see bug #45669
   use amd64 && ln -s ${QTBASE}/lib ${D}/${QTBASE}/lib64
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum