我正在尝试在Ubuntu14.04上获得wireshark的编译版本,但我遇到了make
时刻,并出现以下错误消息:
...
MOC qcustomplot.moc.cpp
CXX qcustomplot.moc.o
qcustomplot.moc.cpp:4048:1: error: invalid conversion from ‘const QMetaObject* const*’ to ‘const QMetaObject**’ [-fpermissive]
};
^
qcustomplot.moc.cpp:5020:1: error: invalid conversion from ‘const QMetaObject* const*’ to ‘const QMetaObject**’ [-fpermissive]
};
^
make[2]: *** [qcustomplot.moc.o] Erreur 1
在收到错误之前的一些步骤:
./autogen.sh; ./configure; make
apt-get install autoconf autogen libtool automake bison flex qtbase5-dev libgtk-3-0 libgtk-3-dev libpcap0.8-dev build-essential checkinstall libcurl4-openssl-dev libqt4-dev-bin libqt4-dev qt-sdk
这是我的./configure
输出的结尾:
The Wireshark package has been configured with the following options.
Build wireshark : yes
Build wireshark-gtk : yes (with GTK+ 3)
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 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 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 GNU ADNS library : no (using c-ares instead)
Use SMI MIB library : yes
Use GNU crypto library : yes
Use SSL crypto library : no
Use IPv6 name resolution : yes
Use gnutls library : yes
Use POSIX capabilities library : yes
Use GeoIP library : yes
Use nl library : no
Use SBC codec library : no
一些解决方法:
rm -rf builddir
和make clean
dpkg -l | grep qt
和我的第一个环境之间做了差异,apt-get autoremove
结果我的想法已经用完了......有人有诀窍或搜索方式吗?
谢谢!