Hello everyone,
It's my first post here so please forgive me if my netiquette isn't perfect.
After browsing through the list archives for a while, I came up with a patch
against inventor-2.1.5-9 that lets one compile it end to end under
Solaris/Sparc (tested under Solaris 8 02/02 with gcc 2.95.3).
My problem with the patches previously submitted to this list was that
nobody came up with a complete set which would make life a little easier for
the average end-user.
I integrated all of the posted patches into one big patch, wrote a README
file for Solaris and a build script and I fixed a few things in the process
of compiling the samples. The patch is far from perfect but at least now, on
a Solaris/Sparc box, compiling inventor is as easy as:
1) meeting the software requirements (Software Companion stuff, Gnome-1.4
for freetype, OpenGL).
2) getting inventor-2.1.5-9.src.tar.gz
3) applying the patch
4) cd inventor; ./go.sh.
I'm attaching the patch to this e-mail.
It is also availble from
http://step.polymtl.ca/~coyote/OpenInventor-2.1.5.9-Solaris.patch.gz
I hope this will be useful to others.
Portability: I tried to protect all code modifications with __sun__ but I
didn't bother to do that for diffs to GNUmakefiles under inventor/apps/...
The code can thereforce probably be integrated into the main tree but not
the diffs to the makefiles.
I will come up with a better patch later on but I'm posting this preliminary
result here. Also, this inventor installs under /usr/local/lib,
/usr/local/bin, etc.. a-la-BSD/Linux. :) So far, this build has proven as
reliable as the Linux official build for me.
The files that are modified/created are:
inventor/README.Solaris
inventor/apps/demos/SceneViewer/GNUmakefile
inventor/apps/demos/drop/GNUmakefile
inventor/apps/demos/gview/GNUmakefile
inventor/apps/demos/maze/GNUmakefile
inventor/apps/demos/noodle/GNUmakefile
inventor/apps/demos/qmorf/GNUmakefile
inventor/apps/demos/revo/GNUmakefile
inventor/apps/demos/textomatic/GNUmakefile
inventor/apps/demos/textomatic/TextWrapper.c++
inventor/apps/samples/widgets/GNUmakefile.componentTest
inventor/apps/samples/widgets/MyTextureEd.c++
inventor/apps/tools/ivview/GNUmakefile
inventor/go.sh
inventor/lib/database/include/Inventor/SbBasic.h
inventor/lib/database/include/Inventor/SbTime.h
inventor/lib/database/src/sb/SbMatrix.c++
inventor/lib/database/src/so/SoInput.c++
inventor/lib/database/src/so/nodes/SoText2.c++
inventor/lib/database/src/so/nodes/SoText3.c++
inventor/lib/database/src/so/nodes/nurbs/head/mymath.h
inventor/lib/interaction/src/nodekits/SoInteractionKit.c++
inventor/libSoXt/src/mixedMode/SoXtSlider.c++
inventor/libSoXt/src/mtlEdit/SoXtMtlEdit.c++
inventor/libSoXt/src/viewers/SoXtFullVwr.c++
inventor/make/commondefs
inventor/make/commonrules
inventor/make/ivcommondefs
inventor/make/system
The issues that remain are related to text: I am not sure that text displays
correctly or displays at all.. Perhaps a freetype problem.
Here is README.Solaris:
Small HOWTO written by Vincent S. Cojot <coyote@xxxxxxxxxxxxxxx>
Compiled on Solaris 8/sparc 02/02 with OpenGL 1.2.3
Tested on Ultra5/PGX64 and SunBlade 2000/XVR-1000.
It requires the following packages:
From the Software Supplement CD:
SUNWglh SUNWglrt SUNWglrtu SUNWglrtx SUNWglsr SUNWglsrx SUNWglsrz
(Plus packages for your specific graphics card. Install OpenGL All packages).
application SUNWglh Sun OpenGL for Solaris Header Files
application SUNWglrt Sun OpenGL for Solaris Runtime Libraries
application SUNWglrtu Sun OpenGL for Solaris Platform Specific
Runtime Libsapplication SUNWglrtx Sun OpenGL for Solaris 64-bit Runtime
Libraries
application SUNWglsr Sun OpenGL for Solaris Runtime Generic Software
application SUNWglsrx Sun OpenGL for Solaris 64-bit Optimized SW
Rasterizerapplication SUNWglsrz Sun OpenGL for Solaris Optimized SW
Rasterizer
From the Solaris 8 Software Companion CD:
SFWgcc SFWbison SFWflex SFWgm4 SFWgfile SFWjpg
system SFWgcc gcc - GNU Compiler Collection
system SFWbison GNU bison - a better yacc
system SFWflex GNU flex - a lex replacement
system SFWgm4 GNU m4 - macro processor
system SFWgfile fileutils - GNU file management utilities
system SFWjpg jpeg - The Independent JPEG Groups JPEG software
From the Gnome-1.4 preview CD:
SUNWftyp2
GNOME SUNWftyp2 Software Font Engine (The FreeType 2 library)
Chances are that these packages depend on other packages. It is left
as an exercise for the reader to satisfy the dependencies of the above
packages for his/her platform.
1) Get inventor source from oss.sgi.com.
2) extract it:
- cd /usr/local/src
- gzip -dc inventor-2.1.5-9.src.tar.gz
- cd inventor
2) Apply patch (you obviously already did if you are reading this):
- gpatch -p1 -b < OpenInventor-2.1.5.9-Solaris.patch
You have to use GNU patch for this to work as it will create README.Solaris
3) Compile it as:
#!/bin/bash
export IVROOT=/
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${IVROOT}/usr/local/lib
export FREETYPE=1
gmake install
4) Run it!
if you have /usr/local/lib in your LD_LIBRARY_PATH, invoke
SceneViewer:
/usr/local/bin/SceneViewer /usr/local/share/data/models/sgi/logo.iv
5) please report problems/enhancements/etc.. to http://oss.sgi.com,
contact me for Solaris stuff if you wish.
Vincent S. Cojot
Wed Aug 28 14:09:25 MEST 2002
OpenInventor-2.1.5.9-Solaris.patch.gz
Description: GNU Zip compressed data
|