Hello Lorenzo,
Lorenzo Cesario wrote:
>
> Hi to all,
> i'm trying to compile the current svn version (TRUNK) of opensg 2.0. My
> system is Windows Xp PRO 32bit with VS2005 SP1.
> I installed python 2.5 and boost 1.33.1.
>
> To compile i used this following line :
> python Tools\scons-local\scons.py
> BoostBaseDir=C:\Programmi\boost\boost_1_33_1 enable_unittest=false
> MSVS_VERSION=8.0
> but there are many errors.
> Some ideas?
>
> I report my console output above:
>
> scons: Reading SConscript files ...
> Using SConsAddons from: Tools/scons-addons/src
> -------------------------------------------------
> WARNING: The build is currently in development.
> - It needs the svn version of scons-addons
> WARNING:
> Building OpenSG 2.0.0-pre1
> ### Apply OpenSG SCons AddOn Hacks ###
> Valid archs: ['default']
> Updating boost
> Loading initial settings for boost
> BoostBaseDir specified or cached. [C:\Programmi\boost\boost_1_33_1].
> BoostIncludeDir specified or cached. [C:\Programmi\boost\boost_1_33_1].
> boost include path: C:\Programmi\boost\boost_1_33_1
> boost version: 1.33.1
> Checking for C++ library boost_filesystem-vc80-mt-1_33_1... (cached) yes
> filesystem: boost_filesystem-vc80-mt-1_33_1
> Checking for: collada
> CSDK find
> None
> INC : None
> LIB : None
> Checking for C++ library libcollada_dae... (cached) no
> Checking for C++ library libcollada_LIBXMLPlugin... (cached) no
> Checking for C++ library libcollada_STLDatabase... (cached) no
> Checking for C++ library libcollada_dom... (cached) no
> Checking for C++ library libcollada_stdErrPlugin... (cached) no
> Checking for C++ library libcollada_dae... (cached) no
> Validation failed for option: collada
> Checking for: freetype
> Checking for C++ library freetype... (cached) no
> Validation failed for option: freetype
> Checking for: glut
> Checking for C++ library glut32... (cached) no
> Validation failed for option: glut
> Checking for: zlib
> Checking for C++ library zlib... (cached) no
> Validation failed for option: zlib
> Checking for: fontconfig
> Checking for C++ library fontconfig... (cached) no
> Validation failed for option: fontconfig
> Checking for: X
> Checking for C++ library X11... (cached) no
> Validation failed for option: X
> Checking for: NVPerfSDK
> Checking for C++ library NVPerfSDK... (cached) no
> Validation failed for option: NVPerfSDK
> Checking for VTK... VTK base dir (VtkBaseDir) was not specified
> Checking for: xml2
> Checking for C++ library iconv_a... (cached) no
> Checking for C++ library libxml2_a... (cached) no
> Validation failed for option: xml2
> Checking for: tiff
> Checking for C++ library tif32... (cached) no
> Validation failed for option: tiff
> Checking for: png
> Checking for C++ library libpng... (cached) no
> Validation failed for option: png
> Checking for: jpeg
> Checking for C++ library libjpeg... (cached) no
> Validation failed for option: jpeg
> Found MSVS. using version: 8.0
> {'FRAMEWORKDIR': u'c:\\WINDOWS\\Microsoft.NET\\Framework\\',
> 'FRAMEWORKVERSION': u'v2.0.50727',
> 'FRAMEWORKVERSIONS': [u'v2.0.50727', u'v1.1.4322', u'v1.0.3705'],
> 'PROJECTSUFFIX': '.vcproj',
> 'SOLUTIONSUFFIX': '.sln',
> 'SUITE': 'PRO',
> 'SUITES': ['PRO'],
> 'VCINSTALLDIR': u'C:\\Programmi\\Microsoft Visual Studio 8\\VC\\',
> 'VERSION': '8.0',
> 'VERSIONS': ['9.0', '8.0', '6.0', '3.5'],
> 'VSINSTALLDIR': u'C:\\Programmi\\Microsoft Visual Studio 8\\'}
> Scanning libraries: .................................................
> found 15
> libraries
> Using prefix: C:\OpenSg\build.win32.cl.8.0\instlinks
> Processing combo: type:debug, arch:default
> OSGContribGUI missing test dep library: OSGWindowGLUT
> OSGState missing test dep library: OSGWindowGLUT
> OSGContribCSM OSGWindow OSGFileIO OSGText missing test dep library:
> OSGWindow
> GLUT
> OSGWindowWIN32 OSGGroup missing test dep library: OSGWindowGLUT
> OSGContribBackgroundLoader missing test dep library: OSGWindowGLUT
> OSGUtil missing test dep library: OSGWindowGLUT
> OSGCluster missing test dep library: OSGWindowGLUT
> OSGImageFileIO missing test dep library: OSGWindowGLUT
> OSGBase OSGSystem OSGDrawable missing test dep library: OSGWindowGLUT
>
> scons: done reading SConscript files.
> scons: Building targets ...
> Install file:
> "build.win32.cl.8.0\type-debug--arch-default\Source\Base\Base\OSGG
> LDefineMapper.h" as
> "build.win32.cl.8.0\instlinks\include\OpenSG\OSGGLDefineMapp
> er.h"
> cl /nologo /Od /Ob0 /Z7 /W1 /MDd /EHsc /GR /TP
> /IC:\Programmi\boost\boost_1_33_1
> /DBOOST_ALL_DYN_LINK /D_WINDOWS /DWIN32 /DOSG_DEBUG
> /DOSG_COMPILEBASELIB /D_WIN
> 32_WINNT=0x0400 /DWINVER=0x0400 /Ibuild.win32.cl.8.0\instlinks\include
> /Ibuild.w
> in32.cl.8.0\instlinks\include\OpenSG
> /Ibuild.win32.cl.8.0\type-debug--arch-defau
> lt\Source\External /ISource\External /c
> Source\Base\Base\OSGGLDefineMapper.cpp /
> Fobuild.win32.cl.8.0\type-debug--arch-default\Source\Base\Base\OSGGLDefineMapper
> .obj
> OSGGLDefineMapper.cpp
> cl /nologo /Od /Ob0 /Z7 /W1 /MDd /EHsc /GR /TP
> /IC:\Programmi\boost\boost_1_33_1
> /DBOOST_ALL_DYN_LINK /D_WINDOWS /DWIN32 /DOSG_DEBUG
> /DOSG_COMPILEBASELIB /D_WIN
> 32_WINNT=0x0400 /DWINVER=0x0400 /Ibuild.win32.cl.8.0\instlinks\include
> /Ibuild.w
> in32.cl.8.0\instlinks\include\OpenSG
> /Ibuild.win32.cl.8.0\type-debug--arch-defau
> lt\Source\External /ISource\External /c
> Source\Base\Base\OSGGLDefineMapper_auto.
> cpp
> /Fobuild.win32.cl.8.0\type-debug--arch-default\Source\Base\Base\OSGGLDefineM
> apper_auto.obj
> OSGGLDefineMapper_auto.cpp
> build.win32.cl.8.0\instlinks\include\OpenSG\OSGGLDefineMapper.h(124) :
> error C21
> 43: syntax error : missing ';' before 'template'
> build.win32.cl.8.0\instlinks\include\OpenSG\OSGGLDefineMapper.h(124) :
> error C44
> 30: missing type specifier - int assumed. Note: C++ does not support
> default-int
>
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(1464) : error C2065:
> 'GL_FOG_COORDIN
> ATE_SOURCE' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(1502) : error C2065:
> 'GL_FOG_COORDIN
> ATE_ARRAY_TYPE' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(2016) : error C2065:
> 'GL_OFFSET_TEXT
> URE_MATRIX_NV' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(2442) : error C2065:
> 'GL_OFFSET_TEXT
> URE_BIAS_NV' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(2486) : error C2065:
> 'GL_FOG_COORDIN
> ATE_ARRAY' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(2706) : error C2065:
> 'GL_OFFSET_TEXT
> URE_SCALE_NV' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(2768) : error C2065:
> 'GL_FOG_COORDIN
> ATE' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(3292) : error C2065:
> 'GL_FOG_COORDIN
> ATE_ARRAY_STRIDE' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(3620) : error C2065:
> 'GL_CURRENT_FOG
> _COORDINATE' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(3674) : error C2065:
> 'GL_FOG_COORDIN
> ATE_ARRAY_POINTER' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(4288) : error C2065:
> 'GL_FOG_COORDIN
> ATE_ARRAY_BUFFER_BINDING' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(4528) : error C2065:
> 'GL_SMOOTH_POIN
> T_SIZE_RANGE' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(4549) : error C2065:
> 'GL_SOURCE1_ALP
> HA' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(4853) : error C2065:
> 'GL_SMOOTH_POIN
> T_SIZE_GRANULARITY' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(4930) : error C2065:
> 'GL_SMOOTH_LINE
> _WIDTH_RANGE' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(4949) : error C2065:
> 'GL_BLEND_EQUAT
> ION' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(4964) : error C2065:
> 'GL_SOURCE2_RGB
> ' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(4983) : error C2065:
> 'GL_SOURCE0_RGB
> ' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(5010) : error C2065:
> 'GL_SOURCE1_RGB
> ' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(5072) : error C2065:
> 'GL_SMOOTH_LINE
> _WIDTH_GRANULARITY' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(5137) : error C2065:
> 'GL_SOURCE2_ALP
> HA' : undeclared identifier
> Source\Base\Base\OSGGLDefineMapper_auto.cpp(5198) : error C2065:
> 'GL_SOURCE0_ALP
> HA' : undeclared identifier
> scons: ***
> [build.win32.cl.8.0\type-debug--arch-default\Source\Base\Base\OSGGLDe
> fineMapper_auto.obj] Error 2
> scons: building terminated because of errors.
I'll give a more detailed answer later, but basically the generated file
OSGGLDefineMapper_auto.cpp does contain OpenGL constants that are not in
you gl.h
The tool that generates that file is in
Tools/glEnumMapper/createGLEnumMaps.pl. If you run that and replace the
above file with the output these errors should go away. (as mentioned,
more detailed info a bit later, got to run)
Hope it helps,
Carsten
-------------------------------------------------------------------------
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