The moc generation is very slow. The build process almost hangs while generating the moc files. Most of the time it happens for the files containing classed extended with QObject. Compilation of moc is swift.
The moc generation is very slow. The build process almost hangs while generating the moc files. Most of the time it happens for the files containing classed extended with QObject. Compilation of moc is swift.
Then it is unrelated to clang as clang is only involved when compiling the generated files, not in their generation.
You could try to manually run a single moc invocation to check if this is already slow or if the make tool running the moc rules is slow.
Cheers,
_
I have never generated moc manually before. What's the command for doing that?...do I need to use qmake?...
It is basically something like
but you can also check the Makefile cmake generated.Qt Code:
moc -o somefile_moc.cpp somefile.hTo copy to clipboard, switch view to plain text mode
qmake is not required for a CMake project.
Cheers,
_
Bookmarks