Wireshark-dev: Re: [Wireshark-dev] Fwd: About building the wireshark
From: "woniu1753@xxxxxxxxx" <woniu1753@xxxxxxxxx>
Date: Mon, 28 Mar 2016 15:59:21 +0800
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/gtkmake[2]: Entering directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'make all-ammake[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.Powireshark-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 errorsmake[3]: *** [wireshark-gresources.o] Error 1make[3]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'make[2]: *** [all] Error 2make[2]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25/ui/gtk'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/lqx/bin/wireshark-2.1.0-2469-g162df25'make: *** [all] Error 2
woniu1753@xxxxxxxxx
From: João ValverdeDate: 2016-03-28 15:12Subject: Re: [Wireshark-dev] Fwd: About building the wiresharkOn 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 Qt5.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 notbeen deprecated in Qt5. Otherwise some test during build configurationwill 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> <joao.valverde@xxxxxxxxxxxxxxxxxx> <mailto:joao.valverde@xxxxxxxxxxxxxxxxxx>>:>>>> On 28-03-2016 04:54, LIN Qingxiang(林清祥) wrote:>>> ---------- Forwarded message ----------> From: *LIN Qingxiang(林清祥)* <woniu1753@xxxxxxxxx> <mailto:woniu1753@xxxxxxxxx>> <mailto:woniu1753@xxxxxxxxx <mailto:woniu1753@xxxxxxxxx>>>> Date: 2016-03-28 11:48 GMT+08:00> Subject: About building the wireshark> To: wireshark-dev <wireshark-dev@xxxxxxxxxxxxx> <mailto:wireshark-dev@xxxxxxxxxxxxx>> <mailto:wireshark-dev@xxxxxxxxxxxxx> <mailto: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!>>> 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>>> ------------------------------------------------------------------------> woniu1753@xxxxxxxxx <mailto:woniu1753@xxxxxxxxx>> <mailto:woniu1753@xxxxxxxxx <mailto:woniu1753@xxxxxxxxx>>>>>> -->>> Thanks.>> Best Regards,>> LIN Qingxiang(林清祥)> ------> graduate student at> College of Mathematics and Computer Science, Fuzhou University>>>> ___________________________________________________________________________> Sent via: Wireshark-dev mailing list> <wireshark-dev@xxxxxxxxxxxxx <mailto:wireshark-dev@xxxxxxxxxxxxx>>> Archives: https://www.wireshark.org/lists/wireshark-dev> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev> mailto:wireshark-dev-request@xxxxxxxxxxxxx> <mailto:wireshark-dev-request@xxxxxxxxxxxxx>?subject=unsubscribe>> ___________________________________________________________________________> Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> <mailto:wireshark-dev@xxxxxxxxxxxxx>>> Archives: https://www.wireshark.org/lists/wireshark-dev> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev> mailto:wireshark-dev-request@xxxxxxxxxxxxx> <mailto:wireshark-dev-request@xxxxxxxxxxxxx>?subject=unsubscribe>>>>> -->>>> Thanks.>>>> Best Regards,>>>> LIN Qingxiang(林清祥)>> ------>> graduate student at>> College of Mathematics and Computer Science, Fuzhou University>>> ___________________________________________________________________________> Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>> Archives: https://www.wireshark.org/lists/wireshark-dev> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev> mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe>___________________________________________________________________________Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>Archives: https://www.wireshark.org/lists/wireshark-devUnsubscribe: https://wireshark.org/mailman/options/wireshark-devmailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
- Follow-Ups:
- Re: [Wireshark-dev] Fwd: About building the wireshark
- From: João Valverde
- Re: [Wireshark-dev] Fwd: About building the wireshark
- References:
- [Wireshark-dev] Fwd: About building the wireshark
- From: 林清祥
- Re: [Wireshark-dev] Fwd: About building the wireshark
- From: João Valverde
- Re: [Wireshark-dev] Fwd: About building the wireshark
- From: 林清祥
- Re: [Wireshark-dev] Fwd: About building the wireshark
- From: João Valverde
- [Wireshark-dev] Fwd: About building the wireshark
- Prev by Date: Re: [Wireshark-dev] Fwd: About building the wireshark
- Next by Date: Re: [Wireshark-dev] Fwd: About building the wireshark
- Previous by thread: Re: [Wireshark-dev] Fwd: About building the wireshark
- Next by thread: Re: [Wireshark-dev] Fwd: About building the wireshark
- Index(es):