Hi, Thanks for your help. "-nn' works well now, but I got another problem as below: (I am a newbie for C)
make[2]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/qt' Making all in ui/gtk make[2]: Entering directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk' make all-am make[3]: Entering directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk' depbase=`echo wireshark-gresources.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../.. -D_FORTIFY_SOURCE=2 -DG_DISABLE_SINGLE_INCLUDES -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE -pthread -isystem/usr/include/gtk-3.0 -isystem/usr/include/pango-1.0 -isystem/usr/include/gio-unix-2.0/ -isystem/usr/include/atk-1.0 -isystem/usr/include/cairo -isystem/usr/include/gdk-pixbuf-2.0 -isystem/usr/include/freetype2 -isystem/usr/include/glib-2.0 -isystem/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem/usr/include/pixman-1 -isystem/usr/include/libpng12 -Werror -Wall -Wextra -Wendif-labels -Wpointer-arith -Warray-bounds -Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wc++-compat -Wdeclaration-after-statement -Wshadow -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -fexcess-precision=fast -fvisibility=hidden -g -O2 -MT wireshark-gresources.o -MD -MP -MF $depbase.Tpo -c -o wireshark-gresources.o wireshark-gresources.c &&\ mv -f $depbase.Tpo $depbase.Po wireshark-gresources.c:9958:1: error: missing initializer [-Werror=missing-field-initializers] wireshark-gresources.c:9958:1: error: (near initialization for ‘static_resource.resource’) [-Werror=missing-field-initializers] cc1: all warnings being treated as errors make[3]: *** [wireshark-gresources.o] Error 1 make[3]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25' make: *** [all] Error 2 [email protected] From: João Valverde Date: 2016-03-28 15:12 To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] Fwd: About building the wireshark On 28-03-2016 07:22, LIN Qingxiang(林清祥) wrote: > Hi, > > This is the verbose build output for MOC: > > lqx@bogon:~/bin/wireshark-2.1.0-2469-g162df25/ui/qt$ make V=1 > about_dialog.moc.cpp > /usr/bin/moc -qt=5 --no-notes -I.. -I../.. -o about_dialog.moc.cpp > about_dialog.h > 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: *** [about_dialog.moc.cpp] Error 1 > It appears the option "--no-notes" needs to be replaced with -nn for Qt 5.0.2. This has been a recurring problem so I will just make sure "old-style" options are used everywhere. As far as I know it has not been deprecated in Qt5. Otherwise some test during build configuration will be needed. Anyway I think replacing "--no-notes" with "-nn" will fix your problem. > 2016-03-28 14:03 GMT+08:00 João Valverde > <[email protected] > <mailto:[email protected]>>: > > > > On 28-03-2016 04:54, LIN Qingxiang(林清祥) wrote: > > > ---------- Forwarded message ---------- > From: *LIN Qingxiang(林清祥)* <[email protected] > <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>>> > Date: 2016-03-28 11:48 GMT+08:00 > Subject: About building the wireshark > To: wireshark-dev <[email protected] > <mailto:[email protected]> > <mailto:[email protected] > <mailto:[email protected]>>> > > > 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! > > > Hi, > > Can you show the verbose build output for MOC also? > > You can use (in the /ui/qt dir): > > make V=1 about_dialog.moc.cpp > > > 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 > > > > ------------------------------------------------------------------------ > [email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>> > > > > -- > > > Thanks. > > Best Regards, > > LIN Qingxiang(林清祥) > ------ > graduate student at > College of Mathematics and Computer Science, Fuzhou University > > > > > ___________________________________________________________________________ > Sent via: Wireshark-dev mailing list > <[email protected] <mailto:[email protected]>> > Archives: https://www.wireshark.org/lists/wireshark-dev > Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev > mailto:[email protected] > <mailto:[email protected]>?subject=unsubscribe > > > ___________________________________________________________________________ > Sent via: Wireshark-dev mailing list <[email protected] > <mailto:[email protected]>> > Archives: https://www.wireshark.org/lists/wireshark-dev > Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev > mailto:[email protected] > <mailto:[email protected]>?subject=unsubscribe > > > > > -- >> >> Thanks. >> >> Best Regards, >> >> LIN Qingxiang(林清祥) >> ------ >> graduate student at >> College of Mathematics and Computer Science, Fuzhou University > > > ___________________________________________________________________________ > 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 > ___________________________________________________________________________ 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
___________________________________________________________________________ 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
