unable to compile 4.12

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

unable to compile 4.12

Luca Ferrari
Hi all,
I'm trying to compile 4.12 on my kubuntu box 14.10, but compilation
fails as follows (I've tried building with either 1t5 or 1t4 without
any success). I'm running KDE 4.14.1. Any idea?

Thanks.

% make
[  0%] Built target kexiv2_automoc
[  0%] Building CXX object
extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2.cpp.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QFile:1:0,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:47,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfile.h:100:5: warning:
"QT_DEPRECATED_SINCE" is not defined [-Wundef]
 #if QT_DEPRECATED_SINCE(5,0)
     ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfile.h:100:24: error:
missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5,0)
                        ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QTextCodec:1:0,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:51,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextcodec.h:73:5: warning:
"QT_DEPRECATED_SINCE" is not defined [-Wundef]
 #if QT_DEPRECATED_SINCE(5, 0)
     ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextcodec.h:73:24: error:
missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from /usr/include/qt4/QtCore/qsharedpointer_impl.h:63:0,
                 from /usr/include/qt4/QtCore/qsharedpointer.h:50,
                 from /usr/include/qt4/QtCore/qdatetime.h:47,
                 from /usr/include/qt4/QtCore/QDateTime:1,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.h:41,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:28:
/usr/include/qt4/QtCore/qobject.h:290:18: warning: ‘virtual void
QObject::connectNotify(const char*)’ was hidden [-Woverloaded-virtual]
     virtual void connectNotify(const char *signal);
                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QBuffer:1:0,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:46,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qbuffer.h:89:10: warning:
by ‘void QBuffer::connectNotify(const QMetaMethod&)’
[-Woverloaded-virtual]
     void connectNotify(const QMetaMethod &);
          ^
In file included from /usr/include/qt4/QtCore/qsharedpointer_impl.h:63:0,
                 from /usr/include/qt4/QtCore/qsharedpointer.h:50,
                 from /usr/include/qt4/QtCore/qdatetime.h:47,
                 from /usr/include/qt4/QtCore/QDateTime:1,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.h:41,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:28:
/usr/include/qt4/QtCore/qobject.h:291:18: warning: ‘virtual void
QObject::disconnectNotify(const char*)’ was hidden
[-Woverloaded-virtual]
     virtual void disconnectNotify(const char *signal);
                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QBuffer:1:0,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:46,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qbuffer.h:90:10: warning:
by ‘void QBuffer::disconnectNotify(const QMetaMethod&)’
[-Woverloaded-virtual]
     void disconnectNotify(const QMetaMethod &);
          ^
In file included from /usr/include/qt4/QtCore/qatomic.h:45:0,
                 from /usr/include/qt4/QtCore/qbytearray.h:45,
                 from /usr/include/qt4/QtCore/QByteArray:1,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.h:39,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h: In function
‘bool qIsDetached(T&) [with T = QFileInfo]’:
/usr/include/qt4/QtCore/qglobal.h:2330:63: error: ‘class QFileInfo’
has no member named ‘isDetached’
 template <> inline bool qIsDetached<TYPE>(TYPE &t) { return t.isDetached(); } \
                                                               ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:153:1: note: in
expansion of macro ‘Q_DECLARE_SHARED’
 Q_DECLARE_SHARED(QFileInfo)
 ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h: In function
‘void qSwap(T&, T&) [with T = QFileInfo]’:
/usr/include/qt4/QtCore/qglobal.h:2332:16: error: ‘class QFileInfo’
has no member named ‘data_ptr’
 { qSwap(value1.data_ptr(), value2.data_ptr()); } \
                ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:153:1: note: in
expansion of macro ‘Q_DECLARE_SHARED’
 Q_DECLARE_SHARED(QFileInfo)
 ^
/usr/include/qt4/QtCore/qglobal.h:2332:35: error: ‘class QFileInfo’
has no member named ‘data_ptr’
 { qSwap(value1.data_ptr(), value2.data_ptr()); } \
                                   ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:153:1: note: in
expansion of macro ‘Q_DECLARE_SHARED’
 Q_DECLARE_SHARED(QFileInfo)
 ^
In file included from /usr/include/qt4/QtCore/QTemporaryFile:1:0,
                 from /usr/include/ktemporaryfile.h:27,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:59,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/qt4/QtCore/qtemporaryfile.h: At global scope:
/usr/include/qt4/QtCore/qtemporaryfile.h:92:13: error:
‘QAbstractFileEngine’ does not name a type
     virtual QAbstractFileEngine *fileEngine() const;
             ^
extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/build.make:77: recipe
for target 'extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2.cpp.o'
failed
make[2]: *** [extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2.cpp.o]
Error 1
CMakeFiles/Makefile2:1032: recipe for target
'extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/all' failed
make[1]: *** [extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/all] Error 2
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: unable to compile 4.12

Gilles Caulier-4
You use qt5 where qt4 is needs

Gilles caulier

Le mercredi 7 octobre 2015, Luca Ferrari <[hidden email]> a écrit :
Hi all,
I'm trying to compile 4.12 on my kubuntu box 14.10, but compilation
fails as follows (I've tried building with either 1t5 or 1t4 without
any success). I'm running KDE 4.14.1. Any idea?

Thanks.

