Wireshark-dev: [Wireshark-dev] My master-2.2 build broke

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Wed, 10 Aug 2016 00:35:43 +0200
Hi list

My build breaks in two ways

$ configure
....
The Wireshark package has been configured with the following options:


                       GLib version : v2.48.1


                    Build wireshark : yes (with Qt4 v4.8.7)


                Build wireshark-gtk : yes (with GTK+ v3.20.6)


$ make
....
make[2]: Entering directory '/home/jaap/src/wireshark/master-2.2/ui/qt'
  CXX      extcap_options_dialog.o
In file included from /usr/include/qt4/QtCore/qvariant.h:48:0,
                 from /usr/include/qt4/QtCore/qabstractitemmodel.h:45,
                 from /usr/include/qt4/QtGui/qabstractitemview.h:46,
                 from /usr/include/qt4/QtGui/qtreeview.h:45,
                 from /usr/include/qt4/QtGui/qtreewidget.h:45,
                 from /usr/include/qt4/QtGui/QTreeWidget:1,
                 from ./interface_tree.h:38,
                 from ./extcap_options_dialog.h:35,
                 from extcap_options_dialog.cpp:26:
/usr/include/qt4/QtCore/qmetatype.h: In instantiation of ‘static int
QMetaTypeId2<T>::qt_metatype_id() [with T = ExtcapArgument*]’:
/usr/include/qt4/QtCore/qmetatype.h:230:43:   required from ‘int qMetaTypeId(T*)
[with T = ExtcapArgument*]’
/usr/include/qt4/QtCore/qvariant.h:341:44:   required from ‘bool
QVariant::canConvert() const [with T = ExtcapArgument*]’
extcap_options_dialog.cpp:378:74:   required from here
/usr/include/qt4/QtCore/qmetatype.h:169:79: error: ‘qt_metatype_id’ is not a
member of ‘QMetaTypeId<ExtcapArgument*>’
     static inline int qt_metatype_id() { return QMetaTypeId<T>::qt_metatype_id(); }
                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
Makefile:1791: recipe for target 'extcap_options_dialog.o' failed
make[2]: *** [extcap_options_dialog.o] Error 1


Is this Qt4 too old?

Then when building the GTK version


$ make wireshark-gtk
  PERL     version.h
version.h unchanged.
make: *** No rule to make target 'ui/gtk/libgtkui.a', needed by 'wireshark-gtk'.
 Stop.


Jumping into ui/gtk, then make gets things going.

Time for bed...