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.

        Hope it helps anyways,
                Carsten
diff -r a248fd63201e Source/Contrib/VTK/build.info
--- a/Source/Contrib/VTK/build.info	Sat Jun 30 14:21:45 2007 +0200
+++ b/Source/Contrib/VTK/build.info	Sun Jul 01 16:57:05 2007 +0200
@@ -11,14 +11,12 @@ else:
       library = "OSGContribVTK"
       osg_dep_libs = ['OSGBase', 'OSGSystem']
 
-      for lib in vtk_option.library:
+      for lib in vtk_option.libList:
          libs.append(lib)
 
-      if vtk_option.incDir:
-         cpppath.append(vtk_option.incDir)
-
-      if vtk_option.libDir:
-         libpath.append(vtk_option.libDir)
+      if vtk_option.baseDir:
+         cpppath.append(pj(vtk_option.baseDir, 'include', vtk_option.vtkVersion))
+         libpath.append(pj(vtk_option.baseDir, 'lib'))
          
       # Tests' dependencies
       osg_test_libs = [ 'OSGGroup','OSGDrawable', 'OSGState', 
-------------------------------------------------------------------------
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

Reply via email to