[Interest] QT_WARNING_DISABLE_DEPRECATED, QT_INIT_METAOBJECT does not name a type

Tamás Nagy tamas.nagy.001 at gmail.com
Tue May 16 00:37:12 CEST 2023


Hi,

Maybe my last email was lost, because my system date wasn't correct...

I tried to compile a complex project with Qt 5.14.0, which contains a
reference
to GL\gl.h, so called Glut3 or OpenGL parts. The whole project compiles on
an
old computer. I tried to copy the CMakeList.txt based project on a new
computer.
After I installed config-pkg, it compiled with qtcreator without any errors
and I
was able to start it as a desktop program. Actually it has to be
cross-compiled,
and it also has a build-script.sh. So that is that it is running as a
desktop program
with the qtcreator is only a proof that it doesn't have any errors.

If I start the cross compilation with the build-script.sh, it throws random
recurring
errors containing: "QT_WARNING_DISABLE_DEPRECATED does not name a type",
"QT_INIT_METAOBJECT does not name a type" for the generated
moc_myprogram.cpp as the moc-compiler is running. Through the
cross-compilation script it comes to an error
that can be a missing library linkage. But in which .lib or .so are those
QT_WARNING_DISABLE_DEPRECATED? What should I add to the library linkage?

Tamas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230515/b17c3501/attachment.htm>


More information about the Interest mailing list