Compiling DigiKam: conflicting return type specified for virtual void Digikam::KipiInterface::preview(const QUrl&, int)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling DigiKam: conflicting return type specified for virtual void Digikam::KipiInterface::preview(const QUrl&, int)

Tobia Tesan
Hello, I'm having a particularly hard time compiling DigiKam.

I'm trying to build 71bed47 on a clean Fedora 23 machine, and I hit this
error:

> In file included from
> /home/tobia/Desktop/digikam/utilities/kdesupport/kipi/kipiimagecollectionselector.cpp:49:0:
> /home/tobia/Desktop/digikam/utilities/kdesupport/kipi/kipiinterface.h:86:12:
> error: conflicting return type specified for ‘virtual void
> Digikam::KipiInterface::preview(const QUrl&, int)’
>      void   preview(const QUrl& url, int resizedTo);
>             ^
> In file included from /usr/include/KF5/KIPI/KIPI/Interface:1:0,
>                  from
> /home/tobia/Desktop/digikam/utilities/kdesupport/kipi/kipiinterface.h:41,
>                  from
> /home/tobia/Desktop/digikam/utilities/kdesupport/kipi/kipiimagecollectionselector.cpp:49:
> /usr/include/KF5/KIPI/kipi/interface.h:356:20: error:   overriding
> ‘virtual QImage KIPI::Interface::preview(const QUrl&, int)’
>      virtual QImage preview(const QUrl& url, int minSize);
>                     ^

I am rather clueless.

On a fresh clone the command sequence:

> [tobia@Host-001 digikam]$ git show -s
> commit 71bed47d905e779fc9b009f930cfed4e8fff80ab
> Author: Maik Qualmann <[hidden email]>
> Date: Fri Mar 18 20:18:33 2016 +0100
>
> polish const and not needed includes
> [tobia@Host-001 digikam]$ git diff
> [tobia@Host-001 digikam]$ cmake . > cmake.log 2> cmake.err && make > make.log 2> make.err

yields:

make.log: http://pastebin.com/5B9EtuGh
make.err: http://pastebin.com/wL55bU3W
cmake.log: http://pastebin.com/WiSVcgQM
cmake.err: http://pastebin.com/YjkF4Aty

(Sorry for not attaching them directly, their length triggers a ML filter)

I have tried the latest tag, with the same results.

I also tried the digikam collection repository, but had a number of
other, different issues with building dependencies.

Is there a surefire, tested configuration to build digikam on?
A preferred distro I can install on a fresh VM?

Thank you very much.


--
Tobia Tesan
<[hidden email]>
<sip:[hidden email]>
"Computer science is no more about computers than astronomy is about
   telescopes."
      -- Edsger Dijkstra


_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling DigiKam: conflicting return type specified for virtual void Digikam::KipiInterface::preview(const QUrl&, int)

Gilles Caulier-4
your libkipi is outdated. You need current git/master code from libkipi to compile current digiKam until final digiKam release. libikipi API is not yet fully stabilized, and library is not yet released officially.

Gilles Caulier 

2016-03-19 18:06 GMT+01:00 Tobia Tesan <[hidden email]>:
Hello, I'm having a particularly hard time compiling DigiKam.

I'm trying to build 71bed47 on a clean Fedora 23 machine, and I hit this error:

In file included from
/home/tobia/Desktop/digikam/utilities/kdesupport/kipi/kipiimagecollectionselector.cpp:49:0:
/home/tobia/Desktop/digikam/utilities/kdesupport/kipi/kipiinterface.h:86:12:
error: conflicting return type specified for ‘virtual void
Digikam::KipiInterface::preview(const QUrl&, int)’
     void   preview(const QUrl& url, int resizedTo);
            ^
In file included from /usr/include/KF5/KIPI/KIPI/Interface:1:0,
                 from
/home/tobia/Desktop/digikam/utilities/kdesupport/kipi/kipiinterface.h:41,
                 from
/home/tobia/Desktop/digikam/utilities/kdesupport/kipi/kipiimagecollectionselector.cpp:49:
/usr/include/KF5/KIPI/kipi/interface.h:356:20: error:   overriding
‘virtual QImage KIPI::Interface::preview(const QUrl&, int)’
     virtual QImage preview(const QUrl& url, int minSize);
                    ^

I am rather clueless.

On a fresh clone the command sequence:

[tobia@Host-001 digikam]$ git show -s
commit 71bed47d905e779fc9b009f930cfed4e8fff80ab
Author: Maik Qualmann <[hidden email]>
Date: Fri Mar 18 20:18:33 2016 +0100

polish const and not needed includes
[tobia@Host-001 digikam]$ git diff
[tobia@Host-001 digikam]$ cmake . > cmake.log 2> cmake.err && make > make.log 2> make.err

yields:

make.log: http://pastebin.com/5B9EtuGh
make.err: http://pastebin.com/wL55bU3W
cmake.log: http://pastebin.com/WiSVcgQM
cmake.err: http://pastebin.com/YjkF4Aty

(Sorry for not attaching them directly, their length triggers a ML filter)

I have tried the latest tag, with the same results.

I also tried the digikam collection repository, but had a number of other, different issues with building dependencies.

Is there a surefire, tested configuration to build digikam on?
A preferred distro I can install on a fresh VM?

Thank you very much.


--
Tobia Tesan
<[hidden email]>
<[hidden email]>
"Computer science is no more about computers than astronomy is about
  telescopes."
     -- Edsger Dijkstra


_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel


_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling DigiKam: conflicting return type specified for virtual void Digikam::KipiInterface::preview(const QUrl&, int)

Tobia Tesan
On Sat, Mar 19, 2016 at 10:27 PM, Gilles Caulier <[hidden email]> wrote:
your libkipi is outdated. You need current git/master code from libkipi to compile current digiKam until final digiKam release. libikipi API is not yet fully stabilized, and library is not yet released officially.

Thanks, solved it.
I was building from the latest tag in libkipi thinking it was a good idea, since I wasn't able to build master.
I had to disable building of tests to finally get libkipi/master to build, though.
Thank you very much.


--
Tobia Tesan
<[hidden email]>


_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel