On Wed, Dec 5, 2012 at 12:38 AM, huaxiang <[email protected]> wrote:
> 你好!
>   Thrift installation error, when #make,  error messages shown below
...snip....
> generated using the moc from 4.8.1. It"
>
> src/thrift/qt/moc_TQTcpServer.cpp:15:2: error: #error "cannot be used with
> the include files from this version of Qt."
>
> src/thrift/qt/moc_TQTcpServer.cpp:16:2: error: #error "(The moc has changed
> too much.)"
>
> src/thrift/qt/moc_TQTcpServer.cpp:47: error: no 'void
> apache::thrift::async::TQTcpServer::qt_static_metacall(QObject*,
> QMetaObject::Call, int, void**)' member function declared in class
> 'apache::thrift::async::TQTcpServer'

I ran into this as well. The root cause seems to be an autogenerated
file (moc_TQTcpServer.cpp) that shouldn't be in the released .tar.gz.
I raised this issue https://issues.apache.org/jira/browse/THRIFT-1828
to fix it.

To workaround the problem I had to either remove the file before
building or run the configure script with --with-qt4=no

HTH,
      David

https://issues.apache.org/jira/browse/THRIFT-1828

Reply via email to