<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>/var/spool/weblog   </title>
    <link>http://www.kenytt.net/spool</link>
    <description>UNIX, Perl, Python, and a short fuse</description>
    <language>en</language>

  <item>
    <title>Compiling Fl-Inventor on Windows</title>
    <link>http://www.kenytt.net/spool/2006/06/14#1150327573</link>
    <description>
Another option for Open Inventor programming on Windows is the Fl-Inventor library.  Here's how I got it to build:

&lt;ol&gt;

&lt;li&gt;Download the latest version of FLTK 1.1 from &lt;a href=&quot;http://www.fltk.org/&quot;&gt;http://www.fltk.org/&lt;/a&gt;.  At the time of this writing, the latest is &lt;tt&gt;fltk-1.1.7-source.zip&lt;/tt&gt;
&lt;li&gt;Unzip somewhere convenient, say &lt;tt&gt;C:\fltk-1.1.7&lt;/tt&gt;
&lt;li&gt;Open &lt;tt&gt;visualc\fltkdll.dsw&lt;/tt&gt; with Visual Studio.  (I'm using 6.0.  If you're using a later version, your mileage may vary.)
&lt;li&gt;Choose &lt;b&gt;Build&lt;/b&gt;, &lt;b&gt;Set Active Configuration...&lt;/b&gt; and choose &lt;b&gt;fltkdll - Win32 Release&lt;/b&gt;
    &lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;/images/fl-inventor/fltkdll.png&quot;&gt;&lt;/p&gt;
&lt;li&gt;Choose &lt;b&gt;Build&lt;/b&gt;, &lt;b&gt;Build fltkdll.dll&lt;/b&gt;.
&lt;li&gt;Download and install an older version of &lt;a href=&quot;http://www.cmake.org/&quot;&gt;CMake&lt;/a&gt; from &lt;a href=&quot;http://www.cmake.org/files/&quot;&gt;http://www.cmake.org/files/&lt;/a&gt;.  (The latest version won't work without change, and the last thing I need to learn is a new build tool.)  I used &lt;tt&gt;CMSetup14.exe&lt;/tt&gt;.
&lt;li&gt;Download &lt;tt&gt;fliv-1.0.1.tar.gz&lt;/tt&gt; and &lt;tt&gt;oiv_linux_w32-4.tar.gz&lt;/tt&gt; from &lt;a href=&quot;http://fl-inventor.sourceforge.net/&quot;&gt;http://fl-inventor.sourceforge.net/&lt;/a&gt;.  Unzip them both into the same place.
&lt;li&gt;Change to &lt;tt&gt;C:\fl-inventor&lt;/tt&gt; and type &quot;&lt;tt&gt;cmake .&lt;/tt&gt;&quot;
&lt;li&gt;Back in Visual Studio, open &lt;tt&gt;FLINV_ALL.dsw&lt;/tt&gt;
&lt;li&gt;Set the Active Project Configuration to &quot;ALL_BUILD - Win32 Release&quot;.
    &lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;/images/fl-inventor/ALL_BUILD.png&quot;&gt;&lt;/p&gt;
&lt;li&gt;Choose &lt;b&gt;Project&lt;/b&gt;, &lt;b&gt;Settings...&lt;/b&gt;.  &lt;b&gt;Settings For:&lt;/b&gt; should be set to &quot;Win32 Release&quot;, and all sub-projects should be selected.
&lt;li&gt;Holding down the Ctrl key, de-select &lt;b&gt;ALL_BUILD&lt;/b&gt;.  Some more tabs should appear to the right.  Select the &lt;b&gt;C++&lt;/b&gt; tab, and change &lt;b&gt;Category:&lt;/b&gt; to &quot;Preprocessor&quot;.  Under &lt;b&gt;Additional include directories:&lt;/b&gt;, add &lt;tt&gt;C:\fltk-1.1.7&lt;/tt&gt;.
    &lt;p align=&quot;center&quot;&gt;&lt;img align=&quot;center&quot; src=&quot;/images/fl-inventor/include-directories.png&quot;&gt;&lt;/p&gt;
&lt;li&gt;Holding down the Ctrl key again, de-select &lt;b&gt;FL&lt;/b&gt;, &lt;b&gt;FreeType2&lt;/b&gt;, and &lt;b&gt;Jpeg&lt;/b&gt;.  A &lt;b&gt;Link&lt;/b&gt; tab should appear to the right.  Select it and Change the &lt;b&gt;Category:&lt;/b&gt; to &quot;Input&quot;.  Under &lt;b&gt;Additional library path:&lt;/b&gt;, add &lt;tt&gt;C:\fltk-1.1.7\test&lt;/tt&gt;.  Click &lt;b&gt;Ok&lt;/b&gt;
    &lt;p align=&quot;center&quot;&gt;&lt;img align=&quot;center&quot; src=&quot;/images/fl-inventor/library-path.png&quot;&gt;&lt;/p&gt;
&lt;li&gt;Choose &lt;b&gt;Build&lt;/b&gt;, &lt;b&gt;Build&lt;/b&gt;.  The build will take several minutes.
&lt;li&gt;Exit Visual Studio.  You should be able to run the example programs from &lt;tt&gt;C:\fl-inventor\install\bin&lt;/tt&gt;
&lt;/ol&gt;
</description>
  </item>
  <item>
    <title>Open Inventor on Windows</title>
    <link>http://www.kenytt.net/spool/2006/06/14#1150314972</link>
    <description>
The &lt;a href=&quot;http://oss.sgi.com/projects/inventor/&quot;&gt;Open Source version of SGI Open Inventor&lt;/a&gt; is Linux-specific, and while it probably ports easily enough to other UNIX platforms, it doesn't look like a very attractive option for Windows.

&lt;p&gt;

If you want to do Open Inventor programming on Windows, the options seem to be:

&lt;ol&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.tgs.com/&quot;&gt;TGS&lt;/a&gt; Open Inventor, a commercial product
    &lt;li&gt;&lt;a href=&quot;http://www.coin3d.org/&quot;&gt;Coin3D&lt;/a&gt;, a GPL clone of Open Inventor
        &lt;li&gt;a &lt;a href=&quot;http://studierstube.icg.tu-graz.ac.at/openinventor/&quot;&gt;Win32 port&lt;/a&gt; of the Open Source SGI Open Inventor that requires the SoQt library from Coin3D
&lt;/ol&gt;

Coin3D is probably the best choice, but it seems to include only the OI libraries, not the OI command-line tools like &lt;tt&gt;ivview&lt;/tt&gt; and &lt;tt&gt;ivnorm&lt;/tt&gt;.

&lt;p&gt;

Alternatively, the Win32 port of Open Inventor does incldue pre-compiled DLLs of Inventor, but not of the SoQt library or command-line tools.

&lt;p&gt;

I'm honestly not sure what the best solution is.  I'll post some instructions when I come up with something.
</description>
  </item>
  </channel>
</rss>
