[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Compiling KDE2 (CVS from the 27th)
From:       Malte Starostik <starosti () zedat ! fu-berlin ! de>
Date:       1999-11-28 16:25:31
[Download RAW message or body]

Well, your particular problem seems to be solved, then. From my own experience - I've \
been using KDE 2 as my primary desktop for quite some time now - I can only recommend \
using cvsup instead of the snapshots: Even though most of the time the snapshots will \
compile, you can never know. A cvsup of an existing tree saves a lot of time \
                downloading - and compiling unless you always do a make clean \
                afterwards.
-Malte

Charles wrote:

> Well.
> 
> It doesn't work.  Obviously, if it did, I wouldn't be posting this :)
> 
> I use a script to compile it.  It's as follows.  I download qt with rsync,
> download all the bzips (except i18n).  I'm doing this as root.  After a long
> long (long) (long) time, I get this error message:
> 
> make[4]: Entering directory `/home/charles/kde2/kdebase/kcontrol/kcontrol'
> /usr/lib/qt2.1/bin/moc ./main.h -o main.moc
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde2/include -I/usr/lib/qt2.1/include
> -I/usr/X11R6/include    -O2 -fno-exceptions -fno-rtti -fno-check-new -Wall -pe
> dantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long  -
> c main.cpp
> In file included from modules.h:41,
> from index.h:32,
> from toplevel.h:33,
> from main.cpp:43:
> proxymodule.h:37: KCModuleIface_stub.h: No such file or directory
> 
> The file KCModuleIface_stub.h doesn't exist, but a KCModuleIface.h does
> none of these have .cpp files.  I tried downloading these from two mirrors (the
> varesearch one, and another which I can't remember :).
> For the two times I ran this, I deleted /usr/lib/qt2.1 (as I think it is) and
> /opt/kde2  I deleted the source directories (after it was detarred) and I tried
> again.  Always exactly the same.
> 
> I'm not sure my diagnosis is correct, but I think that something is wrong ;)
> 
> I'm using:
> gcc version pgcc-2.91.66 19990314 (egcs-1.1.2 release)
> 
> Here is the script I used:
> 
> #!/bin/sh
> 
> ## Script to compile KDECVS from snapshots
> ## Adapted from script by Gerd Knorr <kraxel@goldbach.isdn.cs.tu-berlin.de>
> 
> src="$1"
> 
> KDEDIR=${KDEDIR-/opt/kde2}
> QTDIR=${QTDIR-/usr/qt2.1}
> export KDEDIR QTDIR
> export PATH="$PATH:/usr/lib/qt2.1/bin"
> 
> #########################################################################
> ## De-Compress, Build and Install QT snapshop ##
> 
> tar xvzf qt*
> rsync -a -v -z rsync.troll.no::qt qt2.1
> cd qt2.1
> export QTDIR="$PWD"
> ./configure -gif
> make
> cd ..
> mv qt2.1 /usr/lib/qt2.1 ||exit
> 
> PACKAGES="kdesupport kdelibs kdebase kdeadmin kdegames kdegraphics  kdemultimedia \
> kdenetwork kdeutils korganizer kdesdk kdevelop koffice shaman kdenonbeta" 
> for package in $PACKAGES
> do
> test -d $package && continue
> test -f $package*.gz && \
> tar xvzf $package*.gz
> test -f $package*.bz2 && \
> bzip2 -dc $package*.bz2 | tar xf -
> cd $package                             || exit
> 
> OPTS="--prefix="/opt/kde2" --with-qt-dir="/usr/lib/qt2.1" \
> --with-qt-includes="/usr/lib/qt2.1/include" \
> --with-qt-libraries="/usr/lib/qt2.1/lib"" #       if [ "$package" = "kdesupport" ]
> #               then OPTS="$OPTS --prefix=/usr/local"; fi
> if ./configure --help | grep -q shadow
> then OPTS="$OPTS --with-shadow --without-pam"; fi
> 
> #        ln -s ../kde-common.admin .            ||exit
> make -f Makefile.cvs                    ||exit
> ./configure $OPTS                                       || exit
> make                                                    || exit
> echo -e "\007installing $package now..."
> su -c "make install"                                    || exit
> cd ..
> done
> 
> echo -n "cleanup now [y/N] ? "
> read key
> if [ "$key" = "y" -o "$key" = "Y" ]; then
> for package in $PACKAGES
> do
> (cd $package; make clean)
> done
> fi
> 
> HELP!!!!!!!!
> 
> -Charles

--
Zivilisation ist der Weg des Menschen
aus der Höhle in den Atombunker


[Attachment #3 (text/html)]

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Well, your particular problem seems to be solved, then. From my own experience
- I've been using KDE 2 as my primary desktop for quite some time now -
I can only recommend using cvsup instead of the snapshots: Even though
most of the time the snapshots will compile, you can never know. A&nbsp;cvsup
of an existing tree saves a lot of time downloading - and compiling unless
you always do a make clean afterwards.
<br>-Malte
<p>Charles wrote:
<blockquote TYPE=CITE>Well.
<p>It doesn't work.&nbsp; Obviously, if it did, I wouldn't be posting this
> )
<p>I use a script to compile it.&nbsp; It's as follows.&nbsp; I download
qt with rsync,
<br>download all the bzips (except i18n).&nbsp; I'm doing this as root.&nbsp;
After a long
<br>long (long) (long) time, I get this error message:
<p>make[4]: Entering directory `/home/charles/kde2/kdebase/kcontrol/kcontrol'
<br>/usr/lib/qt2.1/bin/moc ./main.h -o main.moc
<br>g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde2/include -I/usr/lib/qt2.1/include
<br>&nbsp; -I/usr/X11R6/include&nbsp;&nbsp;&nbsp; -O2 -fno-exceptions -fno-rtti
-fno-check-new -Wall -pe
<br>dantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings \
                -Wno-long-long&nbsp;
