Getting KCacheGrind for xDebug on Windows with KDE

As I am playing around with xDebug, I need a profile file GUI. I tried WinCacheGrind, but as it is two years out of date, I wished to try KCacheGrind as well.

So, how do you install a Linux KDE application on windowsXP?

As it turns out, quite easily.

Here’s how…

1. download the installer to C:\KDE4 from here:
http://download.cegit.de/kde-windows/installer/

2. Run the installer
2.1 Choose you packages, I choose all of them.
(NOTE: KCacheGrind needs Kdesdk package)

3. Add “C:\KDE4\lib” to the %PATH%
3.1. Start > Control Panel > System > Advanced > Environment Variables, Select PATH, click [edit]..

4. Create env variable KDEDIRS with value “C:\KDE4″
4.1 Start > Control Panel > System > Advanced > Environment Variables, click [New]

5. Do this… at a command prompt
(temporarily needed, check KDE link below to verify)
cd C:\KDE4
C:\KDE4> bin\update-mime-database C:\KDE4\share\mime
C:\KDE4> bin\kbuildsycoca4 –noincremental

THAT’S IT…. ALL DONE. How quick was that…

6. Testing…
run c:\KDE4\bin\assistant.exe to test a QT program.

Now run KCACHEGRIND..
run c:\KDE4\bin\kcachegrind.exe

These instruction are a summary of the KDE on Windows project

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Reddit
  • Slashdot
  • StumbleUpon

5 Responses to “Getting KCacheGrind for xDebug on Windows with KDE”

  1. Сотворил.ру Says:

    [...] ставлю KDE for Windows, по причине того, что нашел рецептик, в  котором написано как запустить КСаcheGrind на [...]

  2. Sidd Says:

    Thanks for the tutorial. Very helpful.

    A couple of points where I struggled.
    1. I use Vista 64 bit. So there was a problem installing KDE and also running the command about the update-mime thing. The solution to that is to google for and download libintl3.dll and put it in the bin folder of KDE.
    2. The 2nd problem I had was that GraphViz was not installed. I didn’t find the GraphViz package for KDE in the KDE installer. It was probably there somewhere but I couldn’t find it. So I installed GraphViz for Windows separately (from graphviz.org). Then I added the bin/ folder of GraphViz also to the PATH environment variable.

  3. твoятaтapoчкa Says:

    Вообще-то, многое из того, что Вы пишете не совсем так… Ну да ладно :)

  4. Bernard Says:

    I tried the tutorial and it did not work for me today (21 october 2009).

    I used the packager kdewin-installer-gui-latest.exe (0.9.6-4) with the default parameters (latest build 4.3.2 with all packages in the compiler mode MSVC 32 bit). It installed KDE without problems but KCacheGrind was not installed.

    After some tries, I have finally deleted the previous install, restarted the packager with the compiler mode set to MinGW (neither MinGW4 neither MSVC 32bit), selected the release 4.1.00 and chosen just the packages kdesk and kwebdev (~).

    And shazam, I got kcachegrind installed and working.

    Maybe this can help someone else.

    Best regards

    Sidenote: I had also changed the installation folder to C:\KDE.

  5. FlorentG Says:

    Following Bernard’s port, note that the release 4.1.0 of KDE appears to be unavailable on several mirrors (only some of the 4.3 branch are).

    You may need to select “winkde.org” as a mirror.

Leave a Reply

Byting the hand that feeds you…