Wireshark-dev: Re: [Wireshark-dev] My master-2.2 build broke
From: Jaap Keuter <[email protected]>
Date: Thu, 11 Aug 2016 16:08:39 +0200
Hi,

Further research found that Martin Kaiser already solved this problem in master:
https://code.wireshark.org/review/16799

Simply a case of back porting to master-2.2. Obviously the buildbots don’t pick up these Qt4 related problems.

Anyway, thanks Martin!

Jaap


> On 10 Aug 2016, at 00:35, Jaap Keuter <[email protected]> wrote:
> 
> 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...
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <[email protected]>
> Archives:    https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>             mailto:[email protected]?subject=unsubscribe