Build errors with Krita on Windows in Debug configuration

Alvin Wong alvinhochun+krita at gmail.com
Wed May 23 21:13:59 UTC 2018


Making the Windows build in Debug config kind of doesn't work. It's a known
issue but I don't know exactly how it would've failed on the latest tree.
The error you're seeing might be due to something else though. You should
try to get a RelWithDebInfo build going first.

Boudewijn Rempt <boud at valdyas.org> 於 2018年5月23日週三 上午9:35寫道:

> On woensdag 23 mei 2018 00:12:25 CEST Nick Weihs wrote:
> > 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.
>
> I have to admit that I only build with RelWithDebInfo, which works. I know
> that we used to have problems building in Debug mode, but that was only
> with
> unittests, these look sort of new to me.
>
> >
> > 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(QSha
> > redPointer<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.cp
> > p: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.cp
> > p: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.cp
> > p: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::KisUniformPaintOpPropertyDoubleSlide
> > r(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.cp
> > p: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.cp
> > p: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
>
>
> --
> Boudewijn Rempt | https://www.valdyas.org | https://www.krita.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20180523/76e10190/attachment.html>


More information about the kimageshop mailing list