Registered Member
|
Okay. Part of the build instructions for ktorrent 3 state
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. Doing that will install it wherever kde is (on my machine, that's /usr). Since I'm building it rather than using my distribution's (openSusE's) package manager, I'd like to install it in /usr/local so that I can easily remove it. So, I tried running cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ .. It builds fine, and it runs fine, except that there are no plugins available. The .so files are there, but apparently ktorrent fails to find them. If I install ktorrent in /usr/, then it finds the plugins just fine. Ideally, you should be able to install ktorrent anywhere on the system as long as it's able to locate the libraries it needs to build and run. It's certainly quite normal to install things in /usr/local/. So, it would be nice if ktorrent were fixed so that the plugins worked when ktorrent is not installed in `kde4-config --prefix`. |
Moderator
|
You need to fix your environment. Set the KDEDIRS environment variable to /usr/local, then rerun kbuildsycoca4 and start ktorrent. |
Registered Member
|
I would have thought that KDEDIRS would need to point to where the rest of KDE is, but I haven't built much KDE stuff recently, so I suppose that I made a newbie mistake. I'll have to try that then. Thanks.
|
Registered Member
|
Okay. I can get ktorrent to find the plugins if I set KDEDIRS to /usr/local on the commandline and run kbuildsyscoca4. However, I have to do that every time that I reboot my computer. Is there a way to make it permanent?
|
Registered Member
|
If I'm not wrong you can add it to agent startup script (/etc/kde/startup/agent-startup.sh) but don't know if it a good idea.
I would add it to .bash_profile |
Moderator
|
Yes, add it to ~/.bash_profile, that should work.
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]