我试图在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
下面是我的./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
得到相同的错误尝试编译1.22版本dpkg -l | grep qt
和<代码>D24结果<代码>H225<代码>F226我快没主意了.有人有搜索的窍门或方法吗?
谢谢!
发布于 2015-02-13 21:38:50
https://stackoverflow.com/questions/28498263
复制相似问题