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

Linking error when building Krita

Tags: None
(comma "," separated)
kkamg
Registered Member
Posts
5
Karma
0

Linking error when building Krita

Sat Sep 05, 2015 2:53 pm
I haven't built Krita before today. The system is Debian 7.8 wheezy running in a virtual machine. It generates a linker error whenever I try to build. I ran clean on the build directory right before this just to be sure something wasn't out of date. It halts at the same spot. The most recent output is shown below. Is there anything that might cause this? Cmake mentioned that a few optional libraries were not found, but nothing jumps out as obvious here.

It generates the following warnings
Code: Select all
In file included from /home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.cpp:18:0:
/home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.h: In constructor ‘KisShadeSelectorLine::KisShadeSelectorLine(KisColorSelectorBaseProxy*, QWidget*)’:
/home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.h:84:10: warning: ‘KisShadeSelectorLine::m_displayHelpText’ will be initialized after [-Wreorder]
/home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.h:79:25: warning:   ‘const KoColorSpace* KisShadeSelectorLine::m_cachedColorSpace’ [-Wreorder]
/home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.cpp:37:1: warning:   when initialized here [-Wreorder]
In file included from /home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.cpp:18:0:
/home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.h: In constructor ‘KisShadeSelectorLine::KisShadeSelectorLine(qreal, qreal, qreal, KisColorSelectorBaseProxy*, QWidget*, qreal, qreal, qreal)’:
/home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.h:84:10: warning: ‘KisShadeSelectorLine::m_displayHelpText’ will be initialized after [-Wreorder]
/home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.h:79:25: warning:   ‘const KoColorSpace* KisShadeSelectorLine::m_cachedColorSpace’ [-Wreorder]
/home/kaveh/kde4/src/calligra/krita/plugins/extensions/dockers/advancedcolorselector/kis_shade_selector_line.cpp:49:1: warning:   when initialized here [-Wreorder]
Linking CXX shared module ../../../../../lib/kritapatterndocker.so


It terminates with the following 2 linker errors.
Code: Select all
[ 78%] Building CXX object krita/plugins/formats/tiff/CMakeFiles/kritatiffexport.dir/kis_tiff_writer_visitor.cpp.o
[ 78%] Building CXX object krita/plugins/extensions/gmic/CMakeFiles/kritagmic.dir/kis_gmic_applicator.cpp.o
/home/kaveh/kde4/src/calligra/krita/plugins/formats/tiff/kis_tiff_converter.cc: In member function ‘KisImageBuilder_Result KisTIFFConverter::readTIFFDirectory(TIFF*)’:
/home/kaveh/kde4/src/calligra/krita/plugins/formats/tiff/kis_tiff_converter.cc:509:13: error: ‘tmsize_t’ was not declared in this scope
/home/kaveh/kde4/src/calligra/krita/plugins/formats/tiff/kis_tiff_converter.cc:509:22: error: expected ‘;’ before ‘baseSize’
/home/kaveh/kde4/src/calligra/krita/plugins/formats/tiff/kis_tiff_converter.cc:511:41: error: ‘baseSize’ was not declared in this scope
make[2]: *** [krita/plugins/formats/tiff/CMakeFiles/kritatiffexport.dir/kis_tiff_converter.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 78%] Building CXX object krita/plugins/paintops/libpaintop/CMakeFiles/kritalibpaintop.dir/kis_clipboard_brush_widget.cpp.o
[ 78%] Building CXX object krita/plugins/formats/jpeg/CMakeFiles/kritajpegimport.dir/kis_jpeg_source.cpp.o
make[1]: *** [krita/plugins/formats/tiff/CMakeFiles/kritatiffexport.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 78%] Building CXX object krita/plugins/formats/jpeg/CMakeFiles/kritajpegimport.dir/kis_jpeg_destination.cpp.o
[ 78%] Building C object krita/plugins/formats/jpeg/CMakeFiles/kritajpegimport.dir/3rdparty/lcms/iccjpeg.c.o
[ 78%] Building CXX object krita/plugins/paintops/libpaintop/CMakeFiles/kritalibpaintop.dir/kis_dynamic_sensor.cc.o
Linking CXX shared module ../../../../lib/kritajpegimport.so
Elle Stone
Registered Member
Posts
43
Karma
1
OS
I had a similar problem with Debian Testing about a month ago - the Krita build got just past gmic, and failed. I "solved" the problem by installing Gentoo. Sorry this isn't very helpful, except to let you know you aren't the only person to run into a similar issue on Debian.
arturg
Registered Member
Posts
27
Karma
0
Hi had similar problems, wich version of libwps do you have?
if its 0.4 try to apply the patch linked here
https://bugs.kde.org/show_bug.cgi?id=346421
kkamg
Registered Member
Posts
5
Karma
0

Re: Linking error when building Krita

Mon Sep 07, 2015 12:54 am
arturg wrote:Hi had similar problems, wich version of libwps do you have?


It's version 0.2.7-1. I just ran package updates, and it still shows that version.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
You don' t need libwps for Krita. The problem when building the tiff filter is the version of the tiff library that comes with Debian. Someone else mentioned it on IRC as well, but I cannot recall the fix right now.
kkamg
Registered Member
Posts
5
Karma
0
boudewijn wrote:You don' t need libwps for Krita. The problem when building the tiff filter is the version of the tiff library that comes with Debian. Someone else mentioned it on IRC as well, but I cannot recall the fix right now.


I scrolled back through the IRC. I didn't see it. I also ran a basic package update on Debian. It (sadly) did not update the tiff library. If you happen to come across the solution again, mind posting it? I'm going to set up a different flavor of Linux for now. I set up that vm specifically to build Krita. The choice of Debian was just because I like Debian and didn't see any Debian specific problems or bugs in the documentation.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Here's what I found in my log. I haven't tested it myself, I'm using opensuse...

04.09.2015-16:08 < beelzy> Oh, I was just building the experimental build with the enhancements.
04.09.2015-16:08 < beelzy> Don't worry; I already kind of know what the problem was.
04.09.2015-16:09 < beelzy> Just comment out the version check for tifflib. It just automatically adds the tm size variable without checking the version.
04.09.2015-16:09 < beelzy> And now it built successfully.


Bookmarks



Who is online

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