% make
[  0%] Built target kexiv2_automoc
[  0%] Building CXX object
extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2.cpp.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QFile:1:0,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:47,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfile.h:100:5: warning:
"QT_DEPRECATED_SINCE" is not defined [-Wundef]
 #if QT_DEPRECATED_SINCE(5,0)
     ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfile.h:100:24: error:
missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5,0)
                        ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QTextCodec:1:0,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:51,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextcodec.h:73:5: warning:
"QT_DEPRECATED_SINCE" is not defined [-Wundef]
 #if QT_DEPRECATED_SINCE(5, 0)
     ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextcodec.h:73:24: error:
missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from /usr/include/qt4/QtCore/qsharedpointer_impl.h:63:0,
                 from /usr/include/qt4/QtCore/qsharedpointer.h:50,
                 from /usr/include/qt4/QtCore/qdatetime.h:47,
                 from /usr/include/qt4/QtCore/QDateTime:1,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.h:41,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:28:
/usr/include/qt4/QtCore/qobject.h:290:18: warning: ‘virtual void
QObject::connectNotify(const char*)’ was hidden [-Woverloaded-virtual]
     virtual void connectNotify(const char *signal);
                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QBuffer:1:0,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:46,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qbuffer.h:89:10: warning:
by ‘void QBuffer::connectNotify(const QMetaMethod&)’
[-Woverloaded-virtual]
     void connectNotify(const QMetaMethod &);
          ^
In file included from /usr/include/qt4/QtCore/qsharedpointer_impl.h:63:0,
                 from /usr/include/qt4/QtCore/qsharedpointer.h:50,
                 from /usr/include/qt4/QtCore/qdatetime.h:47,
                 from /usr/include/qt4/QtCore/QDateTime:1,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.h:41,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:28:
/usr/include/qt4/QtCore/qobject.h:291:18: warning: ‘virtual void
QObject::disconnectNotify(const char*)’ was hidden
[-Woverloaded-virtual]
     virtual void disconnectNotify(const char *signal);
                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QBuffer:1:0,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:46,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qbuffer.h:90:10: warning:
by ‘void QBuffer::disconnectNotify(const QMetaMethod&)’
[-Woverloaded-virtual]
     void disconnectNotify(const QMetaMethod &);
          ^
In file included from /usr/include/qt4/QtCore/qatomic.h:45:0,
                 from /usr/include/qt4/QtCore/qbytearray.h:45,
                 from /usr/include/qt4/QtCore/QByteArray:1,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.h:39,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:28:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h: In function
‘bool qIsDetached(T&) [with T = QFileInfo]’:
/usr/include/qt4/QtCore/qglobal.h:2330:63: error: ‘class QFileInfo’
has no member named ‘isDetached’
 template <> inline bool qIsDetached<TYPE>(TYPE &t) { return t.isDetached(); } \
                                                               ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:153:1: note: in
expansion of macro ‘Q_DECLARE_SHARED’
 Q_DECLARE_SHARED(QFileInfo)
 ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h: In function
‘void qSwap(T&, T&) [with T = QFileInfo]’:
/usr/include/qt4/QtCore/qglobal.h:2332:16: error: ‘class QFileInfo’
has no member named ‘data_ptr’
 { qSwap(value1.data_ptr(), value2.data_ptr()); } \
                ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:153:1: note: in
expansion of macro ‘Q_DECLARE_SHARED’
 Q_DECLARE_SHARED(QFileInfo)
 ^
/usr/include/qt4/QtCore/qglobal.h:2332:35: error: ‘class QFileInfo’
has no member named ‘data_ptr’
 { qSwap(value1.data_ptr(), value2.data_ptr()); } \
                                   ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qfileinfo.h:153:1: note: in
expansion of macro ‘Q_DECLARE_SHARED’
 Q_DECLARE_SHARED(QFileInfo)
 ^
In file included from /usr/include/qt4/QtCore/QTemporaryFile:1:0,
                 from /usr/include/ktemporaryfile.h:27,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2_p.h:59,
                 from
/home/luca/Downloads/digikam-4.12.0/extra/libkexiv2/libkexiv2/kexiv2.cpp:29:
/usr/include/qt4/QtCore/qtemporaryfile.h: At global scope:
/usr/include/qt4/QtCore/qtemporaryfile.h:92:13: error:
‘QAbstractFileEngine’ does not name a type
     virtual QAbstractFileEngine *fileEngine() const;
             ^
extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/build.make:77: recipe
for target 'extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2.cpp.o'
failed
make[2]: *** [extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/kexiv2.cpp.o]
Error 1
CMakeFiles/Makefile2:1032: recipe for target
'extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/all' failed
make[1]: *** [extra/libkexiv2/libkexiv2/CMakeFiles/kexiv2.dir/all] Error 2
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
_______________________________________________
Digikam-users mailing list
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Digikam-users@kde.org&#39;)">Digikam-users@...
https://mail.kde.org/mailman/listinfo/digikam-users


--
Send with Gmail Mobile

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

Re: unable to compile 4.12

Luca Ferrari
On Wed, Oct 7, 2015 at 11:00 AM, Gilles Caulier
<[hidden email]> wrote:
> You use qt5 where qt4 is needs

Good point, I thougth that adding the following two lines to
bootstrap.linux did suffice, but I had to remove the package
qt5-default (kubuntu) and substitute it with qt4-default:

   -DQT_MAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
    -DQT_QT_INCLUDE_DIR=/usr/include/qt4/ \

Now compilation is working, I will report back any problem.

Thanks,
Luca
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users