簡體   English   中英

Qt錯誤:運行代碼后,在qt中出現protobuf錯誤

[英]Qt Error: After running the code, getting protobuf error in qt

[libprotobuf FATAL ../SaarathyClient/external/google/protobuf/stubs/common.cc:78] This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.3.0).  Contact the program author for an update.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.3.0).  Contact the program author for an update.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".)
The program has unexpectedly finished.

運行代碼時,我遇到了錯誤。 為了解決這個問題,我已經執行了一些步驟,這些步驟是-

(系統要求==操作系統-Ubuntu 16.04 LTS,Qt創建者-應用程序開發-開源最新V4.5rc)

  1. 安裝了我的系統中缺少的協議緩沖區V3.5.1。
  2. 用新更新更新了Qt。
  3. 運行代碼后,仍然出現相同的錯誤。

打開project.pro並替換如下

LIB += -lprotobuf

LIBS += /usr/local/lib/libprotobuf.a

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM