{"id":6,"date":"2006-03-08T00:29:32","date_gmt":"2006-03-07T13:29:32","guid":{"rendered":"http:\/\/noraisin.net\/~jan\/diary\/?p=6"},"modified":"2006-03-08T00:29:32","modified_gmt":"2006-03-07T13:29:32","slug":"running-kde-apps-out-of-tree","status":"publish","type":"post","link":"https:\/\/noraisin.net\/diary\/?p=6","title":{"rendered":"Running KDE apps out of tree"},"content":{"rendered":"<p>I&#8217;ve tried a couple of times over the last few weeks to build <a href=\"http:\/\/amarok.kde.org\/\">amaroK<\/a> out of subversion so that I can help with their GStreamer 0.10 powered backend.<\/p>\n<p>\nMy usual method of developing stuff is to have a checkout somewhere under ~\/devel. If the project supports running uninstalled, I&#8217;ll just work with it there. If it requires installation (as amaroK seems to), I like to install to ~\/install.<\/p>\n<p>\nUnder no circumstances will I install to \/usr, because it puts the package management system into weird states and it&#8217;s always a PITA to recover later. Plus, it makes <a href=\"http:\/\/www.advogato.org\/person\/thomasvs\/diary.html?start=147\">thomasvs<\/a> haemorrhage nastily.<\/p>\n<p>\nHow is this relevant? Well, I was given the impression that KDE apps absolutely need to be installed in the same prefix &#8211; unless I felt like building ALL of KDE in another prefix, I would need to install amaroK into \/usr. <\/p>\n<p>\nArmed with this knowledge, I tried building packages of an SVN snapshot. For some reason (again, I&#8217;m told) creating a snapshot tarball of amaroK&#8217;s SVN requires an active svn account, which I don&#8217;t have because I&#8217;m not a KDE developer. Hence, I would have to rely on someone else&#8217;s SVN snapshot tarballs to build packages from. In addition, building a package and installing it takes a relatively long time and would severely hamper my speed. I gave it up as a bad approach after spending around an hour to get a build package of amaroK 1.4.0-RC1 , and went off to do something productive.<\/p>\n<p>\nAbout a week later, I tackled the problem again. This time, markey mentioned a variable called KDEDIRS. It turns out that by doing:<\/p>\n<p>\nKDEDIRS=$HOME\/install<\/p>\n<p>\nall my problems magically go away &#8211; I can run &#8216;amarokapp&#8217; manually, debug it etc, and it correctly finds all its resources and whatnot in my preferred prefix.<\/p>\n<p>\nSo now, I have that exported from my ~\/.xsession-vars file, along with all my normal PATH, LD_LIBRARY_PATH,  PYTHONPATH and friends and everything just works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve tried a couple of times over the last few weeks to build amaroK out of subversion so that I can help with their GStreamer 0.10 powered backend. My usual method of developing stuff is to have a checkout somewhere under ~\/devel. If the project supports running uninstalled, I&#8217;ll just work with it there. If &hellip; <a href=\"https:\/\/noraisin.net\/diary\/?p=6\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Running KDE apps out of tree&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":0,"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions"}],"wp:attachment":[{"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/noraisin.net\/diary\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}