[Digikam-devel] Compiling DigiKam: conflicting return type specified for virtual void Digikam::KipiInterface::preview(const QUrl&, int)
Tobia Tesan
tobia.tesan at gmail.com
Sat Mar 19 16:53:46 GMT 2016
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.
Please find the attached full output from:
> cmake . > cmake.log 2> cmake.err && make > make.log 2> make.err
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
<tobia.tesan at gmail.com>
<sip:tobia.tesan at ekiga.net>
"Computer science is no more about computers than astronomy is about
telescopes."
-- Edsger Dijkstra
-------------- next part --------------
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
Could not find a package configuration file provided by "KF5AkonadiContact"
(requested version 4.89.0) with any of the following names:
KF5AkonadiContactConfig.cmake
kf5akonadicontact-config.cmake
Add the installation prefix of "KF5AkonadiContact" to CMAKE_PREFIX_PATH or
set "KF5AkonadiContact_DIR" to a directory containing one of the above
files. If "KF5AkonadiContact" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:171 (find_package)
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
Could not find a package configuration file provided by "KF5CalendarCore"
(requested version 4.81.0) with any of the following names:
KF5CalendarCoreConfig.cmake
kf5calendarcore-config.cmake
Add the installation prefix of "KF5CalendarCore" to CMAKE_PREFIX_PATH or
set "KF5CalendarCore_DIR" to a directory containing one of the above files.
If "KF5CalendarCore" provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:176 (find_package)
CMake Warning at cmake/modules/MacroLocalLibs.cmake:69 (find_package):
By not providing "FindKF5Sane.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "KF5Sane", but
CMake did not find one.
Could not find a package configuration file provided by "KF5Sane"
(requested version 5.0.0) with any of the following names:
KF5SaneConfig.cmake
kf5sane-config.cmake
Add the installation prefix of "KF5Sane" to CMAKE_PREFIX_PATH or set
"KF5Sane_DIR" to a directory containing one of the above files. If
"KF5Sane" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:249 (DETECT_LIBKSANE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake.log
Type: text/x-log
Size: 12037 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20160319/6a34a3a9/attachment.bin>
-------------- next part --------------
/home/tobia/Desktop/digikam/libs/jpegutils/libjpeg-62/transupp.c: In function ‘jtransform_adjust_parameters’:
/home/tobia/Desktop/digikam/libs/jpegutils/libjpeg-62/transupp.c:732:48: warning: unused parameter ‘srcinfo’ [-Wunused-parameter]
jtransform_adjust_parameters (j_decompress_ptr srcinfo,
^
/home/tobia/Desktop/digikam/libs/jpegutils/libjpeg-62/transupp.c: In function ‘jcopy_markers_execute’:
/home/tobia/Desktop/digikam/libs/jpegutils/libjpeg-62/transupp.c:887:23: warning: unused parameter ‘option’ [-Wunused-parameter]
JCOPY_OPTION option)
^
/home/tobia/Desktop/digikam/app/utils/digikam_globals.cpp: In function ‘QStringList Digikam::supportedImageMimeTypes(QIODevice::OpenModeFlag, QString&)’:
/home/tobia/Desktop/digikam/app/utils/digikam_globals.cpp:81:10: warning: unused variable ‘jp2k’ [-Wunused-variable]
bool jp2k = false;
^
/home/tobia/Desktop/digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp: In member function ‘void Digikam::RawSettingsBox::slotFileDialogAboutToOpen()’:
/home/tobia/Desktop/digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp:510:27: note: #pragma message: PORT QT5
#pragma message("PORT QT5")
^
/home/tobia/Desktop/digikam/libs/tags/tagsactionmngr.cpp: In member function ‘bool Digikam::TagsActionMngr::createRatingActionShortcut(KActionCollection*, int)’:
/home/tobia/Desktop/digikam/libs/tags/tagsactionmngr.cpp:213:27: note: #pragma message: PORT QT5
#pragma message("PORT QT5")
^
/home/tobia/Desktop/digikam/libs/tags/tagsactionmngr.cpp: In member function ‘bool Digikam::TagsActionMngr::createPickLabelActionShortcut(KActionCollection*, int)’:
/home/tobia/Desktop/digikam/libs/tags/tagsactionmngr.cpp:236:27: note: #pragma message: PORT QT5
#pragma message("PORT QT5")
^
/home/tobia/Desktop/digikam/libs/tags/tagsactionmngr.cpp: In member function ‘bool Digikam::TagsActionMngr::createColorLabelActionShortcut(KActionCollection*, int)’:
/home/tobia/Desktop/digikam/libs/tags/tagsactionmngr.cpp:259:27: note: #pragma message: PORT QT5
#pragma message("PORT QT5")
^
/home/tobia/Desktop/digikam/libs/tags/tagsactionmngr.cpp: In member function ‘bool Digikam::TagsActionMngr::createTagActionShortcut(int)’:
/home/tobia/Desktop/digikam/libs/tags/tagsactionmngr.cpp:310:27: note: #pragma message: PORT QT5
#pragma message("PORT QT5")
^
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);
^
/usr/include/KF5/KIPI/kipi/interface.h:377:18: warning: ‘virtual void KIPI::Interface::preview(const QUrl&, int, int)’ was hidden [-Woverloaded-virtual]
virtual void preview(const QUrl& url, int minSize, int resizedTo=-1);
^
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: warning: by ‘Digikam::KipiInterface::preview’ [-Woverloaded-virtual]
void preview(const QUrl& url, int resizedTo);
^
make[2]: *** [utilities/kdesupport/kipi/CMakeFiles/kipiiface_src.dir/kipiimagecollectionselector.cpp.o] Error 1
make[1]: *** [utilities/kdesupport/kipi/CMakeFiles/kipiiface_src.dir/all] Error 2
make: *** [all] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: text/x-log
Size: 138374 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20160319/6a34a3a9/attachment-0001.bin>
-------------- next part --------------
[tobia at Host-001 digikam]$ git show -s
commit 71bed47d905e779fc9b009f930cfed4e8fff80ab
Author: Maik Qualmann <metzpinguin at gmail.com>
Date: Fri Mar 18 20:18:33 2016 +0100
polish const and not needed includes
[tobia at Host-001 digikam]$ git diff
[tobia at Host-001 digikam]$ cmake . > cmake.log 2> cmake.err && make > make.log 2> make.err
More information about the Digikam-devel
mailing list