(Panther-SGI Imagelib fixed version is described in 'Compliing OpenInventor on Panther (Imagelib fixed)', Tiger version is described in 'Compling OpenInventor on Tiger' page.)
Some Mac systems may have a problem of window output (at least author's MacBook Pro), but some may work (at least author's MacBook Air and PPC Mac Mini)
First of all, the patch file in this page is based on 'ivpatch' by http://www.memention.com/ivscript.
The followings are the summary of steps by ivscript.
Author tested on PowerPC Mac (Mac Mini) and Intel Mac (MacBook Pro and MacBook Air), and found that they required different patches for each system. Please download ivleopard_ppc_patch for PowerPC Mac or ivleopard_intel_patch for Intel Mac.
(The bison 2.3 came with Leopard has a problem to process yacc file in OpenInventor distribution: so just use bison 1.28 used on Panther is easier than fixing yacc source!)
Now, just apply another patch to compile!
/usr/bin/g++ -L//usr/lib -multiply_defined suppress -L/usr/X11R6/lib -L/sw/lib -L/sw/lib/freetype2/lib -lm -L../../../lib -L../../../libSoXt -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib/ componentTest.o libInventorWidget.a -lInventor -lInventorXt -lGLw -lXi -lXm -lXt -lX11 -lGLU -lGL -liconv -ldl -lstdc++.6 -lmx -lgcc_s.10.5 -lgcc -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -o componentTest Undefined symbols: "_glwM2DrawingAreaWidgetClass", referenced from: _glwM2DrawingAreaWidgetClass$non_lazy_ptr in libInventorWidget.a(MyTextureEd.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [componentTest] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all] Error 1 make: *** [all] Error 1
echo > samples/widgets/componentTest
Because of the "Undefined symbols" error about "_glwM2DrawingAreaWidgetClass" in libInventorWidget.a(MyTextureEd.o), , some programs using InventorWidget may not work properly.
On Intel Mac, even though the compiler worked fine, the inventor program with window ouput will not work: it complains "Warning: Cannot find callbak list in XtAddCallback" many times and show gray window only... Also Intel Mac has a problem reading binary inventor files.
Just changing default value in lib/database/include/Inventor/elements/SoTextureQualityElement.h (line 87) from 0.5 to0.9 make it easier to get better texture mapping without changing in your OpenInventor program or data (like the default texture output was better when you used Reality Engine).
Please send opinions to .