When developing your projects you will often need to install them somewhere safe. On my system I have a prefix full build of all Qt, KDE software, but this doesn’t work when we just want to work on an application or want to test a build in someone else’s system.
/usr doesn’t feel right,
/usr/local isn’t that much helpful either, so what I usually do is to create a sub-directory in
/opt/kalgebra), then it was a matter of having the session point at the right place. This is why I submitted a small change in ECM that generates a prefix.sh that sets the right environment variables.
This was merged a while ago, so it should be part of any distribution by now.
This is what the workflow ends up being. First we fetch and build the software we want, as usual:
$ git clone kde:kate $ mkdir build-kate $ cd build-kate $ cmake -DCMAKE_INSTALL_PREFIX=/opt/kate ../kate $ make $ make install
Then to run it, we just need to do the following:
$ source prefix.sh $ kate
And we’ll get our own kate, with the modifications we made.
Hope this helps!