<cid:[email protected]>Hi,
Maybe I can help you with you problem. You can try the make.bat (rename
attached make.txt to make.bat) to start compiling OpenSG2. It uses some
environment settings to set up the command line needed by scons.
I suggest you do the following:
1) Do a fresh check out of the OpenSG2 trunk (I just did so today,
compiles fine)
2) Copy the make.bat to the OpenSG2 root directory (the one with files
like PEOPLE, VERSION, ...)
3) Run the make.bat and check the displayed settings - You need to set
BOOSTDIR and GLUTDIR environment variables or set them in the make.bat
(btw Boost 1.35 runs fine for me)
If this don't get you started take a look at the wiki page at
http://opensg.vrsource.org/trac/wiki/Building
Cheers,
Christoph
Lorenzo Cesario schrieb:
Hi,
i tried to compile debug and optimized (i reported console output in
previous mail) but there are compiling errors.
I report these errors here again:
OSGReferenceCountTest.cpp
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(60) : error
C2143: s
yntax error : missing ';' before 'constant'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(60) : error
C2064: t
erm does not evaluate to a function taking 1 arguments
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(65) : error
C2228: l
eft of '.get' must have class/struct/union
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(70) : error
C2227: l
eft of '->getId' must point to class/struct/union/generic type
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(81) : error
C2227: l
eft of '->getRefCount' must point to class/struct/union/generic type
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(81) : error
C2665: '
UnitTest::CheckEqual' : none of the 4 overloads could convert all the
argument t
ypes
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(30): could be 'void UnitTest::CheckEqual(UnitTest::TestResults
&,const ch
ar *,const char *,const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(32): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,char
*,char *,
const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(34): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,char
*,const c
har *,const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(36): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,const char
*,c
har *,const UnitTest::TestDetails &)'
while trying to match the argument list '(UnitTest::TestResults,
int)'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(82) : error
C2227: l
eft of '->getWeakRefCount' must point to class/struct/union/generic type
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(90) : error
C2664: '
void OSG::Node::setCore(OSG::NodeCore *const )' : cannot convert parameter 1
fro
m 'int' to 'OSG::NodeCore *const '
Conversion from integral type to pointer type requires
reinterpret_cast,
C-style cast or function-style cast
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(95) : error
C2227: l
eft of '->getRefCount' must point to class/struct/union/generic type
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(95) : error
C2665: '
UnitTest::CheckEqual' : none of the 4 overloads could convert all the
argument t
ypes
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(30): could be 'void UnitTest::CheckEqual(UnitTest::TestResults
&,const ch
ar *,const char *,const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(32): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,char
*,char *,
const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(34): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,char
*,const c
har *,const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(36): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,const char
*,c
har *,const UnitTest::TestDetails &)'
while trying to match the argument list '(UnitTest::TestResults,
int)'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(103) : error
C2227:
left of '->getMFParents' must point to class/struct/union/generic type
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(103) : error
C2227:
left of '->at' must point to class/struct/union/generic type
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(103) : error
C2665:
'UnitTest::CheckEqual' : none of the 4 overloads could convert all the
argument
types
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(30): could be 'void UnitTest::CheckEqual(UnitTest::TestResults
&,const ch
ar *,const char *,const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(32): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,char
*,char *,
const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(34): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,char
*,const c
har *,const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(36): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,const char
*,c
har *,const UnitTest::TestDetails &)'
while trying to match the argument list '(UnitTest::TestResults,
OSG::No
deRecPtr)'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(110) : error
C2106:
'=' : left operand must be l-value
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(291) : error
C2143:
syntax error : missing ';' before 'constant'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(291) : error
C2440:
'=' : cannot convert from 'OSG::GroupTransitPtr' to 'int'
No user-defined-conversion operator available that can perform this
conv
ersion, or the operator cannot be called
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(298) : error
C2228:
left of '.get' must have class/struct/union
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(305) : error
C2227:
left of '->getId' must point to class/struct/union/generic type
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(314) : error
C2664:
'void OSG::Node::setCore(OSG::NodeCore *const )' : cannot convert parameter
1 fr
om 'int' to 'OSG::NodeCore *const '
Conversion from integral type to pointer type requires
reinterpret_cast,
C-style cast or function-style cast
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(315) : error
C2664:
'void OSG::Node::setCore(OSG::NodeCore *const )' : cannot convert parameter
1 fr
om 'int' to 'OSG::NodeCore *const '
Conversion from integral type to pointer type requires
reinterpret_cast,
C-style cast or function-style cast
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(323) : error
C2227:
left of '->getRefCount' must point to class/struct/union/generic type
type is 'int'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(323) : error
C2665:
'UnitTest::CheckEqual' : none of the 4 overloads could convert all the
argument
types
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(30): could be 'void UnitTest::CheckEqual(UnitTest::TestResults
&,const ch
ar *,const char *,const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(32): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,char
*,char *,
const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(34): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,char
*,const c
har *,const UnitTest::TestDetails &)'
c:\progetti\endonav\sorgenti\opensg\tools\unittest-cpp\unittest++\src\Ch
ecks.h(36): or 'void UnitTest::CheckEqual(UnitTest::TestResults &,const char
*,c
har *,const UnitTest::TestDetails &)'
while trying to match the argument list '(UnitTest::TestResults,
int)'
Source\System\FieldContainer\Base\OSGReferenceCountTest.cpp(333) : error
C2106:
'=' : left operand must be l-value
scons: ***
[build.win32.cl.8.0\type-debug--arch-default\Source\System\FieldConta
iner\Base\OSGReferenceCountTest.obj] Error 2
scons: building terminated because of errors.
Tks
Lorenzo
----- Original Message -----
From: "Gerrit Voss" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 27, 2008 12:05 PM
Subject: Re: [Opensg-users] OPENSG 2.0 compiling errors under windows
Hi,
On Wed, 2008-08-27 at 11:59 +0200, Lorenzo Cesario wrote:
Hi,
errors about OSGGLDefineMapper_auto.cpp are resolved.
Now....if i try to build without any option of var_type building i have
these errors (and there are the same errors
obtained if i use this command line
python Tools\scons-local\scons.py
BoostBaseDir=C:\Programmi\boost\boost_1_33_1 enable_unittest=false
type_var=hybrid MSVS_VERSION=8.0):
^^^^^^
don't build hybrid, build either debug or optimized, IIRC hybrid never
really worked, at least I currently don't testbuild it.
kind regards,
gerrit
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
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
@echo off
cls
echo ===========================================================================
echo Make script for OpenSG2 on Windows XP using VS 2005, Boost and Glut
echo ===========================================================================
echo Environment variables (must be set):
echo ---------------------------------------------------------------------------
echo python must be in your PATH!
echo BOOSTDIR: %BOOSTDIR%
echo GLUTDIR: %GLUTDIR%
echo ===========================================================================
echo Parameters :
echo ---------------------------------------------------------------------------
echo BoostBaseDir=%BOOSTDIR%
echo var_type=debug
echo MSVS_VERSION=8.0
echo enable_unittests=false
echo glut=%GLUTDIR%
echo glut_incdir=%GLUTDIR%
echo glut_libdir=%GLUTDIR%
echo disable_glut_glsubdir=True
echo Optional: %1
echo Optional: %2
echo Optional: %3
echo Optional: %4
echo Optional: %5
echo Optional: %6
echo Optional: %7
echo Optional: %8
echo Optional: %9
echo ===========================================================================
echo Please doublecheck this settings before continue...
echo ===========================================================================
pause
python Tools\scons-local\scons.py BoostBaseDir=%BOOSTDIR% var_type=debug
MSVS_VERSION=8.0 enable_unittests=false glut=%GLUTDIR% glut_incdir=%GLUTDIR%
glut_libdir=%GLUTDIR% disable_glut_glsubdir=True %1 %2 %3 %4 %5 %6 %7 %8 %9
-------------------------------------------------------------------------
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