首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >编译Wireshark 1.99的Qt问题:从‘const QMetaObject* const*’到‘const QMetaObject**’的转换无效

编译Wireshark 1.99的Qt问题:从‘const QMetaObject* const*’到‘const QMetaObject**’的转换无效
EN

Stack Overflow用户
提问于 2015-02-13 19:09:04
回答 1查看 299关注 0票数 0

我试图在Ubuntu14.04上获得wireshark的编译版本,但我被make卡住了,出现了以下错误消息:

代码语言:javascript
复制
  ...
  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输出的结尾:

代码语言:javascript
复制
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

以下是一些解决方法:

  • 我在每个新的compilation
  • I之间执行rm -rf builddirmake clean得到相同的错误尝试编译1.22版本
  • 我遵循了Ubuntu14.04干净的虚拟机上的说明,它工作得很好!
  • 我在虚拟机和我的第一个环境上的dpkg -l | grep qt和<代码>D24结果<代码>H225<代码>F226

我快没主意了.有人有搜索的窍门或方法吗?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2015-02-13 21:38:50

在安装依赖项之后运行ldconfig

代码语言:javascript
复制
$:sudo ldconfig -v

创建指向最新共享库的必要链接和缓存

然后,希望正确的qt库将被引用。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28498263

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档