Reply to topic

Problem building and running KDevelop with Kdevelop

User avatar simgunz
Registered Member
Posts
55
Karma
0
OS
I have setup a new project in KDevelop to build KDevelop and configured a custom CMAKE_INSTALL_PREFIX. I manage to build KDevelop, but when I try to install it I get the following error:

Code: Select all
-- Installing: /usr/lib/qt/plugins/grantlee/5.2/kdev_filtersd.so
FAILED: CMakeFiles/install.util
cd /media/dataHD/development/kde/kde-projects/kdevelop/master/build && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
CMake Error at kdevplatform/template/filters/cmake_install.cmake:55 (file):
  file INSTALL cannot copy file
  "/media/dataHD/development/kde/kde-projects/kdevelop/master/build/grantlee/5.2/kdev_filtersd.so"
  to "/usr/lib/qt/plugins/grantlee/5.2/kdev_filtersd.so": Permission denied.


The problem seems that the variable KDE_INSTALL_PLUGINDIR is not set correctly. Shouldn't be this variable automatically set using the info in CMAKE_INSTALL_PREFIX?

The other files are correctly installed in the correct prefix.


Is it there a guide to build and run KDevelop with KDevelop?

The INSTALL file points to a tutorial where kdesrc-build is used, but in the spirit of 'Eat your own dog food' would be good to have a guide that shows how to use KDevelop itself to build and run KDevelop.
thomasfischer
Registered Member
Posts
10
Karma
0
I have exactly the same problem. Have you checked if there is a bug report about this problem or filed a bug report on your own at https://bugs.kde.org?
User avatar simgunz
Registered Member
Posts
55
Karma
0
OS
I have not opened a bug report because I was not even sure it is a bug or me doing something wrong when trying to build it. I searched now and there not seems to be any open bug regarding this.
thomasfischer
Registered Member
Posts
10
Karma
0
simgunz wrote:I have not opened a bug report because I was not even sure it is a bug or me doing something wrong when trying to build it. I searched now and there not seems to be any open bug regarding this.

Well, in this case you missed the report I created right after my posting in this forum: https://bugs.kde.org/show_bug.cgi?id=421621.
You can go there and add more information I may have missed.
User avatar simgunz
Registered Member
Posts
55
Karma
0
OS
I missed it because I searched only in the general section, my fault. Reading your bug report I am not sure your problem is the same as mine.

These are the commands I have used (I guess is the same with make instead of ninja):
Code: Select all
cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/usr -GNinja
ninja -j 4
ninja install


If from the build directory I do:
Code: Select all
ccmake .

I can see that CMAKE_INSTALL_PREFIX is correctly set to /tmp/usr (as in your case). Once I do ninja install all the files are correctly installed in /tmp/usr, only this file /usr/lib/qt/plugins/grantlee/5.2/kdev_filtersd.so is not installed there.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], exahamza, Google [Bot], jkurutz, Majestic-12 [Bot], razorrob, shevchuk, Sogou [Bot]