Created attachment 563 [details] cmake 3.5.1, build fails This was observed on Linux Mint 18.3, which ships with cmake 3.5.1, Qt 5.5.1, and GCC 5.4.0). Pulseview source code revision is 6b8b739df2fe. Compilation fails in moc_*.cpp files. Two independent(?) issues were observed: Generated MOC sources contained #include statements with incorrect relative paths (../ at the start of the path). Compilation failed because of symbol redefinitions. Starting from clean new output directories, as well as checking several directory layouts (build in-source, out-of-source in subdirectories, as well as in sibling directories) were tested, all of them failed. Mint 18.3 is based on Ubuntu 16.04. It's assumed that this problem did not reproduce on Ubuntu systems (I'm not aware of any reports). So it might be specific to Mint, or to my local system that was used in the build. Better reproduction and isolation has yet to happen. Building with cmake 3.16.2 (the most recent version available when the report was filed) did pass. It's assumed that cmake's builtin or bundled Qt support affects the issue. Specific Qt versions may contribute to the issue.
Created attachment 564 [details] cmake 3.16.2, build completes This is the screen output from a successful build with cmake 3.16.2. Generated code (the set of files) looks different, compilation passes.
Older cmake versions didn't show this problem and a newer version fixes the issue so I don't consider this a PV bug. Thanks for reporting, though!