Hello Patrik,
[EMAIL PROTECTED] wrote:
> Hello Carsten,
>
> after adding your changes and removing exr for the moment (1.6.1 from
> OpenEXR has other libs)
in that case you should not need the change.
> - I've tried to rebuild OpenSG again. But I just
> get new errors:
>
> UnboundLocalError: local variable 'subdir' referenced before assignment:
> File "SConstruct", line 1559:
> tc = SelectToolChain()
> File "SConstruct", line 1516:
> return win32_msvc80x64()
> File "SConstruct", line 1151:
> win32_msvc_base.__init__(self, 'win32-msvc80x64')
> File "SConstruct", line 975:
> win32.__init__(self, name)
> File "SConstruct", line 827:
> ToolChain.__init__(self, name)
> File "SConstruct", line 690:
> newpath = os.path.join(_po.getOption(option), 'lib', subdir)
AFAICS the only way this can happen is when both _po.buildOpt() and
_po.buildDbg() are False ?
The error about subdir being used before assignment should go away by
adding an else branch (as below)
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'
else:
subdir = ''
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])
> my settings are:
>
> scons compiler=msvc80x64 type=both -j 4
> qt4=C:\Projekte\C++\qt-win-opensource-src-4.4.1 cg="C:\Program Files
> (x86)\NVIDIA Corporation\Cg" text=yes gif=yes
> tif="C:\Projekte\C++\FreeImage\Source\LibTIFF\release"
> jpg=C:\Projekte\C++\FreeImage\Source\LibJPEG\release
> png=C:\Projekte\C++\FreeImage\Source\LibPNG\release exr=no
> zlib=C:\Projekte\C++\FreeImage\Source\ZLib\release contrib_cgchunk=yes
> contrib_cgfxmaterial=no contrib_cgfxmaterial2=yes contrib_ply=yes
> contrib_terrain=yes contrib_rhino3d_loader=yes tests=no glut=yes
hm, maybe try building building debug and release one after the other,
instead of with type=both
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