Solved Qt Creator + CMake's `CMAKE_AUTOMOC` and `CMAKE_AUTOUIC`?
-
Hi,
I have recently modified my CMake project to (finally) take advantage of CMake's
CMAKE_AUTOMOC
andCMAKE_AUTOUIC
"new" variables.It works as expected when building my project from the command line. It also does when using Qt Creator, but... now, I am getting thousands (across my whole project) of semantic issues. Not only that, but there are a lot of cases (probably due to my application consisting of several plugins?) where I cannot follow symbols under my cursor.
In other words, Qt Creator is now pretty much unusable for me.
Has anyone come across this issue? Has anyone managed to use CMake's
CMAKE_AUTOMOC
andCMAKE_AUTOUIC
"new" variables successfully with Qt Creator?FWIW, here is the kind of semantic issues I am getting:
error: unknown type name 'SimulationExperimentViewPlugin'
error: use of undeclared identifier 'SimulationExperimentViewSimulationWidget'
error: no type named 'Property' in namespace 'OpenCOR::Core'
Needless to say that everything is actually known, declared or exists. I can run and debug my application from Qt Creator, no problems whatsoever. "Just" those thousands of semantic issues, which pollute and slow down everything.
Cheers, Alan.
-
I suggest reporting this on Qt bug tracker.
-
I suggest reporting this on Qt bug tracker.
Sure, I just thought that I would check here first to make sure that I wasn't missing something, not least since my experience with creating bug reports hasn't been all that great lately (read: most of them are not being acted upon, if not ignored).
-
@agarny said in Qt Creator + CMake's `CMAKE_AUTOMOC` and `CMAKE_AUTOUIC`?:
I suggest reporting this on Qt bug tracker.
Sure, I just thought that I would check here first to make sure that I wasn't missing something, not least since my experience with creating bug reports hasn't been all that great lately (read: most of them are not being acted upon, if not ignored).
True. This one looks pretty serious, though, it should get high priority. You may want to ask on Qt Creator mailing list, too, to raise bug's visibility.
-
Ok, my problem has nothing to do with CMake's
CMAKE_AUTOMOC
andCMAKE_AUTOUIC
, but... with Qt Creator itself!Indeed, I was using Qt Creator 4.9.0, but I have just tried with Qt Creator 4.8.2 and it's all working fine!
(I have been thinking about filing a bug report, the problem is that my project is pretty big and I haven't been able to come up with a small test case...)