[Kroupware] HOWTO compile kroupware_branch CVS

Marc Mutz kroupware@mail.kde.org
Sat, 5 Oct 2002 22:24:13 +0200


--Boundary-03=_0p0n9YLwSR0JtuH
Content-Type: multipart/mixed;
  boundary="Boundary-01=_tp0n96iqBU9yyoo"
Content-Transfer-Encoding: 7bit
Content-Description: signed data
Content-Disposition: inline

--Boundary-01=_tp0n96iqBU9yyoo
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Description: body text
Content-Disposition: inline

Hi!

This should be quite easy:

1. Install Qt 3.1 beta2 either from troll's tarballs or from qt-copy=20
(kde cvs). Install 3.1 beta2 either from tarballs or from CVS (see=20
below) or however. Install all libs from kdesupport from rpm/deb:

libxml, libxslt, libaudiofile (don't forget the -devel packages).

kdesupport is no longer supported (sorry for the pun).

If you need to compile qt, do this in qt-copy:
export QTDIR=3D$PWD
make -f Makefile.cvs
yes yes | ./configure $(./default_arguments) #attached
make
ln -s . to the real QTDIR (e.g. /opt/kde-HEAD/qt-copy)

2. Create a .cvsrc like the one attached. Set CVSROOT to one of the anon=20
cvs servers (or cvs.kde.org if you have karma) and checkout the=20
following HEAD modules:

kdenetwork, kdepim

( cvs co kdenetwork kdepim )

In addition, checkout kdenetwork/kioslaves from kroupware_branch and=20
copy that subdir over to your kdenetwork checkout from above:

# untested cvs co -rkroupware_branch works, but takes longer
cvs co -l -rkroupware_branch kdenetwork
cd kdenetwork
cvs up -rkroupware_branch kioslaves
mv kioslaves /path/to/CVS-HEAD/kdenetwork
cd .. && rm -rf kdenetwork

3. Update to kroupware_branch:

for dir in kdenetwork/{mimelib,libkdenetwork,kmail,kioslaves} \
		kdepim/{korganizer,libkcal}; do
	(cd $dir && cvs up -rkroupware_branch . )
done

4. Make and install:

export QTDIR=3D/path/to/qt(-copy)
export KDEDIR=3D/path/to/kde
cd kdenetwork
make -f Makefile.cvs && ./configure --with-qt-dir=3D$QTDIR \
	--prefix=3D$KDEDIR --enable-mt --enable-debug --enable-warnings
su -c "make install"
# repeat for kdepim

=46or more info on how to get a working KDE-HEAD install w/o erasing an=20
old stable KDE HEAD and separating the configs of the two, see=20
www.kde.org/kde1-and-kde2.html.

I also attach my configure-shortcut script that works with the following=20
dir-structure:

$topdir/CVS/<modules> # srcdir
$topdir/build/<modules> # builddir

Copy it to $topdir/CVS, ln -s it to $topdir/build and you only need to=20
say "../conf" in the future ;-)

Marc

=2D-=20
Ich gegen meinen Bruder.
Ich und mein Bruder gegen unseren Cousin.
Ich, mein Bruder und unser Cousin gegen unsere Nachbarn.
Wir alle gegen den Fremden.
                                      -- Beduinen-Sprichwort

--Boundary-01=_tp0n96iqBU9yyoo
Content-Type: text/plain;
  charset="us-ascii";
  name=".cvsrc"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=".cvsrc"

cvs -z2 -q
diff -u3 -p
update -dP
checkout -P

--Boundary-01=_tp0n96iqBU9yyoo
Content-Type: application/x-shellscript;
  name="default_arguments"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="default_arguments"

#!/bin/bash
echo -system-{zlib,lib{png,jpeg}} -qt-gif -plugin-imgfmt-mng -thread -no-stl \
	-no-g++-exceptions -fast

--Boundary-01=_tp0n96iqBU9yyoo
Content-Type: application/x-shellscript;
  name="conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="conf"

#!/bin/bash
[ $KDEDIR ] || export KDEDIR=/opt/kde-HEAD
[ $QTDIR ] || export QTDIR=$KDEDIR/qt-copy

SRC_DIR="${PWD/build/CVS}"
BUILD_DIR="${PWD/CVS/build}"

echo cd $BUILD_DIR
[ -d "$BUILD_DIR" ] || mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR" || exit 1

echo "CXXFLAGS=-march=pentiumpro CFLAGS=-march=pentiumpro" $SRC_DIR/configure --prefix=$KDEDIR \
    --with-qt-include=$QTDIR/include --with-qt-libraries=$QTDIR/lib --enable-mt --enable-warnings "$@"
CXXFLAGS="-march=pentiumpro" CFLAGS="-march=pentiumpro" "$SRC_DIR"/configure --prefix=$KDEDIR \
    --with-qt-include=$QTDIR/include --with-qt-libraries=$QTDIR/lib --enable-mt --enable-warnings "$@"

--Boundary-01=_tp0n96iqBU9yyoo--

--Boundary-03=_0p0n9YLwSR0JtuH
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQA9n0p03oWD+L2/6DgRAuPSAKCowTj+M8jjMc2g6LpCrIeFbzZpZwCfX0dd
d2Z5Bq+Wq+tH+KK9Tm3IyRw=
=nO0u
-----END PGP SIGNATURE-----

--Boundary-03=_0p0n9YLwSR0JtuH--