Build errors with Krita on Windows in Debug configuration

Nick Weihs nick.weihs at gmail.com
Tue May 22 22:12:25 UTC 2018


Hey all,

I'm using CLI cmake to build with latest from the Krita git repository, and
I've followed all the steps from the instructions from the 3rd party
folder.  Building in release works for me.  I've also tried doing a clean
first.

Here's what I'm seeing when linking libkritaui:

CMakeFiles\kritaui.dir/objects.a(kis_uniform_paintop_property_widget.cpp.obj):
In function
`KisUniformPaintOpPropertyIntSlider::KisUniformPaintOpPropertyIntSlider(QSharedPointer<KisUniformPaintOpProperty>,
QWidget*)':
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:81:
undefined reference to `KisSliderBasedPaintOpProperty<int>::max() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:81:(.text+0x496):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<int>::max() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:81:
undefined reference to `KisSliderBasedPaintOpProperty<int>::min() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:81:(.text+0x4a4):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<int>::min() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:82:
undefined reference to `KisSliderBasedPaintOpProperty<int>::singleStep()
const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:82:(.text+0x4c5):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<int>::singleStep() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:83:
undefined reference to `KisSliderBasedPaintOpProperty<int>::pageStep()
const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:83:(.text+0x4e3):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<int>::pageStep() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:85:
undefined reference to `KisSliderBasedPaintOpProperty<int>::suffix() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:85:(.text+0x51f):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<int>::suffix() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:86:
undefined reference to `KisSliderBasedPaintOpProperty<int>::exponentRatio()
const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:86:(.text+0x551):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<int>::exponentRatio() const'
CMakeFiles\kritaui.dir/objects.a(kis_uniform_paintop_property_widget.cpp.obj):
In function
`KisUniformPaintOpPropertyDoubleSlider::KisUniformPaintOpPropertyDoubleSlider(QSharedPointer<KisUniformPaintOpProperty>,
QWidget*)':
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:121:
undefined reference to `KisSliderBasedPaintOpProperty<double>::decimals()
const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:121:(.text+0x9e6):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<double>::decimals() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:121:
undefined reference to `KisSliderBasedPaintOpProperty<double>::max() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:121:(.text+0x9f4):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<double>::max() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:121:
undefined reference to `KisSliderBasedPaintOpProperty<double>::min() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:121:(.text+0xa05):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<double>::min() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:122:
undefined reference to `KisSliderBasedPaintOpProperty<double>::singleStep()
const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:122:(.text+0xa33):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`KisSliderBasedPaintOpProperty<double>::singleStep() const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:124:
undefined reference to `KisSliderBasedPaintOpProperty<double>::suffix()
const'
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:124:(.text+0xa77):
additional relocation overflows omitted from the output
C:/kritabuild/krita/libs/ui/brushhud/kis_uniform_paintop_property_widget.cpp:125:
undefined reference to
`KisSliderBasedPaintOpProperty<double>::exponentRatio() const'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [libs\ui\CMakeFiles\kritaui.dir\build.make:6409:
bin/libkritaui.dll] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:16766:
libs/ui/CMakeFiles/kritaui.dir/all] Error 2
mingw32-make.exe: *** [Makefile:140: all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20180522/9b10e97c/attachment.html>


More information about the kimageshop mailing list