I am experiencing this error. When I double-click on it to see the error location, I'm presented with a source code file composed entirely of macros.
I'm 99% sure the problem is due to a bad path preventing the compiler from running moc.exe, but I've searched through all the project's configuration dialogs and haven't found where to set the path to moc.
When using Visual Studio the path to moc is in the custom build command line of each header file (Properties > Configuration Properties > Custom Build Tool > General > Command Line)
e.g. $(DazDevDir)\DAZStudio4_5SDK\bin\$(Platform)\moc "%(FullPath)" -o .\moc\%(Filename)_moc.cpp
Note: You won't have $(DazDevDir) so replace that with the path for whereever you have the SDK located.
Comments
I am experiencing this error. When I double-click on it to see the error location, I'm presented with a source code file composed entirely of macros.
I'm 99% sure the problem is due to a bad path preventing the compiler from running moc.exe, but I've searched through all the project's configuration dialogs and haven't found where to set the path to moc.
Can anyone help me?
When using Visual Studio the path to moc is in the custom build command line of each header file (Properties > Configuration Properties > Custom Build Tool > General > Command Line)
e.g. $(DazDevDir)\DAZStudio4_5SDK\bin\$(Platform)\moc "%(FullPath)" -o .\moc\%(Filename)_moc.cpp
Note: You won't have $(DazDevDir) so replace that with the path for whereever you have the SDK located.
Thanks, @surreal! Wow, they hid that really well.