I have a scons project with many SConscript files in the subdirectories. In one of those SConscript files I want to check if particular library is installed on the build host. Here is code snippet:
Import("env")
conf = Configure(env)
if conf.CheckLibWithHeader(...):
doSomething()
env.Library(...)
When I execute build scons fails with strnge error without error message like this:
scons: ***
File "/path/to/SConscript", line 3, in <module>
Line 3 is where I call Configure(). I guess I am doing something not allowed with Configure() function but I cannot find any explanation in scons documentation.
Please help me to debug this.
SConscriptin all other places. If this still shows the described error, replace yourenvsetup with a simpleenv = Environmentin your top-level build file. If the error still shows, then please post your full top-level SConstruct and the called SConscript here...and then we can take it from there. - dirkbaechle