Re: Build errors on Solaris
Posted by Attila Barcsik on Jan 05, 2011; 2:16pm
URL: https://forum.jogamp.org/Build-errors-on-Solaris-tp2151661p2198744.html
Hi!
I've fixed the ant scripts to build jogl correctly on solaris (solaris solaris not opensolaris)
I've tried this with jogl_2.0_rc1 on the following systems with great success:
SunOS 5.10 i86pc i386 i86pc
SunOS 5.10 sun4u sparc SUNW,Sun-Fire-V240
build successful, and junit.run is successful too. My test app with GLCanvas works fine, though GLJPanel is buggy (as on other systems).
I haven't found the way to make a pull request, because the git isn't responding, anyway count me I'm noob, and here are the fixes:
So, there are just 2 files to chage:
###############################################################################
FILE: jogamp/gluegen/make/gluegen-cpptasks-base.xml
1st fix in this file:
replace lines from 610 to 639 with this:
( remove comment brackets, and replace "suncc" with "gcc" )
-------------------------------------------------------------------------------
<compiler id="compiler.cfg.solaris" name="gcc">
<defineset>
<define name="SOLARIS" />
</defineset>
</compiler>
<compiler id="compiler.cfg.solaris.sparcv9" name="gcc">
<compilerarg value="-fast" />
<compilerarg value="-xchip=ultra" />
<compilerarg value="-xarch=v9a" />
<defineset>
<define name="SOLARIS" />
</defineset>
</compiler>
<compiler id="compiler.cfg.solaris.amd64" name="gcc">
<compilerarg value="-fast" />
<compilerarg value="-xchip=opteron" />
<compilerarg value="-xarch=amd64" />
<compilerarg value="-xcache=64/64/2:1024/64/16" />
<defineset>
<define name="SOLARIS" />
</defineset>
</compiler>
-------------------------------------------------------------------------------
2nd fix in this file:
replace lines from 754 to 767 with this:
( remove comment brackets, and replace "suncc" with "gcc" )
-------------------------------------------------------------------------------
<linker id="linker.cfg.solaris" name="gcc">
</linker>
<linker id="linker.cfg.solaris.sparcv9" name="gcc">
<linkerarg value="-xarch=v9a" />
</linker>
<linker id="linker.cfg.solaris.amd64" name="gcc">
<linkerarg value="-xarch=amd64" />
</linker>
-------------------------------------------------------------------------------
Sorry for big post.. here are the changes in the second file:
###############################################################################
FILE: jogamp/jogl/make/build-newt.xml
insert this line after line 479:
( must add a new include element for the compiler definition, which is defined from line 473 to line 490
<compiler extends="@{compiler.cfg.id}" >....</compiler> for newt )
-------------------------------------------------------------------------------
<includepath path="/usr/X11/include" />
-------------------------------------------------------------------------------
That's all for solaris fix. Shouldn't broke building on other systems.
As of OpenSolaris, I will try building jogl on it as soon as possible.. thought it's a bit problematic with dead repositories... I can't install the tools needed for building...
Best regards,
Attila