• ubuntu 16.04安装时报错 hbg


    iftqt5_la-moc__TQTcpServer.Tpo -c src/thrift/qt/moc__TQTcpServer.cpp  -fPIC -DPIC -o src/thrift/qt/.libs/libthriftqt5_la-moc__TQTcpServer.o
    src/thrift/qt/moc__TQTcpServer.cpp:13:2: error: #error "This file was generated using the moc from 4.8.7. It"
     #error "This file was generated using the moc from 4.8.7. It"
      ^
    src/thrift/qt/moc__TQTcpServer.cpp:14:2: error: #error "cannot be used with the include files from this version of Qt."
     #error "cannot be used with the include files from this version of Qt."
      ^
    src/thrift/qt/moc__TQTcpServer.cpp:15:2: error: #error "(The moc has changed too much.)"
     #error "(The moc has changed too much.)"
      ^
    src/thrift/qt/moc__TQTcpServer.cpp:63:7: error: ‘QMetaObjectExtraData’ does not name a type
     const QMetaObjectExtraData apache::thrift::async::TQTcpServer::staticMetaObjectExtraData = {
           ^
    src/thrift/qt/moc__TQTcpServer.cpp:65:2: warning: extra ‘;’ [-Wpedantic]
     };
      ^
    src/thrift/qt/moc__TQTcpServer.cpp:69:57: error: ‘staticMetaObjectExtraData’ was not declared in this scope
           qt_meta_data_apache__thrift__async__TQTcpServer, &staticMetaObjectExtraData }
                                                             ^
    src/thrift/qt/moc__TQTcpServer.cpp: In member function ‘virtual const QMetaObject* apache::thrift::async::TQTcpServer::metaObject() const’:
    src/thrift/qt/moc__TQTcpServer.cpp:78:71: error: conditional expression between distinct pointer types ‘QDynamicMetaObjectData*’ and ‘const QMetaObject*’ lacks a cast
         return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
                                                                           ^

    问题根源:

    thrift使用的qt版本有4.X和 5.x,版本不兼容导致。

     

    解决方案:

    禁用qt5

    ./configure --with-qt5=no

  • 相关阅读:
    第19篇-Kibana对Elasticsearch的实用介绍
    第18篇-用ElasticSearch索引MongoDB,一个简单的自动完成索引项目
    第17篇-使用Python的初学者Elasticsearch教程
    第16篇-关于Elasticsearch的6件不太明显的事情
    第15篇-使用Django进行ElasticSearch的简单方法
    第14篇-Python中的Elasticsearch入门
    第13篇-Elasticsearch查询-术语级查询
    第12篇-Elasticsearch全文查询
    MQTT
    rest-framework-@action()装饰器
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/15665779.html
Copyright © 2020-2023  润新知