This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Unable to build krita

Tags: None
(comma "," separated)
mo
Registered Member
Posts
6
Karma
0

Unable to build krita

Mon Apr 20, 2020 3:50 pm
I am keen to contribute to krita developement and I have been trying to build krita for almost 8 days. However, there is always some module that refuses to build. First it was, kwayland then it was poppler. But luckily after reading the cmake logs I was able to install the required packages and build these modules.

However, krita still doesn't build. After looking at the cmake logs, I have figured that Quazip is not installed. After following the link https://stachenov.github.io/quazip/, I downloaded the tar.gz file and ran the following commands:

Code: Select all
$tar -xf quazip.tar.gz
$cd quazipfolder
$qmake
$make
$sudo make install


I didn't really understand the output after running these commands. There didn't seem to any error but again, I'm not really sure.

I installed qmake using this command:
Code: Select all
sudo apt-get install qt5-default


The cmake log also shows:
Code: Select all
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QUAZIP_INCLUDE_DIR
   used as include directory in directory /home/mo/kde/src/krita/libs/store
    ......................
    ...................

I have no idea what this means. I am new to Ubuntu, KDE and open source developement, so I might not be able to understand everything the logs and command output display.

However, after trying to install quazip using the tar.gz files and the above commands, I again try to build krita using
Code: Select all
kdesrc-build krita
and it displayed the same error in cmake log.
I have run out of options on how to install Quazip and build krita. Also I don't know how to set the variables mentioned in the Cmake log. My primary goal is to build krita, explore the codebase and try to contribute.

It would be really great if someone can help me building krita. Do let me know if any additional information is required. Thank you for your time.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Unable to build krita

Mon Apr 20, 2020 4:50 pm
Make sure you install the distribution version of quazip_5_ -- for Qt5. libquazip5-dev is the package name.
mo
Registered Member
Posts
6
Karma
0

Re: Unable to build krita

Mon Apr 20, 2020 7:07 pm
Thank you that seemed to work but the build still failed. I get this on the terminal:
Code: Select all
There is probably a local error causing this kind of consistent failure, it
is recommended to verify no issues on the system


The errors are also logged in install.log. These are the contents:

Code: Select all
# kdesrc-build running: 'make' 'install/fast'
# from directory: /home/mo/kde/build/krita
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /home/mo/kde/usr/lib/x86_64-linux-gnu/libkritaversion.so.17.0.0
-- Installing: /home/mo/kde/usr/lib/x86_64-linux-gnu/libkritaversion.so.17
-- Installing: /home/mo/kde/usr/lib/x86_64-linux-gnu/libkritaversion.so
-- Set runtime path of "/home/mo/kde/usr/lib/x86_64-linux-gnu/libkritaversion.so.17.0.0" to "/home/mo/kde/usr/lib/x86_64-linux-gnu:/home/mo/kde/qt5/lib"
-- Installing: /home/mo/kde/usr/lib/x86_64-linux-gnu/libkritaglobal.so.17.0.0
CMake Error at libs/global/cmake_install.cmake:53 (file):
  file INSTALL cannot copy file
  "/home/mo/kde/build/krita/libs/global/libkritaglobal.so.17.0.0" to
  "/home/mo/kde/usr/lib/x86_64-linux-gnu/libkritaglobal.so.17.0.0".
Call Stack (most recent call first):
  libs/cmake_install.cmake:43 (include)
  cmake_install.cmake:42 (include)


Makefile:79: recipe for target 'install/fast' failed
make: *** [install/fast] Error 1
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Unable to build krita

Mon Apr 20, 2020 7:25 pm
That looks like a permissions problem; something was written their as another user, maybe as root, and you cannot overwrite it.
mo
Registered Member
Posts
6
Karma
0

Re: Unable to build krita

Mon Apr 20, 2020 7:27 pm
I don't know how to fix this. Could you please guide me?
mo
Registered Member
Posts
6
Karma
0

Re: Unable to build krita

Mon Apr 20, 2020 7:40 pm
On checking the x86_64-linux-gnu folder, I can see that the libkritaglobal.so.17.0.0 already exists. Should I delete it and try building again?
mo
Registered Member
Posts
6
Karma
0

Re: Unable to build krita

Tue Apr 21, 2020 12:27 am
I think the error was due to lack of storage space on my system. Expanded the storage and all my modules were built successfully.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar