2 fanlab1234 fanlab1234 于 2016.03.09 12:03 提问

Qt 交叉编译出现moc文件报错

moc_QtMqttclient.cpp:52: error: no 'void QtMqttclient::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)' member function declared in class 'QtMqttclient'
moc_QtMqttclient.cpp:68: error: 'const QMetaObjectExtraData QtMqttclient::staticMetaObjectExtraData' is not a static member of 'class QtMqttclient'
moc_QtMqttclient.cpp:70: error: argument of type 'void (QtMqttclient::)(QObject*, QMetaObject::Call, int, void**)' does not match 'int (*)(QMetaObject::Call, int, void**)'
moc_QtMqttclient.cpp:74: error: 'staticMetaObjectExtraData' was not declared in this scope
在linux上编译没有报错,但是在进行交叉编译的时候却报错了,moc文件不是自动生成的吗,为啥会出现这样的问题啊

1个回答

visoncomputer
visoncomputer   2016.03.09 20:55

可能是声明的问题吧,这种错误没遇到过。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!