info-inventor-dev
[Top] [All Lists]

Re: OpenInventor Solaris patch && Mac OSX w/ XDarwin

To: info-inventor-dev@xxxxxxxxxxx
Subject: Re: OpenInventor Solaris patch && Mac OSX w/ XDarwin
From: Kurt Schwehr <kdschwehr@xxxxxxxx>
Date: Thu, 12 Sep 2002 15:06:31 -0700
In-reply-to: <3D80C8E7.C0191F26@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: info-inventor-dev-bounce@xxxxxxxxxxx

Hi All,

Thanks Vincent for the solaris patch. Now I just have to get that sun blade in the corner up to speed... never admin'ed solaris before :)

I was just thinking along the lines of an auto generated script for configuring OpenInventor while starting a port for Mac OSX with XDarwin. I don't have too many changes to the source, but I could easily see that it would be painful with many more architectures. I'd love to have an open inventor that I could point people to and say that they just have to do somethin similar to what most gnu tools use, i.e.

  tar xfz oi.tar.gz
  cd oi
  ./configure --prefix=/sw --with-png
  make install

And it would figure out what to change in a clean way.

i'm sure a lot of you have already put much thought into this, but I be interested in helping out.

ALSO: Is anyone out there working or have done a port to Mac OSX/Darwin/XDarwin? I'm working on one at the moment, but I'm having a little bit of trouble with the whole shared library business.

Thanks!
-Kurt

Hi,

i have checked the patches side-side and cant understand the reason for
the following remaining:

lib/database/include/Inventor/SbTime.h                          N (no
reason)
lib/database/src/sb/SbMatrix.c++                                N (no
reason)
lib/database/src/so/SoInput.c++                                 N (no
reason)
lib/database/src/so/nodes/nurbs/head/mymath.h                   N (no
reason)
lib/interaction/src/nodekits/SoInteractionKit.c++               N (no
reason)
libSoXt/src/mtlEdit/SoXtMtlEdit.c++                             N (no
reason)
libSoXt/src/viewers/SoXtFullVwr.c++                             N (no
reason)

i'am not sure if they are really required ...

all the other except some minor difference matches with my fixes.
for the GNUmakefile it have a solution that have no impact on other
systems.

i think for "make/ivcommondefs" we should add "ivcommondefs.in" and add
a autogen configure to figure out the location of the tools, install
prefix,
location of fonts package and some options for overlay on/off.
... if not everone must hack it.

(
 )imon

"Vincent S. Cojot" wrote:

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:

--
---------------------------------------------------------------------
| Simon Ney, Bischofsweg 46 60598 Frankfurt/M Tel: ++49 69 68600055 |
| Email Simon.Ney@xxxxxxxxxxxxxxxxxxxxxxxxxxx Fax: ++49 69 68600052 |
---------------------------------------------------------------------


Kurt Schwehr -- SIO Grad Student
http://schwehr.org/


<Prev in Thread] Current Thread [Next in Thread>