[Scons-users] How to get correct dependency

Pierre-Luc Boily pierreluc.boily at gmail.com
Thu Nov 3 12:08:06 EDT 2016


Hello,

So, I tried to simplify things ( see script <http://pastebin.com/XqS2Qn06> 
), but I got same error :(  
scons: *** [build\debug\sr\sra\src\maxsim\win32\enum2str.obj] Source
`sr\sra\src\maxsim\enum2str.cpp' not found, needed by target
`build\debug\sr\sra\src\maxsim\win32\enum2str.obj'.

See my answers to  your questions below :

>Looks like you're running two perl scripts in one command.
Yes.  New version of SConscript separate the call

>Can't you avoid the chdir and just have the perl scripts operate on the
correct files?
Check.

>Can you pastebin the output of:
See  here <http://pastebin.com/j1d3c05a>  .  It is still 1000 line though. 
Something weird at line 1071.  Why my source is between square bracket?

Moreover, I can see a problem there : 
  |             +-build\debug\sr\sra\src\maxsim\win32\enum2str.obj
  |             | +-sr\sra\src\maxsim\enum2str.cpp
  |             | +-C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\BIN\cl.EXE

There is no indication that exum2str.cpp has a dependency on the perl
script.  I don't know why.

>What does "env.transform_to_path()" do?
It is an utility that I coded to make it easier to get absolute path to
folders or files from my localroot variable.  It the updated example, I am
not using it anymore.






--
View this message in context: http://scons.1086193.n5.nabble.com/How-to-get-correct-dependency-tp40699p40701.html
Sent from the Users mailing list archive at Nabble.com.


More information about the Scons-users mailing list