On Sun, 2007-07-01 at 17:06 +0200, Carsten Neumann wrote: > Hello Pablo, > > Pablo Carneiro Elias wrote: > > Scanning libraries: ....AttributeError: VTK instance has no attribute > > 'library': > > > > File "D:\Pablo\Programming\lib\OpenSG2.0-test\SConstruct", line 714: > > lib_map = biScanner.scan() > > File "Tools\scons-build\BuildInfoScanner.py", line 68: > > self._recursiveScan(scanDir) > > File "Tools\scons-build\BuildInfoScanner.py", line 154: > > popStack = self._recursiveScan(d) > > File "Tools\scons-build\BuildInfoScanner.py", line 154: > > popStack = self._recursiveScan(d) > > File "Tools\scons-build\BuildInfoScanner.py", line 98: > > execfile(biFilename, biDict) > > File "Source\Contrib\VTK\build.info", line 14: > > for lib in vtk_option.library: > > > > Anyone has any guess about this? > > it is a bug in the build.info file for the ContribVTK lib. The > underlying problem is that the scons-addons handling of > options/configure info is build around the idea of modifying scons build > environments, but OpenSG's buildsystem has no environment to modify at > that point. > Anyway, attached is a patch that should fix the problem, but it is a > terribly ugly hack, because it moves information about vtk's include > directories into the build.info file. Also I don't have vtk handy, so I > could not test this.
hmmm, the real problem is the rather inconsistent option handling from scons-addons and our inability to change them directly ;-). That's what Tools/scons-build/OpenSG/AddOnHacks.py are there for, it's basically a collection of fixes to scons-addons which can be applied at run-time. There are also 2 patches needed for python 2.2 for things that can not be fixed at runtime (e.g. import errors). Currently the hacks are not applied by default and this might be the problem. Note I only tried building this against the paraview vtk installation and the native one so I don't know if it works with it. Could you just add OpenSG.AddOnHacks.apply() after print "Building OpenSG ", opensg_version_string around line 319 SConstruct. and try again. If it still does not work let me know and I have another look. Please don't apply the patch when trying the AddOnHacks. regards, gerrit ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
