cisco-open-source / qtwebdriver

WebDriver implementation for Qt
https://github.com/cisco-open-source/qtwebdriver/wiki
197 stars 59 forks source link

Error when compiling in parallel: possible missing dependency #34

Open davidshepherd7 opened 7 years ago

davidshepherd7 commented 7 years ago

Running make in parallell (e.g. with -j 9) results in errors when compiling with 'WD_ENABLE_WEB_VIEW': '1':

g++: error: ./Default/obj.target/test_WD_hybrid/geni/moc_WindowWithEmbeddedViewTest.o: No such file or directory
g++: error: ./Default/obj.target/test_WD_hybrid/geni/moc_WidgetAndWebViewTest.o: No such file or directory
g++: error: ./Default/obj.target/test_WD_hybrid/geni/moc_GraphicsWebViewTest.o: No such file or directory
test_WD_hybrid.target.mk:177: recipe for target 'Default/WebDriver' failed
make: *** [Default/WebDriver] Error 1

These go away if you set -j 1. Presumably there's a missing dependency somewhere, I'd try to fix it myself but I don't really understand the build system.

hekra01 commented 7 years ago

Hi,

Not sure it is a missing deps. Looks more like some issue with qt's moc when used in parallel. Observations when following these steps: