KDE3To4

How to build KDE 4
edit print

Build instructions

for build instructions of KDE 4, please see
http://techbase.kde.org/Getting_Started/Build/KDE4external link

Start KDE 4 programs

To start the desktop environment itself, do:
X :1 &
export DISPLAY=:1
startkde

Maybe you are logged in as your normal user (not kde-devel), want to stay in your current environment (KDE 3.5, gnome, whatever) and start a KDE 4 program. To start only kwrite from KDE 4, do:
ssh -X kde-devel@localhost
kwrite


Compile your module

Now, we want to start compiling our module, e.g. kdepim. First, make sure the program qt3to4 has run over your code. Then, use the cool scripts from Laurent:
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk/scripts/qt4/

Then, you may run into the following problems:
  • VerticalAlignment is now part of QTextCharFormat.
  • kextsocket.h no longer exists. It should be replaced by kstreamsocket (for non-buffered mode) / kbufferedsocket (for buffered mode) / kserversocket (for passive mode).
    • The function setBlockingMode has to be replace by setBlocking
  • there is no longer a QCString, but a QByteArray delivered. For a more detailed explanation, read http://doc.trolltech.com/4.0/porting4.html.external link You need to convert the QByteArray to a char with the member data(). Example:
    one example comparison from websvn.kde.orgexternal link
    reference from Trolltechexternal link
  • WFlags are now Qt::WFlags

Sources and suggested readings



Contributors to this page: Anonymous .
Page last modified on Wednesday 04. April 2007 [17:35:02 UTC] by Anonymous.

The content on this page is licensed under the terms of the GNU Free Documentation License.


Toggle  Wiki
Toggle  Forums
Toggle  FAQs
20 online users