On Tue, Feb 28, 2017 at 12:30 PM, Jean-Marc Lasgouttes <lasgout...@lyx.org> wrote:
> Le 28/02/2017 à 12:16, Liviu Andronic a écrit : > >> Dear all, >> I have troubles compiling current GIT. Today I've updated from e7654d9 >> -> a1faa41, and all of a sudden master no longer compiles. Before the >> compilation failures I did a `make distclean` which worked fine. I'm >> using libqt4-dev 4.8.5 on Ubuntu 14.04. >> > > Dear Liviu, > > What can you tell us about your 'moc' binary? What version of Qt is it > from? > It seems that it does not understand the '-qt=qt4' argument. > > I'm using libqt4-dev 4.8.5 on Ubuntu 14.04. Previously compilations worked fine, and I hadn't changed Qt version since. > Do you have qtchooser installed? What does 'qtchooser -l' return? > > geek@liv-inspiron:~/Build/Devel/lyx$ qtchooser -l 4 5 default qt4-i386-linux-gnu qt4-x86_64-linux-gnu qt4 qt5-x86_64-linux-gnu qt5 > Note that on my ancient ubuntu 12.04, I have > QT_MOC=moc-qt4 > > As a workaround for now, you can probably configure with QT_MOC=moc, or at > least pass this to make. > > Still getting an error, but a later one: geek@liv-inspiron:~/Build/Devel/lyx$ make QT_MOC=moc [...] GEN moc_Compare.cpp GEN moc_PreviewLoader.cpp make all-recursive make[3]: Entering directory `/home/geek/Build/Devel/lyx/src' Making all in support make[4]: Entering directory `/home/geek/Build/Devel/lyx/src/support' moc -o moc_ConsoleApplicationPrivate.cpp ConsoleApplicationPrivate.h moc -o moc_SystemcallPrivate.cpp SystemcallPrivate.h make all-am make[5]: Entering directory `/home/geek/Build/Devel/lyx/src/support' CXX FileMonitor.o CXX ConsoleApplication.o In file included from ConsoleApplication.cpp:51:0: moc_ConsoleApplicationPrivate.cpp:15:2: error: #error "This file was generated using the moc from 5.6.0. It" #error "This file was generated using the moc from 5.6.0. It" ^ moc_ConsoleApplicationPrivate.cpp:16:2: error: #error "cannot be used with the include files from this version of Qt." #error "cannot be used with the include files from this version of Qt." ^ moc_ConsoleApplicationPrivate.cpp:17:2: error: #error "(The moc has changed too much.)" #error "(The moc has changed too much.)" ^ moc_ConsoleApplicationPrivate.cpp:22:5: error: ‘QByteArrayData’ does not name a type QByteArrayData data[3]; ^ moc_ConsoleApplicationPrivate.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope - idx * sizeof(QByteArrayData)) \ ^ moc_ConsoleApplicationPrivate.cpp:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’ QT_MOC_LITERAL(0, 0, 39), // "lyx::support::ConsoleApplicat..." ^ moc_ConsoleApplicationPrivate.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope ) ^ moc_ConsoleApplicationPrivate.cpp:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’ QT_MOC_LITERAL(0, 0, 39), // "lyx::support::ConsoleApplicat..." ^ moc_ConsoleApplicationPrivate.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope - idx * sizeof(QByteArrayData)) \ ^ moc_ConsoleApplicationPrivate.cpp:33:1: note: in expansion of macro ‘QT_MOC_LITERAL’ QT_MOC_LITERAL(1, 40, 6), // "doExec" ^ moc_ConsoleApplicationPrivate.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope ) ^ moc_ConsoleApplicationPrivate.cpp:33:1: note: in expansion of macro ‘QT_MOC_LITERAL’ QT_MOC_LITERAL(1, 40, 6), // "doExec" ^ moc_ConsoleApplicationPrivate.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope - idx * sizeof(QByteArrayData)) \ ^ moc_ConsoleApplicationPrivate.cpp:34:1: note: in expansion of macro ‘QT_MOC_LITERAL’ QT_MOC_LITERAL(2, 47, 0) // "" ^ moc_ConsoleApplicationPrivate.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope ) ^ moc_ConsoleApplicationPrivate.cpp:34:1: note: in expansion of macro ‘QT_MOC_LITERAL’ QT_MOC_LITERAL(2, 47, 0) // "" ^ In file included from ConsoleApplication.cpp:51:0: moc_ConsoleApplicationPrivate.cpp:78:103: error: ‘const struct qt_meta_stringdata_lyx__support__ConsoleApplicationPrivate_t’ has no member named ‘data’ { &QCoreApplication::staticMetaObject, qt_meta_stringdata_lyx__support__ConsoleApplicationPrivate.data, ^ moc_ConsoleApplicationPrivate.cpp:79:82: error: ‘Q_NULLPTR’ was not declared in this scope qt_meta_data_lyx__support__ConsoleApplicationPrivate, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} ^ moc_ConsoleApplicationPrivate.cpp:79:93: error: ‘Q_NULLPTR’ was not declared in this scope qt_meta_data_lyx__support__ConsoleApplicationPrivate, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} ^ moc_ConsoleApplicationPrivate.cpp: In member function ‘virtual const QMetaObject* lyx::support::ConsoleApplicationPrivate::metaObject() const’: moc_ConsoleApplicationPrivate.cpp:85:57: error: ‘class QObjectData’ has no member named ‘dynamicMetaObject’ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; ^ moc_ConsoleApplicationPrivate.cpp: In member function ‘virtual void* lyx::support::ConsoleApplicationPrivate::qt_metacast(const char*)’: moc_ConsoleApplicationPrivate.cpp:90:26: error: ‘Q_NULLPTR’ was not declared in this scope if (!_clname) return Q_NULLPTR; ^ moc_ConsoleApplicationPrivate.cpp: In member function ‘virtual int lyx::support::ConsoleApplicationPrivate::qt_metacall(QMetaObject::Call, int, void**)’: moc_ConsoleApplicationPrivate.cpp:105:22: error: ‘RegisterMethodArgumentMetaType’ is not a member of ‘QMetaObject’ } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { ^ moc_ConsoleApplicationPrivate.cpp: In member function ‘virtual const QMetaObject* lyx::support::ConsoleApplicationPrivate::metaObject() const’: moc_ConsoleApplicationPrivate.cpp:86:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[5]: *** [ConsoleApplication.o] Error 1 make[5]: Leaving directory `/home/geek/Build/Devel/lyx/src/support' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/geek/Build/Devel/lyx/src/support' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/geek/Build/Devel/lyx/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/geek/Build/Devel/lyx/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/geek/Build/Devel/lyx' make: *** [all] Error 2 Is it possible I have some mix-up between Qt4 and Qt5? Liviu > JMarc > > >