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

Error compiling Krita on Fedora 22

Tags: None
(comma "," separated)
mvowada
Registered Member
Posts
322
Karma
1

Error compiling Krita on Fedora 22

Wed Jul 15, 2015 5:20 pm
Hello.
I'm trying to compile "Full Krita" on Fedora 22 64-bit but I'm getting an error with "Make" (see code below).
I think I have all the libraries requested here: https://community.kde.org/Calligra/Building#Fedora . I did:
Code: Select all
dnf builddep calligra
dnf install gcc gcc-c++

And as for note on compiling the VC library, I did:
Code: Select all
$ git clone https://gitlab.com/mkretz/vc.git
$ cd vc
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/Vc -DBUILD_TESTING=OFF ../
$ make -j16
$ sudo make install

Also, Cmake says that all the external packages were found: "Congratulations! All external packages have been found." and "The following product(set)s/features will be built ----------- KRITA: Full Krita".
What might be wrong?

Thank you

Code: Select all
In file included from /usr/include/c++/5.1.1/bits/stl_function.h:1128:0,
                 from /usr/include/c++/5.1.1/string:48,
                 from /usr/include/c++/5.1.1/bits/locale_classes.h:40,
                 from /usr/include/c++/5.1.1/bits/ios_base.h:41,
                 from /usr/include/c++/5.1.1/ios:42,
                 from /usr/include/c++/5.1.1/ostream:38,
                 from /usr/include/c++/5.1.1/iterator:64,
                 from /usr/include/QtCore/qlist.h:54,
                 from /usr/include/QtCore/qvector.h:48,
                 from /usr/include/QtCore/QVector:1,
                 from /home/grfhh/kde4/src/2.9/krita/image/kis_types.h:21,
                 from /home/grfhh/kde4/src/2.9/krita/image/layerstyles/kis_ls_utils.h:22,
                 from /home/grfhh/kde4/src/2.9/krita/image/layerstyles/kis_ls_utils.cpp:19:
/usr/include/c++/5.1.1/backward/binders.h:108:11: note: declared here
     class binder1st
           ^
Linking CXX shared library ../../lib/libkritaimage.so
[ 24%] Built target kritaimage
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Make sure you're using the 0.7 branch of Vc.
mvowada
Registered Member
Posts
322
Karma
1
boudewijn wrote:Make sure you're using the 0.7 branch of Vc.

Thank you for your hint boudewijn. I've tried "git checkout 0.7", recompiled and installed over the previous installation of VC.
I'm getting a different error now:
Code: Select all
[ 17%] [ 17%] Building CXX object libs/flake/CMakeFiles/flake.dir/svg/SvgClipPathHelper.cpp.o
Building CXX object libs/flake/CMakeFiles/flake.dir/svg/SvgLoadingContext.cpp.o
[ 17%] Building CXX object libs/flake/CMakeFiles/flake.dir/svg/SvgShapeFactory.cpp.o
Linking CXX shared library ../../lib/libflake.so
[ 17%] Built target flake
Linking CXX shared module ../../../lib/kolcmsengine.so
[ 17%] Built target kolcmsengine
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2

Hm...
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Hm, that paste does't containt hte actual error. Try make without -j to see the real error.
mvowada
Registered Member
Posts
322
Karma
1
boudewijn wrote:Hm, that paste does't containt hte actual error. Try make without -j to see the real error.

Thank you for the suggestion.
I was expecting an error, but it seems that only by using "make" (without the -j16 part) has helped on building Krita flawlessly.
I didn't change anything else before apart that.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Chances are that by running 16 concurrent make jobs, the cmputer got a bit warm, which can cause issues with memory which can cause the compiler to segfault... Especially in summer, I often have to restart builds because of that.
mvowada
Registered Member
Posts
322
Karma
1
boudewijn wrote:Chances are that by running 16 concurrent make jobs, the cmputer got a bit warm, which can cause issues with memory which can cause the compiler to segfault... Especially in summer, I often have to restart builds because of that.

Well, good to know, it's hot here. And btw, my wishes for a cool recovery! :-)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]