[EMAIL PROTECTED] wrote:
> Hello carsten,
>
> it was the right hint - but now I a have new problem (sorry):
>
> my OpenExr libs are in folders under a "Deploy" folder. So you have in
> "bin" the folders "x64_debug" and "x64_release". The same for the lib
> folder.
> Any ideas how to use these folders (I've tried to understand the scons
> script - but how to differentiate between debug and release mode).
around line ~678 is ToolChain.__init__, changing it to something like
the following should allow you to handle the special case for your exr
libs (sorry, untested):
for option in _po.getPackageOptions():
if isinstance(_po.getOption(option), str):
newpath = os.path.join(_po.getOption(option), 'include')
if self.env.get('CPPPATH') == None or newpath not in
self.env.get('CPPPATH'):
self.env.Append(CPPPATH = [newpath])
# HACK but the OpenEXR headers are broken.
if option == 'exr':
if _po.buildOpt():
subdir = 'x64_release'
elif _po.buildDbg():
subdir = 'x64_debug'
self.env.Append(CPPPATH =
[os.path.join(_po.getOption(option), 'include', 'OpenEXR')])
newpath = os.path.join(_po.getOption(option),
'lib', subdir)
else:
newpath = os.path.join(_po.getOption(option), 'lib')
if self.env.get('LIBPATH') == None or newpath not in
self.env.get('LIBPATH'):
self.env.Append(LIBPATH = [newpath])
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