← Back to team overview

yade-dev team mailing list archive

build order (random) problem

 

This error occurs randomly, I've been hit by it several times. This
mostly happens when demoing yade to someone ;)

Make a fresh checkout, then built with lots of jobs (for example jobs=8).
And there's a 50% chance that you will get this build error:

  yade/gui-qt3/SimulationController.hpp:22 error:QtGeneratedSimulationController.h: No such file or directory

When you invoke scons second time - it will just work.

This problem occurs because sometimes SimulationController.hpp is
included & compiled *before* the file QtGeneratedSimulationController.h
had a chance to be generated. Of course on second build it is already
generated, so the second time it works.

Vaclav can you think of adding some preconditioning/dependency which
would make sure that QtGeneratedSimulationController.h is generated
before compiling a file that wants to include it?

The same applies to all QtGenerated* files in fact.

-- 
Janek Kozicki                                                         |



Follow ups