Hello Gerrit and Marcus,

Gerrit Voss wrote:
> I haven't had time to look through all the details, but I'm sure
> 2.x with VS2008 builds on my xp system (without changes and minus
> collada).
>
I can't confirm that. With msdev .net 2008 sp1 little tweaking of the scons 
system is necessary.
Maybe, it is some envronment problem. However, I'm just trying the scons 
vs_revamp: take 3 branch

http://www.ar.media.kyoto-u.ac.jp/members/david/archives/scons/scons-local-1.1.0.zip

from David Cournapeau. He is currently working on the msdev 2008 integration 
into the scons build system.

David Cournapeau wrote on the scons dev list:
>
> I've just polished a few things in the vs_revamp branch: now, both the
> toolchain and the platform/windows sdk are supported for all versions
> from visual studio 6 to 9, SDK 2003R1 to Windows SDK Server 2008. I
> hope this time the code is almost there for inclusion for 1.2:
>
This branch does work fine with respect to the OpenSG 2.0 framework.

Next, I did need some adaption with the library naming in the SConstruct 
file:

tif32 -> libtiff
freetype -> freetype237
collada14dom -> collada14dom21

For ABI compatibility (with the rest of my libs) I added

common_env.Append(CXXFLAGS = "/D_SECURE_SCL=0")

to line 843 of SConstruct


In order to get collada running you have to change the following in file

Source/System/FileIO/Collada/build.info

from:
libs.extend(collada_option.library)
libs.extend(xml2_option.library   )

to:
libs.append(collada_option.library)
libs.append(xml2_option.library   )

(Thanks Carsten for that)


For my vtk layout

$SupportBase/vtk
$SupportBase/vtk/inc
$SupportBase/vtk/inc/vtkstd
$SupportBase/vtk/lib/Debug
$SupportBase/vtk/lib/Release
$SupportBase/vtk/bin/Debug
$SupportBase/vtk/bin/Release

I did need to change file AddOnHacks.py

line 82: to       vtk_version_file = pj(self.baseDir, 'inc', 
self.vtkVersion, 'vtkConfigure.h')

line 101-104: to
         self.incDir = os.path.join(self.baseDir, 'inc',self.vtkVersion )
         self.library = self.libList
         self.libDir = os.path.join(self.baseDir, 'lib/Debug')
         #self.libDir = os.path.join(self.baseDir, 'lib/Release')

line 130: to          self.vtkVersion = ''

Additionally, I changed SConsAddons\Options\VTK.py

line 121: to       vtk_version_file = pj(self.baseDir, 'inc', 
self.vtkVersion, 'vtkConfigure.h')


I used the follwing build script (MKS Toolkit script, similiar to win batch 
file)

export SupportBase="F:/temp/OpenSG/supportlibs"

export BoostBaseDir="$SupportBase/boost"
export VtkBaseDir="$SupportBase/Vtk"

export add_incdir="$SupportBase/support/inc"

export collada_incdir="$SupportBase/support/inc/collada"
export collada_libdir="$SupportBase/support/lib"
export freetype_incdir="$SupportBase/support/inc/freetype"
export freetype_libdir="$SupportBase/support/lib"
export glut_incdir="$SupportBase/support/inc/GL"
export glut_libdir="$SupportBase/support/lib"
export zlib_incdir="$SupportBase/support/inc"
export zlib_libdir="$SupportBase/support/lib"
export xml2_incdir="$SupportBase/support/inc/libxml"
export xml2_libdir="$SupportBase/support/lib"
export tiff_incdir="$SupportBase/support/inc"
export tiff_libdir="$SupportBase/support/lib"
export png_incdir="$SupportBase/support/inc"
export png_libdir="$SupportBase/support/lib"
export jpeg_incdir="$SupportBase/support/inc"
export jpeg_libdir="$SupportBase/support/lib"

./scons BoostBaseDir=$BoostBaseDir \
        VtkBaseDir=$VtkBaseDir \
        add_incdir=$add_incdir \
        add_libdir=$add_libdir \
        add_lib=$add_lib \
        collada_incdir=$collada_incdir \
        collada_libdir=$collada_libdir \
        freetype_incdir=$freetype_incdir \
        freetype_libdir=$freetype_libdir \
        glut_incdir=$glut_incdir \
        glut_libdir=$glut_libdir \
        zlib_incdir=$zlib_incdir \
        zlib_libdir=$zlib_libdir \
        xml2_incdir=$xml2_incdir \
        xml2_libdir=$xml2_libdir \
        tiff_incdir=$tiff_incdir \
        tiff_libdir=$tiff_libdir \
        png_incdir=$png_incdir \
        png_libdir=$png_libdir \
        jpeg_incdir=$jpeg_incdir \
        jpeg_libdir=$jpeg_libdir \
        enable_unittest=false \
        enable_gif=no \
        var_type=debug \
        var_arch=default \
        MSVS_VERSION=9.0

#        default_opt_level=maximum \


Last note, I did build the boost libraries with

bjam --toolset=msvc-9.0 debug release threading=multi link=shared 
link=static runtime-link=shared stl-security-theater=off stage

using the patch proposed by Mat Marcus on the boost list

D:\Libs\boost_1_36_0\tools\build\v2\tools\msvc.jam
--- ../diffable_boost_1_35_0/tools/build/v2/tools/msvc.jam    2008-03-15
11:55:28.000000000 -0700
+++ ../boost_libraries/tools/build/v2/tools/msvc.jam    2008-04-22
10:02:39.312500000 -0700
@@ -638,6 +638,11 @@
#
# Declare flags and action for compilation
#
+
+# Secure STL feature
+
+feature.feature stl-security-theater : off on : propagated 
link-incompatible ;
+
feature.feature debug-store : object database : propagated ;

flags msvc.compile CFLAGS <optimization>speed : /O2 ;
@@ -662,6 +667,9 @@
flags msvc.compile C++FLAGS 
<exception-handling>on/<asynch-exceptions>off/<extern-c-nothrow>on : /EHsc ;
flags msvc.compile C++FLAGS 
<exception-handling>on/<asynch-exceptions>on/<extern-c-nothrow>off : /EHa ;
flags msvc.compile C++FLAGS 
<exception-handling>on/<asynch-exceptions>on/<extern-c-nothrow>on : /EHac ;
+flags msvc.compile C++FLAGS <stl-security-theater>off : /D_SECURE_SCL=0 
/D_SCL_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_DEPRECATE 
/D_SCL_SECURE_NO_DEPRECATE ;
+flags msvc.compile C++FLAGS <stl-security-theater>on : /D_SECURE_SCL=1 
/D_SCL_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_DEPRECATE 
/D_SCL_SECURE_NO_DEPRECATE ;
+

At least, this all does work for me...

I would also be interested in a the pyOpenSG.

Best,
Johannes





-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to