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

List:       koffice-devel
Subject:    Re: KOffice Development tools
From:       Thomas Zander <zander () kde ! org>
Date:       2006-08-01 11:01:17
Message-ID: 200608011301.18365.zander () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


On Tuesday 1 August 2006 09:41, you wrote:
> Hey Thomas,
>
> after my Linux destroyed itself (*hmpf*) I have now a new system up and
> running ;) I also have KDE4 installed. Now I'm wondering _how_ you
> develop KOffice. Do you really boot into KDE4? Or do you work in KDE3
> but use tools from the KDE4 user? Which tools do you use?

Sure; I'll reply to list as others might want to steal some ideas as well.

I use several tools; but everything in konsole (vim / make etc).
I long ago decided to have a file in a project dir called 'env' which is a 
shellscript to setup the environment for that project.
Due to my extensive use of the 'screen' command I just cd into one of 
those project-dirs and start a screen there.
I added a
  if test -e 'env'; then
    source ./env
  fi
to my bashrc so every new shell I spawn in that screen uses the project 
settings.  Starting kword from that shell will start the one from my 
current project.

All this inside my favorite environment; which currently is kde3.5

I'll attach the kde and kde4 scripts.

Some notes about sources setup;
FIrst of all; I use only one account. I also never use root: 1 account!
I have a $HOME/sources/kde and a $HOME/sources/kde4 dir
with checkouts of kde modules like koffice.
These dirs are my 'projectdir's.
In each project dir I have a 'current' dir which will contain all my build 
files (for src!=build) and I use the aliases 'cb' and 'cs' to jump 
between them.
so;  I have, for example;
koffice [sources]
current/koffice [buildfiles]

cd into koffice and type 'fullCompile' to cmake and compile and install.

And, very optional, but quite usefull;
I have a darcs repository in $HOME/.etc which contains hardlinks to all 
files I use for this.  So my bash scripts, project scripts, my bin dir 
etc.  Very usefull to never suddenly loose anything due to a software bug 
as well as to duplicate my homedir setup on another machine within 5 min.

-- 
Thomas Zander

["kde3-env" (application/x-shellscript)]

#!/bin/bash
umask 002
export KDEDIR=/usr/local/kde
export QTDIR=/usr/lib/qt
alias maketags="ctags -R .koffice.tags koffice/1.6 kdebase kdelibs"
export DO_NOT_COMPILE="kppp kdvi doc kdetv kpovmodeler kexi"
export PATH=$KDEDIR/bin:$QTDIR/bin:$PATH:/home/zander/sources/kde/unsermake
export MANPATH=$MANPATH:$QTDIR/doc/man/man3
export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib/
export LDFLAGS="-L/usr/X11R6/lib"
export INSTALL="/usr/bin/install -p"
export OPTS=" --with-shadow --without-rpm --with-pam=yes --prefix=$KDEDIR \
--with-java=$JAVA_HOME --without-arts  --enable-kpdf-drm=no"

alias confqt='./configure -system-zlib -qt-gif -system-libpng -system-libjpeg \
-system-libpng -system-libmng -xft -plugin-imgfmt-mng -thread -no-exceptions -fast \
--prefix=/usr/local/kde/qt -dlopen-opengl -xrandr -L/usr/X11R6/lib \
-Istring=/usr/include' alias cs='cd `pwd | sed -e 's#kde/current#kde#'`'
alias cb='cd `pwd | sed -e 's#kde#kde/current#'`'
alias conf='`pwd | sed -e 's#kde/current#kde#'`/configure $OPTS'
alias make='unsermake --real-compare --print-progress'
alias doInstall='(cb && unsermake --real-compare --print-progress --compile-jobs=2 \
install)' alias confdebug='(cb && conf --enable-debug=full)'
alias fullCompile="make -f Makefile.cvs && confdebug && doInstall"
alias fullCompile-light="make -f Makefile.cvs && (cb && conf) && doInstall"
alias compile="clear && unsermake  2>&1 | less"
alias cdkw="cd /home/zander/sources/kde/koffice/1.6/kword"
alias makekw='(cb && make $KDEDIR/lib/libkwordprivate.la)'

export KDESVN="svn+ssh://zander@svn.kde.org/home/kde/"


["kde4-env" (application/x-shellscript)]

#!/bin/bash
umask 002
export KDEDIR=/usr/local/kde4
export QTDIR=$KDEDIR/qt
export QTEST_COLORED=1
unset KDEDIRS
export KDEHOME=$HOME/.kde4
export KDETMP=/tmp/$USER-kde4
mkdir -p $KDETMP
export KDEVARTMP=/var/tmp/$USER-kde4
export PKG_CONFIG_PATH=$QTDIR/lib:$KDEDIR/lib/pkgconfig
unset XDG_DATA_DIRS
unset XDG_CONFIG_DIRS
alias maketags="rm -f .vim.tags && find koffice/ kdebase/ kdelibs4_snapshot/ -name \
'*.h' | grep -v .svn | grep -v _darcs | grep -v kexi | ctags -Rf .vim.tags -L -" \
alias cdkw="cd ~/sources/kde4/koffice/kword/part" alias cdl="cd \
~/sources/kde4/koffice/libs" \
PATH=$KDEDIR/bin:$QTDIR/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:$HOME/bin
 export MANPATH=$MANPATH:$QTDIR/doc/man/man3
export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib/
export LDFLAGS="-L/usr/X11R6/lib"

alias doTailor='/usr/bin/tailor --configfile tailorConf'
alias cs='cd `pwd | sed -e 's#kde4/current#kde4#'`'
alias cb='cd `pwd | sed -e 's#kde4#kde4/current#'`'
OPTS="-DCMAKE_INSTALL_PREFIX=$KDEDIR -DX11_Xfixes_LIB=/usr/lib" # \
-DKDE4_IGNORE_DONTPORT=1 -DCMAKE_CXX_FLAGS:STRING=-fPIC -DCMAKE_C_FLAGS:STRING=-fPIC" \
alias fullCompile='x=`pwd | sed -e 's#kde/current#kde#'` && (cb && cmake $OPTS \
-DKDE4_BUILD_TESTS=1 -DCMAKE_BUILD_TYPE:STRING=debugfull $x && make VERBOSE= && make \
install)' alias fullCompile-light='x=`pwd | sed -e 's#kde/current#kde#'` && (cb && \
cmake -DCMAKE_BUILD_TYPE=nodebug $OPTS $x && make VERBOSE= && make install)' alias \
doInstall='(cb && make -j2 && make install)' alias compile='clear && (cb && make 2>&1 \
| more)' alias makekw='(cb && make install 2>&1)'

export KDESVN="svn+ssh://zander@svn.kde.org/home/kde/"

alias confqt='./configure -prefix $QTDIR -qt-gif -no-tablet -no-exceptions -debug \
-fast -Istring=/usr/include' alias installqt='make sub-src sub-tools && make \
sub-src-install_subtargets-ordered sub-tools-install_subtargets-ordered \
install_htmldocs install_mkspecs install_qmake'

# #initialize dbus daemon
if test -f .dbus; then
    source .dbus >/dev/null
fi
# test if still alive
if ! dbus 2>/dev/null >/dev/null; then
    umask 077 && /usr/bin/dbus-launch --auto-syntax > .dbus
    source .dbus > /dev/null
fi


[Attachment #9 (application/pgp-signature)]

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


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

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