Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Fwd: About building the wireshark

From: LIN Qingxiang(林清祥) <woniu1753@xxxxxxxxx>
Date: Mon, 28 Mar 2016 11:54:19 +0800

---------- Forwarded message ----------
From: LIN Qingxiang(林清祥) <woniu1753@xxxxxxxxx>
Date: 2016-03-28 11:48 GMT+08:00
Subject: About building the wireshark
To: wireshark-dev <wireshark-dev@xxxxxxxxxxxxx>


Hi all,

I am building wireshark-2.1.0-2469-g162df25 on Ubuntu 12.04, and I got the problem shown as below when run command "make".
It would be pleaseure to get any help!
Thanks!

  CXX      wlan_statistics_dialog.o
  CC       wireshark-tap-register.o
  MOC      about_dialog.moc.cpp
moc: Invalid argument
Usage: moc [options] <header-file>
  -o<file>           write output to file rather than stdout
  -I<dir>            add dir to the include path for header files
  -E                 preprocess only; do not generate meta object code
  -D<macro>[=<def>]  define macro, with optional definition
  -U<macro>          undefine macro
  -i                 do not generate an #include statement
  -p<path>           path prefix for included file
  -f[<file>]         force #include, optional file name (overwrite default)
  -b<file>           prepend #include <file> (preserve default include)
  -nn                do not display notes
  -nw                do not display warnings
  @<file>            read additional options from file
  -v                 display version of moc
make[2]: *** [about_dialog.moc.cpp] Error 1
make[2]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/qt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25'
make: *** [all] Error 2

./configure is followed as below:The Wireshark package has been configured with the following options:
                    Build wireshark : yes (with Qt5 v5.0.2)
                Build wireshark-gtk : yes (with GTK+ v3.4.2)
                       Build tshark : yes
                      Build tfshark : no
                     Build capinfos : yes
                      Build captype : yes
                      Build editcap : yes
                      Build dumpcap : yes
                     Build mergecap : yes
                   Build reordercap : yes
                    Build text2pcap : yes
                      Build randpkt : yes
                       Build dftest : yes
                     Build rawshark : yes
                  Build androiddump : yes
                      Build sshdump : no
                    Build ciscodump : no
                  Build randpktdump : yes
                        Build echld : no
   Save files as pcap-ng by default : yes
  Install dumpcap with capabilities : no
             Install dumpcap setuid : no
                  Use dumpcap group : (none)
                        Use plugins : yes
       Use external capture sources : yes
                    Use Lua library : yes
                Build Qt RTP player : no
              Build GTK+ RTP player : yes
             Build profile binaries : no
                   Use pcap library : yes
                   Use zlib library : yes
               Use kerberos library : yes (MIT)
                 Use c-ares library : yes
                Use SMI MIB library : yes
             Use GNU gcrypt library : yes
             Use SSL crypto library : no
                 Use GnuTLS library : yes
     Use POSIX capabilities library : yes
                  Use GeoIP library : yes
                 Use libssh library : no
            Have ssh_userauth_agent : no
                     Use nl library : no
              Use SBC codec library : no



--

Thanks.

Best Regards,

LIN Qingxiang(林清祥)
------
graduate student at
College of Mathematics and Computer Science, Fuzhou University