gvedit compilation errors out, but works if manually compiled with qt5
## Steps to reproduce - Install libqt4-dev and dependencies of gvedit - ./autogen.sh && ./configure && make bugs out with ``` moc_mainwindow.cpp:13:2: error: #error "This file was generated using the moc from 4.8.7. It" #error "This file was generated using the moc from 4.8.7. It" ^~~~~ moc_mainwindow.cpp:14: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_mainwindow.cpp:15:2: error: #error "(The moc has changed too much.)" #error "(The moc has changed too much.)" ^~~~~ moc_csettings.cpp:13:2: error: #error "This file was generated using the moc from 4.8.7. It" #error "This file was generated using the moc from 4.8.7. It" ^~~~~ moc_csettings.cpp:14: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_csettings.cpp:15:2: error: #error "(The moc has changed too much.)" #error "(The moc has changed too much.)" ^~~~~ moc_imageviewer.cpp:13:2: error: #error "This file was generated using the moc from 4.8.7. It" #error "This file was generated using the moc from 4.8.7. It" ^~~~~ moc_imageviewer.cpp:14: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_imageviewer.cpp:15:2: error: #error "(The moc has changed too much.)" #error "(The moc has changed too much.)" ^~~~~ moc_mdichild.cpp:13:2: error: #error "This file was generated using the moc from 4.8.7. It" #error "This file was generated using the moc from 4.8.7. It" ^~~~~ moc_mdichild.cpp:14: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_mdichild.cpp:15:2: error: #error "(The moc has changed too much.)" #error "(The moc has changed too much.)" ^~~~~ moc_mainwindow.cpp:91:7: error: ‘QMetaObjectExtraData’ does not name a type; did you mean ‘QMetaObjectPrivate’? const QMetaObjectExtraData CMainWindow::staticMetaObjectExtraData = { ^~~~~~~~~~~~~~~~~~~~ QMetaObjectPrivate moc_mainwindow.cpp:97:34: error: ‘staticMetaObjectExtraData’ was not declared in this scope qt_meta_data_CMainWindow, &staticMetaObjectExtraData } ^~~~~~~~~~~~~~~~~~~~~~~~~ moc_mainwindow.cpp:97:34: note: suggested alternative: ‘staticMetaObject’ qt_meta_data_CMainWindow, &staticMetaObjectExtraData } ^~~~~~~~~~~~~~~~~~~~~~~~~ staticMetaObject moc_mainwindow.cpp: In member function ‘virtual const QMetaObject* CMainWindow::metaObject() const’: moc_mainwindow.cpp:106:71: error: conditional expression between distinct pointer types ‘QDynamicMetaObjectData*’ and ‘const QMetaObject*’ lacks a cast return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; ^~~~~~~~~~~~~~~~ make[4]: *** [Makefile:899: gvedit-moc_mainwindow.o] Fehler 1 make[4]: *** Es wird auf noch nicht beendete Prozesse gewartet.... moc_csettings.cpp:73:7: error: ‘QMetaObjectExtraData’ does not name a type; did you mean ‘QMetaObjectPrivate’? const QMetaObjectExtraData CFrmSettings::staticMetaObjectExtraData = { ^~~~~~~~~~~~~~~~~~~~ QMetaObjectPrivate moc_csettings.cpp:79:35: error: ‘staticMetaObjectExtraData’ was not declared in this scope qt_meta_data_CFrmSettings, &staticMetaObjectExtraData } ^~~~~~~~~~~~~~~~~~~~~~~~~ moc_csettings.cpp:79:35: note: suggested alternative: ‘staticMetaObject’ qt_meta_data_CFrmSettings, &staticMetaObjectExtraData } ^~~~~~~~~~~~~~~~~~~~~~~~~ staticMetaObject moc_csettings.cpp: In member function ‘virtual const QMetaObject* CFrmSettings::metaObject() const’: moc_csettings.cpp:88:71: error: conditional expression between distinct pointer types ‘QDynamicMetaObjectData*’ and ‘const QMetaObject*’ lacks a cast return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; ^~~~~~~~~~~~~~~~ make[4]: *** [Makefile:871: gvedit-moc_csettings.o] Fehler 1 moc_imageviewer.cpp:69:7: error: ‘QMetaObjectExtraData’ does not name a type; did you mean ‘QMetaObjectPrivate’? const QMetaObjectExtraData ImageViewer::staticMetaObjectExtraData = { ^~~~~~~~~~~~~~~~~~~~ QMetaObjectPrivate moc_imageviewer.cpp:75:34: error: ‘staticMetaObjectExtraData’ was not declared in this scope qt_meta_data_ImageViewer, &staticMetaObjectExtraData } ^~~~~~~~~~~~~~~~~~~~~~~~~ moc_imageviewer.cpp:75:34: note: suggested alternative: ‘staticMetaObject’ qt_meta_data_ImageViewer, &staticMetaObjectExtraData } ^~~~~~~~~~~~~~~~~~~~~~~~~ staticMetaObject moc_imageviewer.cpp: In member function ‘virtual const QMetaObject* ImageViewer::metaObject() const’: moc_imageviewer.cpp:84:71: error: conditional expression between distinct pointer types ‘QDynamicMetaObjectData*’ and ‘const QMetaObject*’ lacks a cast return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; ^~~~~~~~~~~~~~~~ moc_mdichild.cpp:55:7: error: ‘QMetaObjectExtraData’ does not name a type; did you mean ‘QMetaObjectPrivate’? const QMetaObjectExtraData MdiChild::staticMetaObjectExtraData = { ^~~~~~~~~~~~~~~~~~~~ QMetaObjectPrivate moc_mdichild.cpp:61:31: error: ‘staticMetaObjectExtraData’ was not declared in this scope qt_meta_data_MdiChild, &staticMetaObjectExtraData } ^~~~~~~~~~~~~~~~~~~~~~~~~ moc_mdichild.cpp:61:31: note: suggested alternative: ‘staticMetaObject’ qt_meta_data_MdiChild, &staticMetaObjectExtraData } ^~~~~~~~~~~~~~~~~~~~~~~~~ staticMetaObject moc_mdichild.cpp: In member function ‘virtual const QMetaObject* MdiChild::metaObject() const’: moc_mdichild.cpp:70:71: error: conditional expression between distinct pointer types ‘QDynamicMetaObjectData*’ and ‘const QMetaObject*’ lacks a cast return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; ^~~~~~~~~~~~~~~~ make[4]: *** [Makefile:885: gvedit-moc_imageviewer.o] Fehler 1 make[4]: *** [Makefile:913: gvedit-moc_mdichild.o] Fehler 1 make[4]: Verzeichnis „/home/firma/devel/graphviz/cmd/gvedit“ wird verlassen make[3]: *** [Makefile:1038: all-recursive] Fehler 1 make[3]: Verzeichnis „/home/firma/devel/graphviz/cmd/gvedit“ wird verlassen make[2]: *** [Makefile:586: all-recursive] Fehler 1 make[2]: Verzeichnis „/home/firma/devel/graphviz/cmd“ wird verlassen make[1]: *** [Makefile:835: all-recursive] Fehler 1 make[1]: Verzeichnis „/home/firma/devel/graphviz“ wird verlassen make: *** [Makefile:643: all] Fehler 2 ``` [config.log](/uploads/73bda049e90ce8f7e788e95927d2d946/config.log) The reason seems to be that qt4 is used but qt5 is required. If I do ``` /usr/bin/qmake -o qMakefile gvedit.pro make ``` it works. ``` $/usr/bin/qmake --version QMake version 3.1 Using Qt version 5.11.3 in /usr/lib/x86_64-linux-gnu ``` ## OS Version debian buster 64bit ## Graphviz Version 771bc4db (Merge branch 'stable-release-2.44.1' into 'master', 2020-06-29)
issue