opensg-core  

Re: [Opensg-core] Link error building with SCons, MSVC 8.0 on Windows (reviewed)

Christoph Schäfer
Mon, 24 Mar 2008 02:54:35 -0700

Hi,

I cleared up some text and hope this is ok for you.

Gerrit Voss schrieb:
> Hi,
>
> ok, one thing, could you try to use the local scons. E.g. something like
>
> python Tools/scons-local/scons.py 
>
> together with the local scons addons.
>
> I don't know if I checked and updated everything for the latest scons
> version.
>
> And if my memory isn't to bad I saw this error once with a newer version
> of scons.
I've fetched opensg's current svn head and used the local scons with the 
delivered addons. What I do:

python c:\src\pro\opensg2\tools\scons-local\scons.py 
BoostBaseDir=%BOOSTDIR% enable_unittests=false var_type=debug 
MSVS_VERSION=8.0

Now guess what: it works. Apparently  I was over motivated by the 
warning in the beginning of the build, Scons-Addons must be used in 
newest svn version. Together with not using the local scons I messed up 
things. Sorry sorry for bothering you with this stuff.

As soon as I get some free minutes I will add some information to the 
building section of Trac to avoid people trapping to the pitfalls like I 
did. I guess this is the proper page 
http://opensg.vrsource.org/trac/wiki/Building ?

Anyway if I try to use debugrt:

python c:\src\pro\opensg2\tools\scons-local\scons.py 
BoostBaseDir=%BOOSTDIR% enable_unittests=false var_type=debugrt 
MSVS_VERSION=8.0

What I get:

Option error:  List option 'var_type' does not allow item 'debugrt'
Traceback (most recent call last):
  File "C:\src\pro\OpenSG2\SConstruct", line 665, in <module>
   opts.Process(common_env)
  File "Tools\scons-addons\src\SConsAddons\Options\Options.py", line 
639, in Process
    option.validate(env)          # Validate the settings
  File "Tools\scons-addons\src\SConsAddons\Options\Options.py", line 
476, in validate
    raise SCons.Errors.UserError, "List option '%s' does not allow item 
'%s'"%(self.keys[0],i)
UserError: List option 'var_type' does not allow item 'debugrt'

> the parameter was the trick, I missed that you used the commandline to
> set var_type. I usually use the options.* file as it the to get
> persistent options. But the commandline version should be fine to.
>
>   
> hmm, ok, that one collides with the override in AddOnHacks.py, these
> aren't adjusted to the latest add-ons.
>
> If the local scons does not work, I'll try to changes the AddOnHacks.py
>
> kind regards,
>  gerrit
>   
Kind regards,
Christoph

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-core mailing list
Opensg-core@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-core