[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: kdelibs/khtml problem /usr/lib/qt2/ hardcoded?
From: Roland Seuhs <e9626680 () student ! tuwien ! ac ! at>
Date: 2000-09-29 18:06:03
[Download RAW message or body]
Dies ist eine mehrteilige Nachricht im MIME-Format.
David Faure wrote:
>
> On Fri, 29 Sep 2000, Roland Seuhs wrote :
> >David Faure wrote:
> >>
> >> On Fri, 29 Sep 2000, Roland Seuhs wrote :
> >> >I get the following compiler-errors while compiling kdelibs:
> >>
> >> You have screwed up your Qt installation, it's now finding Qt 1
> >> instead of Qt 2.
> >>
> >> Is Qt 2 still in /usr/lib/qt2/lib (that's where it's looking for it) ?
> >
> >I have Qt 2 from CVS in /home/roli/qt2 - And I've set $QTDIR
> >accordingly.
> >kde-qt-addon, kdesupport and a lot of other packages are compiled
> >correctly (despite the broken kdelibs, my script ignores errors ;-)
> >
> >OK, I've now symlinked /usr/lib/qt2 to my directory, but I think this
> >path should not be hardcoded, shouldn't it just use $QTDIR ?
> >
> It's not hardcoded. But it's cached. You may have to remove config.cache
> and re-run configure. And check what it says about Qt.
This can't be the problem, my script deletes config.cache every time
before compiling.
configure seems OK:
checking for Qt... libraries /home/roli/qt2/lib, headers
/home/roli/qt2/include
checking if Qt compiles without flags... no
checking for moc... /home/roli/qt2/bin/moc
checking for uic... /home/roli/qt2/bin/uic
checking for rpath... yes
checking for KDE... will be installed in /home/roli/kde2
checking for KDE paths...
defaults
kdelibs compiles fine with the symlink now
As far as I can tell my script is fine too:
compile()
{
ln -s ../kde-common/admin .
rm -f config.cache
make -f Makefile.cvs || return 1
./configure --prefix=$KDEDIR || return 2
make || return 3
return 0
}
(I attach the complete script in case you are interested in it, it talks
to another script so there is a lot of communication stuff in it)
And, in addition to this, the error occurs only in kdelibs - other
packages are compiled with the same routine and are compiled fine. (even
some packages that need kdelibs are compiled fine)
Maybe I am still missing something, but for me there is no other
explanation than a hardcoded dir in the kdelibs package.
Roland();
--
Roland Seuhs
http://home.cern.ch/s/seuhs/public/html
+43/(0)650/8903909
Mail in German, French or English please
["k2i.comp.sh" (application/x-sh)]
#!/bin/sh
compile()
{
ln -s ../kde-common/admin .
rm -f config.cache
make -f Makefile.cvs || return 1
./configure --prefix=$KDEDIR || return 2
make || return 3
return 0
}
compile_qt()
{
echo QTDIR: $QTDIR
make -f Makefile.cvs || return 1
######### get around license message ;-)
cat ./configure | sed 's/exit 0/echo no exit/g' > ./LICENSE.QPL
mv -f ./LICENSE.QPL ./configure
chmod 755 ./configure
./configure -sm -gif -system-libpng -system-jpeg || return 2
make || return 3
return 0
}
install()
{
make install || return 4
return 0
}
export QTDIR=/home/roli/qt2
export KDEDIR=/home/roli/kde2
export DL_DIR=/home/roli/Compile/kde2
export LD_LIBRARY_PATH=/home/roli/kde2/lib:/home/roli/qt2/lib
export PATH=$PATH:/home/roli/kde2/bin
worktodo=0
rm -f $DL_DIR/k2i.errors
while [ $worktodo ]
do
echo " ####### next turn ########"
unset worktodo
# QT
if [ ! -e $DL_DIR/qt-copy/k2i.compiler_output ]
then
if [ -e $DL_DIR/qt-copy/k2i.last_update ]
then
cd $DL_DIR/qt-copy
# start new shell
(
export QTDIR=$DL_DIR/qt-copy
#make -f Makefile.cvs
#./configure -gif
#make
#cd extensions/imageio/src
#make
echo QT-Dir: $PWD
#echo KDE2I:qt-copy:start
echo K2:S:qt-copy:C
compile_qt >> $QTDIR/k2i.compiler_output 2>> $QTDIR/k2i.compiler_output
i=$?
echo QT $i >> $DL_DIR/k2i.errors
#echo K2:s:qt-copy:I
echo K2:$i:qt-copy:C
#echo KDE2I:0:qt-copy:inst
)
# install
rm -rf $QTDIR/*
echo K2:S:qt-copy:I
cp -rf $DL_DIR/qt-copy/* $QTDIR
echo K2:0:qt-copy:I
echo QT-installiert >> $DL_DIR/k2i.errors
# touch /home/roli/Compile/kde2/qt-copy/k2i_last.install
else
echo Qt not ready
worktodo=0
sleep 10
continue
fi
fi
PACKAGES="kde-qt-addon kdesupport kdelibs kdebase kdeutils koffice kdenetwork \
kdegames kdeadmin kdemultimedia kdegraphics kdesdk kdetoys kdenonbeta kdevelop " \
for package in $PACKAGES do
if [ ! -e $DL_DIR/$package/k2i.compiler_output ]
then
if [ -e $DL_DIR/$package/k2i.last_update ]
then
cd $DL_DIR/$package
sleep 1
echo K2:S:$package:C
compile >> k2i.compiler_output 2>> k2i.compiler_output
i=$?
echo $package $i >> $DL_DIR/k2i.errors
echo K2:$i:$package:C
else
echo waiting for $package to be downloaded
worktodo=0
fi
if [ ! -e $DL_DIR/$package/k2i.install_output ]
then
if [ -e $DL_DIR/$package/k2i.compiler_output ]
then
sleep 1
echo K2:S:$package:I
install >> k2i.install_output 2>> k2i.install_output
i=$?
echo $package install $i >> $DL_DIR/k2i.errors
echo K2:$i:$package:I
echo $package "#### DONE ####" >> $DL_DIR/k2i.errors
else
echo K2:5:$package:I
fi
fi
fi
done
sleep 10
done
echo KDE2I:done
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic