Error building some meta-compiler dependencies
-
I have CMake Qt project and after define the Q_OBJECT-like constructor I got troubles with building
unresolved external symbol for some Meta Compiler functions
I had the same errors when I declared keyPressEvents but they have gone after I created function definitions for them. But whether I define constructor or not it gives these issues
-
-
-
-
-
@misscoffee
When/if you addQ_OBJECT
macro to source after you have previously compiled you must "clean" everything before you recompile. I do this by deleting the build output directory, I don't know if any of Creator's "clean" menu items is enough. Have you done this? If not you get weird linker errors, which I suspect is what you have now. -
@JonB said in Error building some meta-compiler dependencies:
When/if you add Q_OBJECT macro to source after you have previously compiled you must "clean" everything before you recompile. I do this by deleting the build output directory, I don't know if any of Creator's "clean" menu items is enough. Have you done this? If not you get weird linker errors, which I suspect is what you have now.
I tried to close my project, delete /.vs and /.out folders and build my project again and it did not worked. But after I deleted Q_OBJECT my project at least started building but failed with this error in cmd:
qt.qpa.plugin: could not find the qt platform plugin "windows" in "" this
It is quite off-top but I already saw some topics with new error but in PyQt and you have answered something there. Maybe you have idea about similar case in C++, VS? (I already tried to copy .dll files from folder platforms located in Qt root directory to ...\out\build\x64-debug\ and it didn't worked)
-