Solved moc: Too many input files specified
-
Re: moc: Too many input files specified problem with VS 2015 and QT 5.9.6
First off, there's an existing topic for this, but since that one is quite old, the forum suggested opening a new thread and referencing the old, so that's what I'm doing.
So yeah, this problem still exists in 2020, apparently.
I have been running Qt 5.13.0, Visual Studio 2017 + Qt Plugin. Everything worked fine.
Then I had the fateful idea to run some tests with Qt 5.15.1 and Visual Studio 2019 + Plugin, so I installed those.
Since then, I have the moc problem - in both setups.
I uninstalled Qt 5.15.1 again, I uninstalled VS 2019 again, I even completely un- and reinstalled Qt 5.13.0 - all to no avail, the problem is here to stay.
It is also quite random. Sometimes a project cleanup seems to solve the problem, but it is never permanent.Edit: My apologies, I was able to sort it out after all. The Qt Plugin was the culprit. When I installed it for VS 2019, it was upgraded from 2.5.2 to 2.6.0. Apparently that version is buggy as hell, though. Reverting to 2.5.2 fixed my problem.
-
Good to know that you found and solved your issue. Did you check for a bug report on the issue?
If there is no entry, you should enter a bug report for this. This might help others.
-
@Ansgar Hi, can you tell where you have downloaded 2.5.2?
-
Probably from here https://download.qt.io/archive/vsaddin/
-
@koahnig Thanks! I installed 2.6.0 instead of 2.6.0-rev.06. It solved the issue. Probably rev 06 has bugs. Spent 2 hours trying to understand where the problem is.
-
Thanks for the info, upgrading to Qt Plugin 2.6.0.7 seems to have fixed this issue for me.