CMake prefix path

March 7th 2009 06:59 pm

I remembered reading the discussion on kde-buildsystem about CMake 2.6′s CMAKE_PREFIX_PATH environment variable. I just forgot to add it to kdesvn-build.

Today it finally caught up with me: A build failure I was having ended up being due to not having CMAKE_PREFIX_PATH defined. Although adding it to the environment manually certainly works, it’s something that should have been in kdesvn-build. Well, it is now, at least in the /trunk version of kdesvn-build. It will also be in the next release of kdesvn-build.

My recommended workaround until then is simply to manually export CMAKE_PREFIX_PATH=/path/to/kde/install/prefix before running kdesvn-build (easiest would be to add to your .bashrc). Otherwise if you have a system KDE 4 (or the dependencies, like akonadi, strigi, etc.) then there is a good chance CMake will prefer the system installation to your kdesvn-build install and you’ll have build problems for modules expecting the trunk version of various dependencies.

Posted by mpyne under Computing Troubles & KDE & kdesvn-build | 4 Comments »

4 Responses to “CMake prefix path”

  1. Gianluca Identicon Icon Gianluca responded on 08 Mar 2009 at 04:36 #

    Why don’t you release a stable version (1.8.1?) with this issue resolved?

  2. Accorgimento per compilare Amarok, K3B e altri « pollycoke :) responded on 08 Mar 2009 at 13:13 #

    [...] segnalato in MessageBox (grazie, ma perché non ti firmi?), esiste un piccolo problema in Kdesvn-build che ostacola la compilazione di alcuni moduli quali Amarok e K3B in Extragear. Nell’attesa di [...]

  3. mpyne Identicon Icon mpyne responded on 08 Mar 2009 at 13:29 #

    I will, but I’m also not going to fall over myself doing so since there’s several perfectly good workarounds in place. The patch I used was more than a simple one-liner, so until I’ve had people using it for a few days so I know it doesn’t break for anyone, I’m not going to release a “stable” upgrade. Once I feel confident it’s well-tested I’ll make a release.

    I will note you can also use set-env in your kdesvn-buildrc to accomplish the same thing with the current release of kdesvn-build. i.e. if you had a install dir of $HOME/kde-4:

    global
    … other global options
    set-env CMAKE_PREFIX_PATH /home/user/kde-4
    end global

  4. » Accorgimento per compilare Amarok, K3B e altri responded on 08 Mar 2009 at 18:46 #

    [...] segnalato in MessageBox (grazie, ma perché non ti firmi?), esiste un piccolo problema in Kdesvn-build che ostacola la compilazione di alcuni moduli quali Amarok e K3B in Extragear. Nell’attesa di [...]

Trackback URI | Comments RSS

Leave a Reply