Proposal for KDE 4.0

Michael Pyne pynm0001 at
Wed Aug 18 08:09:39 BST 2004

Hash: SHA1

On Wednesday 18 August 2004 01:34, David Johnson wrote:
> Except that it doesn't necessarily do away with the very awkward command
> line. Granted, the user isn't likely to be typing this in by hand, but
> it still makes an examination of a build log that much more painful on
> the eyes.

Here's a sample compilation command line that we have now (generated by the 
configure script used to build KDE PIM):
g++ -DHAVE_CONFIG_H -I./kitchensync/kitchensync/lib 
- -I/home/kde-cvs/kdecvs/kdepim/kitchensync/kitchensync/lib -I. 
- -I/home/kde-cvs/kdecvs/kdepim/kitchensync/libksync 
- -I/home/kde-cvs/kdecvs/kdepim/kitchensync/libkonnector2 
- -I/home/kde-cvs/kde/include -I/home/kde-cvs/kdecvs/build/qt-copy/include 
- -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 
- -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W 
- -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Os -g -pipe 
- -march=athlon-xp -fvisibility-inlines-hidden -Wformat-security 
- -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common 
- -c /home/kde-cvs/kdecvs/kdepim/kitchensync/kitchensync/lib/actionmanager.cpp 
- -o ./kitchensync/kitchensync/lib/.libs/actionmanager.o 
- -Wp,-MD,./kitchensync/kitchensync/lib/.deps/actionmanager.TUlo

I would dare say that this is much much more awkward than any command line 
pkg-config would make us use.  But let's say that we were typing in a command 
line by hand.  Explain how this is awkward (this is a sample only):

g++ -o small-program `pkg-config --libs --cflags qt-4 kdelibs-4` *.cpp

What I've had to use for my own small test program that I don't want to import 
an /admin for was:

export QTDIR=~/kde-cvs/build/qt-copy
export KDEDIR=~/kde-cvs/kde
g++ -o small-program -I$KDEDIR/include -I$QTDIR/include -L$KDEDIR/lib 
- -L$QTDIR/lib -lqt-mt -lkdeui -lkio *.cpp

So as an actual "user who occasionally types in their own command line", I 
would MUCH MUCH MUCH prefer the pkg-config proposal.

Assuming that we end up using pkg-config, this could also make the configure 
checks for KDE programs significantly simpler.

> Since KDE releases are much more "synchronous" and unified than the
> GNOME style, the need for this kind of namespace versioning is much
> less. I don't imagine many users will want to mix and match KDE
> components across major versions. If they really want to, or in the
> case of a migration, installing under different hierarchies should be
> sufficient.

Well we're already getting into that.  KDE PIM 3.3, for example, AFAIK relies 
on kdelibs 3.2, not 3.3.  And just because it may be less common doesn't make 
it less useful.

I'm not sure what exactly Ali has in mind for his proposal.  e.g. versioning 
every app/lib, or just the modules, but I think it's clear that versioning at 
*least* the modules can be very useful.

 - Michael Pyne
Version: GnuPG v1.2.4 (GNU/Linux)


More information about the kde-core-devel mailing list