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

Building Krita from Source

Tags: None
(comma "," separated)
mayuan
Registered Member
Posts
3
Karma
0

Building Krita from Source

Tue Nov 03, 2020 2:46 am
By not providing "FindECM.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ECM", but
CMake did not find one.

Could not find a package configuration file provided by "ECM" (requested
version 5.22) with any of the following names:

ECMConfig.cmake
ecm-config.cmake

Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
to a directory containing one of the above files. If "ECM" provides a
separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "C:/dev/b_krita/CMakeFiles/CMakeOutput.log".
ERROR: CMake configure failed
User avatar
tymond
KDE Developer
Posts
240
Karma
5

Re: Building Krita from Source

Wed Nov 04, 2020 3:20 am
Hi, you already made a new post here: viewtopic.php?f=288&t=168556 , if you didn't know what to do next despite Boud's answer, or you wanted to get more information etc., it would be much better to just follow up there, asking for more help, telling where did you get in that manual etc. Just making a new thread with nearly the exact same message is not kind for other forum users.

In the manual link Boud gave you (https://docs.krita.org/en/untranslatabl ... g-on-linux) there is information what to do in case of this error: you need to install dependencies (in this case, the dependency is called "extra-cmake-modules"). On Ubuntu you should be able to just call (possibly with sudo):

apt-get build-dep krita


And start cmake again. If it doesn't help for the specific ECM error above,

You might need to enable the deb-src repositories by eding /etc/apt/sources.list (see https://help.ubuntu.com/community/Repos ... ommandLine) or, if you’re using the KDE Plasma desktop, enabling them in the the Settings of the Discover application.


Have you tried this?

Otherwise you'll need to chase all the dependencies yourself using apt-cache or some equivalent. I have a list of dependencies for Linux Mint (and it should work on other Ubuntu-based systems, too), but since it's much easier to use the build-dep option, it would be better if you first try that one.
User avatar
dmlr
Registered Member
Posts
1
Karma
0
OS

Re: Building Krita from Source

Wed Mar 09, 2022 10:58 pm
I was trying to compile it in manjaro and I installed ecm-tools and still the same error

Until I'd ask the correct question and it reveal to me that it was the extra-cmake-modules
Kind of stupid, and that its solved by the apt-get build-dep or at least is something that it didn't happen to me when i was compile it in ubuntu.

if someone newbie it's trying the same, I home this help.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell