Wednesday, November 22, 2006

A few tips for starting KDE4 development

If you want to start building KDE4, here are a few hints, gathered from the most frequent questions I hear.
Once again, it has to be stressed that neither KDE 3.5 nor KOffice 1.6 build with Qt4. They both need Qt3 only.
To get started with KDE4, just follow exactly this doc: http://developer.kde.org/build/trunk.html.
Use qt-copy instead of your distro qt4 and apply qt-copy patches. This ensures you have the correct qt version.
Set a new user as stated in the doc.
When you update the code, always start with qt-copy then kdelibs then kdepimlibs and the other modules.
If you upgrade your compiler, please rebuild everything, starting with qt-copy.
If you run into a build error, svn up the base modules (qt-copy, kdelibs, kdepimlibs) and retry. If the error persists, use make VERBOSE=1 to get more output.
I already blogged about this but it's often asked as well: Qt Designer in Qt4 does not allow you to include your own custom slots the way Designer from Qt3 did. Please read the Using a component in your application doc and implement your custom signals and slots in the subclass.
If you want to start a new KDE4 application from a template: KDevelop in KDE4 is not in a working stage yet. You can use KDevelop 3.4 and use the Qt4 template. You can also get the kdesdk module in KDE4 and build kapptemplate/ then run kapptemplate (choice 5) to get a nice KDE4 application template.
Hope it helps and have fun coding with Qt 4/KDE 4!

No comments: