Be sure that you have no KDE-related applications: run the Windows Task Manager (taskmgr.exe), switch to its Processes tab, and kill all occurences of dbus-daemon.exe, kded4.exe, kioslave.exe and klauncher.exe (and all other KDE apps).

Be sure that you have no KDE-related applications: run the Windows Task Manager (taskmgr.exe), switch to its Processes tab, and kill all occurences of dbus-daemon.exe, kded4.exe, kioslave.exe and klauncher.exe (and all other KDE apps).

−

Open a Windows command prompt (cmd.exe) and navigate to the directory where you installed KDE. Say you installed KDE to C:\KDE4, then run from the cmd.exe window:<pre>C:\KDE4> '''bin\update-mime-database C:\KDE4\share\mime'''</pre>This will give you a lot of warning message. Most of them you can easily ignore; even if you should set [[KDE_System_Administration/Environment_Variables#XDG_DATA_HOME|XDG_DATA_HOME]] or [[KDE_System_Administration/Environment_Variables#XDG_DATA_DIRS|XDG_DATA_DIRS]] it worked perfectly. If it says you should rerun update-mime-database as root then you're not within your installation directory.

+

Open a Windows command prompt (cmd.exe) and navigate to the directory where you installed KDE. Say you installed KDE to C:\KDE4, then run from the cmd.exe window:

+

C:\KDE4> '''bin\update-mime-database C:\KDE4\share\mime'''

+

This will give you a lot of warning message. Most of them you can easily ignore; even if you should set [[KDE_System_Administration/Environment_Variables#XDG_DATA_HOME|XDG_DATA_HOME]] or [[KDE_System_Administration/Environment_Variables#XDG_DATA_DIRS|XDG_DATA_DIRS]] it worked perfectly. If it says you should rerun update-mime-database as root then you're not within your installation directory.

===Run kbuildsyscoca4===

===Run kbuildsyscoca4===

Revision as of 10:31, 2 February 2008

Note

Perhaps actual developers should summarize status of KDE4 on Windows here, while we encourage users to describe their experiences on the Talk page?

KDE Installer for Windows

You can use this installer to download and install the
various binary packages that you need to run KDE applications on MS Windows.
KDE is free and open source so you can build all the applications "from scratch" from their source code;
but as a convenience for others,
volunteers create these precompiled packages and make them available on the Internet.

Disclaimer These are early days for KDE4 on Windows,
some programs work better than others and some fail to run altogether.

If you experience any problems please have a look into our mailing list.

You can also use the KDE Installer for Windows to install source code and the packages that you need to build KDE4 on Windows
(although if you are building KDE4 on Windows you may prefer to use the emerge system to build KDE and its requirements from latest source);
see Getting Started/Build/KDE4/Windows.

Try running a Qt application in the bin directory, such as linguist.exe

If that works, try running a KDE application such as kwrite.exe.

Download needed packages

A single program in the The K Desktop Environment depends on many other libraries and packages; that is why each .exe is comparatively small.
The KDE Installer for Windows has some awareness of dependencies,
but not complete.
So, the first few times you try to run an application you may see alerts about missing DLLs.

If you do not intend to build from source, do not click "all" and do not click "src", as you do not need to download the source for each package. Unclear whether you need lib for each.

There are two development systems for KDE on Windows,
Microsoft's Visual C and MinGW.
Even if you are only running binaries and do not intend to build KDE4 yourself,
you need to choose between these because of the provided runtime environments.
You're free to decide which to take.

The KDE programs themselves are organized into several groups: kdeedu, kdegames, and kdegraphics.

Here are some of the minimal packages you need to run a KDE application:

dbus-msvc, kdebase-msvc, kdewin32-msvc, qt-msvc, vcredist, ??

The Dependencies tab for a particular package lists some of the additional packages it needs.
However, the dependency checking currently only works for first-level dependencies
Other dependencies are not easy to determine in advance.
For example, if you install kdegames only with its dependencies,
you will not be able to start it because you also need libstreamanalyze
(for which you have to install the strigi package).
rhabacker: This is fixed in installer version > 0.8.4.

Issues with KDE Installer for Windows

Currently no issues known. If you found an issue, please report to [1].

post-install steps

You currently need to run a number of command-line programs to set up KDE. Here are the steps.

Run update-mime-database

Be sure that you have no KDE-related applications: run the Windows Task Manager (taskmgr.exe), switch to its Processes tab, and kill all occurences of dbus-daemon.exe, kded4.exe, kioslave.exe and klauncher.exe (and all other KDE apps).

Open a Windows command prompt (cmd.exe) and navigate to the directory where you installed KDE. Say you installed KDE to C:\KDE4, then run from the cmd.exe window:

C:\KDE4> bin\update-mime-database C:\KDE4\share\mime

This will give you a lot of warning message. Most of them you can easily ignore; even if you should set XDG_DATA_HOME or XDG_DATA_DIRS it worked perfectly. If it says you should rerun update-mime-database as root then you're not within your installation directory.

Run kbuildsyscoca4

After finishing the previous step, run

C:\KDE4> '''bin\kbuildsycoca4 --noincremental'''

If this tells you that your disk is full (which is most probably not the case) you have still some executables from KDE running. Please close them and try again.

Excuse us for the inconvenience — we hope for a better solution in the next release.

Testing your installation

Navigate to the bin directory.

See if you can run the Qt program assistant.exe.
Qt programs have fewer dependencies than a full-blown KDE application.

If that works, try running a simple KDE application, such as kruler.exe from the kdegraphics package.

The first KDE application you run will start a console window in order to run the D-Bus daemon.

Fine-tuning

Set Oxygen style for widgets

The default KDE widget style on Windows is the native one. You already have Oxygen style installed (which is a plugin library %KDEROOT%\lib\kde4\plugins\styles\oxygen.dll), so it can be used as well. To set it for a single user:

Help > Program Handbook (often mapped to the [F1] key) does not work because the KDE Help Center is not available on Windows. This is due to its use of the K3Process interface and external dependencies not ported such as perl scripts, htdig, and other libraries.

khelpcenter will be included in the next unstable release. The K3Process issues are fixed now. Perl scripts are disabled, which means there is no fulltext search. -- rhabacker

Applications that try to play sounds will display an alert about "Multimedia Backend" problems. A Windows backend for Phonon is not packaged yet.

General notes:

There are many other KDE programs that are not part of KDE 4.0.0 and are not currently packaged for Windows, such as KOffice 2 and Amarok.