[Scons-users] Code generation dependency problem
duthon.jean at gmail.com
Fri Dec 5 05:25:40 EST 2014
I can only advice you to give us some code so we can help you in a better
way (especially the generation of the cpp files and the part were you try
If you do it correctly SCons is supposed to automatically wait for that
Otherwise in some cases you might be interested in the env.Depends method
(but given your problem, as said above, it might not be necessary and might
be done in a cleaner way).
2014-12-05 10:58 GMT+01:00 Roman Karlstetter <Roman.Karlstetter at ifta.com>:
> I have a problem with dependencies and generated code in my project using
> I want to do the following:
> 1. Generate some code which results in a *.cpp and a corresponding *.hpp
> 2. Compile my project, including the generated files.
> In most cases (especially when the generated files are up to date),
> everything works fine. But sometimes, scons cannot find the generated file,
> I assume that it is regenerating the file and at the same time trying to
> compile it as an object file (I can provoke the error by deleting the
> generated files, doing a clean build is no problem).
> This is the error that I get:
> scons: *** [my_file.obj] Source `my_file.cpp' not found, needed by target
> Is there a way to tell scons to wait for the cpp-file to be generated and
> only after that start compiling an object file from it?
> Kind regards,
> PS: The generated file lies next to all the other cpp-files of the
> project, I collect them via Glob('*.cpp')
> Scons-users mailing list
> Scons-users at scons.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scons-users