-
<br>c main.cpp
<br>In file included from modules.h:41,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 from index.h:32,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 from toplevel.h:33,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 from main.cpp:43:
<br>proxymodule.h:37: KCModuleIface_stub.h: No such file or directory
<p>The file KCModuleIface_stub.h doesn't exist, but a KCModuleIface.h does
<br>none of these have .cpp files.&nbsp; I tried downloading these from
two mirrors (the
<br>varesearch one, and another which I can't remember :).
<br>For the two times I ran this, I deleted /usr/lib/qt2.1 (as I think
it is) and
<br>/opt/kde2&nbsp; I deleted the source directories (after it was detarred)
and I tried
<br>again.&nbsp; Always exactly the same.
<p>I'm not sure my diagnosis is correct, but I think that something is
wrong ;)
<p>I'm using:
<br>gcc version pgcc-2.91.66 19990314 (egcs-1.1.2 release)
<p>Here is the script I used:
<p>#!/bin/sh
<p>## Script to compile KDECVS from snapshots
<br>## Adapted from script by Gerd Knorr &lt;kraxel@goldbach.isdn.cs.tu-berlin.de>
<p>src="$1"
<p>KDEDIR=${KDEDIR-/opt/kde2}
<br>QTDIR=${QTDIR-/usr/qt2.1}
<br>export KDEDIR QTDIR
<br>export PATH="$PATH:/usr/lib/qt2.1/bin"
<p>#########################################################################
<br>## De-Compress, Build and Install QT snapshop ##
<p>tar xvzf qt*
<br>rsync -a -v -z rsync.troll.no::qt qt2.1
<br>cd qt2.1
<br>export QTDIR="$PWD"
<br>./configure -gif
<br>make
<br>cd ..
<br>mv qt2.1 /usr/lib/qt2.1 ||exit
<p>PACKAGES="kdesupport kdelibs kdebase kdeadmin kdegames kdegraphics&nbsp;
kdemultimedia kdenetwork kdeutils korganizer kdesdk kdevelop koffice shaman
kdenonbeta"
<p>for package in $PACKAGES
<br>do
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test -d $package &amp;&amp; continue
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test -f $package*.gz &amp;&amp;
\
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 tar xvzf $package*.gz
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test -f $package*.bz2 &amp;&amp;
\
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 bzip2 -dc $package*.bz2 | tar xf -
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cd \
$package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 || exit
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OPTS="--prefix="/opt/kde2"
--with-qt-dir="/usr/lib/qt2.1" --with-qt-includes="/usr/lib/qt2.1/include"
--with-qt-libraries="/usr/lib/qt2.1/lib""
<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ "$package" = "kdesupport"
]
<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 then OPTS="$OPTS --prefix=/usr/local"; fi
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ./configure --help |
grep -q shadow
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 then OPTS="$OPTS --with-shadow --without-pam"; fi
<p>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ln -s ../kde-common.admin
.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ||exit
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make -f \
Makefile.cvs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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;&nbsp;&nbsp;&nbsp; cd ..
<br>done
<p>echo -n "cleanup now [y/N] ? "
<br>read key
<br>if [ "$key" = "y" -o "$key" = "Y" ]; then
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for package in $PACKAGES
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 (cd $package; make clean)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done
<br>fi
<p>HELP!!!!!!!!
<p>-Charles</blockquote>

<pre>--&nbsp;
Zivilisation ist der Weg des Menschen
aus der H&ouml;hle in den Atombunker</pre>
&nbsp;</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic