Open Inventor by Mercury includes Open Inventor and its extension modules (MeshViz, VolumeViz, DirectViz, HardCopy, TerrainViz, ScaleViz, FXViz, SolidViz, and ReservoirViz).
Administrator privileges are required to install Open Inventor by Mercury. If you do not have Administrator privileges on the machine where you are installing, Setup will not be able to create the Open Inventor program group or set up the Open Inventor environment variables at the System (all users) level.
User privileges are administered using the User Manager, which is
normally found in the Administrative Tools program group.
See the System
Requirements Overview topic for disk space requirements.
We recommend installing on an NTFS partition in order to take advantage of long
file names. The Open Inventor libraries and DLLs have short names to facilitate
redistribution, but the Open Inventor include files and example programs have
long file names to convey extra information.
To install the Open Inventor SDK:
From FTP'ed File:
Do the following operations from the command line.
| Demos | Open Inventor demos |
| Documentation | Inventor Help File, online documentation |
| License Admin | License administration utility. Complete documentation is available through the Help button. |
| Release Notes | Text-only release notes for each product |
| Extension Info | Provides info about OpenGL extensions on your system that are/may be used by Open Inventor. |
| Qt LargeModelViewer Demo | Demonstrates adaptive viewing and simplification. |
| IvTune | 3D editor and viewer for Open Inventor scenes |
| Readme File | First file to be read |
| Scene Viewer | An application for viewing Inventor files. NOTE: SceneViewer supports "drag and drop" of Open Inventor (.iv) files from the Windows Explorer. The first time SceneViewer is executed it also sets up a file "association" so that double clicking on an Open Inventor file will load that file into SceneViewer. |
| Tree View | An application for displaying the scene graph structure of an Open Inventor file. |
NOTE: This step is only required if you plan to use any of the SoQt classes in your application.
Before you can use any of the SoQt classes in your Open Inventor application, you must first build InvQtxxx(D).DLL where xxx is the current version of Open Inventor.
Included with the Open Inventor SDK is InvQtxxxBuilder, a tool for building the corresponding InvQtxxx.DLL using the version of Qt identified by the QTDIR environment variable.
You can rebuild InvQtxxx.DLL whenever you switch to a newer version of Qt. If you are using Visual Studio .NET 2003, Visual Studio 2005 or Visual Studio 2008, it must be binary compatible with Qt 3.3.6 or Qt 4.2.
Here's what you will need to do:
- IMPORTANT: Make sure you only have the current INVxxx lib files in your lib directory. (Hide or remove the older INVxxx libs. For the initial release of Open Inventor 7.2, this shouldn't be a concern. However, for patch releases this becomes very important.)
- Make sure Qt is installed and the QTDIR environment variable is defined.
- Make sure your compiler is installed.
- Run the InvQt builder to build the DLLs.
The InvQt builder is in the top level of your installation directory and is named InvQtxxxBuilder.exe -- InvQt720Builder.exe for the initial release of Open Inventor 7.2.
A single prebuilt InvQtxxx.DLL is delivered with the Open Inventor SDK to allow people who don't have any Qt to run (but not build) the pre-built Qt applications (for example, the QtLargeModelViewer demo).
Your Open Inventor software is computer ID locked. Please read the Password section for more details.
In the Open Inventor Program folder, run SceneViewer.exe to check if the installation has been successful.
There are numerous ways to create an Open Inventor project in Visual C++.
You can use the IVF AppWizard to create a new project complete with skeleton source files and project or makefile ready to build.
You can also modify one of the provided Open Inventor make files or project files for your own project. You can also create simple projects from scratch or add Open Inventor support to an existing project.
Here are some guidelines for Open Inventor projects.
Visual Studio 2003 and 2005
Open Inventor Libraries
The Open Inventor header files (since version 2.2) contain #pragma statements
that automatically request the linker to search the necessary libraries.
One exception is "UNIX style" programs (i.e. programs that have a main
function), which are Windows applications, not console applications. These
applications must include INVU720(D).LIB in the link string because they
require a WinMain function which is supplied by the INVU library. Generally we
recommend using a console application for this type of project.
NOTE: For UNIX style programs that do have a main and that are Windows
apps, we now recommend using SoWinApp.h in your application to simplify
some of the housekeeping details. It has pragma statements to include the
current version of INVUxxx.LIB and INVUxxxD.LIB. It also has the following
statements so you no longer need to insert them directly in your code:
#ifdef WIN32
# define main ivMain
#endif
In the event that it becomes necessary to configure Visual C++ manually, follow the instructions below (the installation program configures it automatically if Microsoft Visual C++ has been installed).
Alternatively, you can reinstall Open Inventor and the correct versions of the files will be copied automatically.
and
enter the directory path of the Open Inventor include directory (e.g.,
C:\Program Files\Mercury Computer Systems\OIV7.2\include).
The IVF AppWizard is automatically installed during the Open Inventor
installation except if Microsoft Visual Studio 2003 or 2005 is not detected on
your system. In this case, the IvfWiz directory is created in your Open
Inventor installation, and you will need to execute the following steps:
The wizard will be available the next time that you select File, New Project in Visual C++ Projects, IVF AppWizard 7.2.
Open Inventor can be removed with the Add/Remove Programs applet from the Control Panel group. From the Install/Uninstall tab, select OpenInventor 7.2 from the scrolled list and then press the Add/Remove button to uninstall Open Inventor 7.2.
Root privilege is not required to install Open Inventor.
See the System Requirements Overview topic for disk space requirements.
You can install the Open Inventor SDK anywhere on your system. It is highly recommended that you use an empty directory for your new Open Inventor installation. The directory may have any name you like. We suggest you choose the name "OpenInventor" with the current version number appended. For example, "OpenInventor720".
NOTE: Open Inventor does not install any files in system directories (for example /usr/lib and /usr/include).
Create the installation directory and make it the current directory:
mkdir OpenInventor720
cd OpenInventor720
To install from the FTP package or from CD, you will need to uncompress and untar the files:
If the file is suffixed .tar.gz:gunzip < tarfile_name.tar.gz | tar xvf -
The package organization from the FTP looks like the following (shorter names from the CD-ROM):
- OIV720xxx_sdk.tar.gz
This package contains the complete SDK including all data files and demo files for Open Inventor by Mercury (Open Inventor, MeshViz, VolumeViz, DirectViz, HardCopy, TerrainViz, ScaleViz, FXViz, and SolidViz).
xxx is platform dependent.
See the README file on ftp or on the CD-ROM for more information on packaging.
Notes:
- By default, gunzip is installed on all UNIX systems.
- On IBM AIX, Open Inventor needs to use the shared (not static) OpenGL library.
But only a static OpenGL library is provided: /usr/lib/libGL.a
To build the shared OpenGL library from the static one, do the following:
- cd OpenInventor720/lib
- ar x /usr/lib/libGL.a
- mv shr.o libGL.so
Your Open Inventor software is computer ID locked. Please read the Password section for more details.
Open Inventor environment variables
To use Open Inventor, all users must initialize Open Inventor environment variables. Set the following environment variable to compile, link, and run programs:
- OIVHOME to <path_to_your_Open_Inventor_installation>
For example,
setenv OIVHOME /usr/local/OpenInventorOther optional environment variables specific to Open Inventor and its extensions can be set. Please refer to SoPreferences in the Reference Manual for more information.
System environment variables
- On UNIX systems, the shared library path must be specified. The library path contains the list of directories to search for the shared libraries. On Sun, SGI, and Linux, the environment variable name is LD_LIBRARY_PATH.
- For example, to set the library path:
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${OIVHOME}/lib
- MOTIFHOME should be set to specify where to find the Motif directory (contains include and lib directories for Motif).
- For example, on Linux:
setenv MOTIFHOME /usr
- OGLHOME should be set to specify where to find the OpenGL directory (contains include and lib directories for OpenGL).
- For example, on Solaris:
setenv OGLHOME /usr/openwin
- XAPPLRESDIR must be set to $OIVHOME/app-defaults to use the localized resource files (see X11 documentation). To use a specific language, you will need to create a link to the desired localized file (English is the default). For example,
NOTE: On SGI, you must hide or remove the Inventor resource file provided by SGI. Go to the /usr/lib/X11/app-defaults directory and rename Inventor to Inventor.hide (or the name of your choosing).
- cd $OIVHOME/app-defaults
- rm Inventor
- ln -s Inventor.french Inventor
NOTE: If you see that "Iv" is prepended to the labels and menu items in your Open Inventor viewer, it most likely means that you did not set XAPPLRESDIR (or, on SGI, you did not hide the Inventor file that SGI provides).
The $OIVHOME/src/Inventor/verifs directory contains a test program. To check that the installation is correct, do the following:
- cd $OIVHOME/src/Inventor/verifs
- make verifs
- ./verifs
The program opens a window and displays a red cone.
NOTE: We assume here that all the required environment variables are set correctly.
Open Inventor demonstration and example programs are provided with standard Imakefiles and their configuration templates for each platform (look in $OIVHOME/config). Platform-dependent variables are stored in $OIVHOME/config/Inventor.mak. The Makefiles have already been built from the Imakefiles so you do not need to build them yourself.
To build an Open Inventor demonstration or example program, simply cd to the appropriate directory and type "make".
To build all demonstration programs for Open Inventor or one of its extensions, cd to the appropriate directory and type "make all". For example, to build all Open Inventor example programs:
- cd $OIVHOME/src/Inventor
- make all
NOTE: Some of the Open Inventor programs that we distribute (primarily demo programs) depend on the libwidget.a file. If you build the programs individually rather than using the "make all" command shown above, you will need to build the library in the samples/widgets directory before you can build these programs.
In order to install Open Inventor, you must be allowed to write into the installation directory. If the location you have chosen (e.g., /usr/local) requires root privileges, then you must have root privileges to do the installation (and subsequent upgrades or uninstallation).
See the System Requirements Overview topic for disk space requirements.
You can install the Open Inventor SDK anywhere on your system. It is highly recommended that you use an empty directory for your new Open Inventor installation. The directory may have any name you like. We suggest you choose the name "OpenInventor" with the current version number appended. For example, "OpenInventor720".
The default installation directory is /usr/local. To install in this directory, you will need root privileges.
The Open Inventor SDK is distributed as an RPM (Red Hat Package Manager file). This is a powerful and convenient way of handling software distribution and installation on Linux systems.
The full package name is:
<product name>-<major release number>-<platform label>.rpm
Platform label may be i386 (P4), ia64 (Itanium), or x86_64 (AMD64 and Xeon64).
- To install the Open Inventor rpm package in the default location (/usr/local):
rpm -ivh OpenInventor-7.2.0-RHEL3.0.gcc3.2.3.i386.rpm
(-ivh means install, verbose, show installation progress)
- To install the Open Inventor rpm package in a specified location:
rpm -ivh --prefix YourDirectory OpenInventor-7.2.0-RHEL3.0.gcc3.2.3.i386.rpm
(-ivh means install, verbose, show installation progress, --prefix specifies the directory where the files will be installed)NOTE: If you see a "Failed dependencies" error message when you install the Open Inventor rpm package, you will need to add the --nodeps flag:
rpm -ivh --nodeps OpenInventor-7.2.0-RHEL3.0.gcc3.2.3.i386.rpm
(--nodeps means no dependency check)
This kind of problem may occur if no OpenMotif rpm is installed on the system.
Your Open Inventor software is computer ID locked. Please read the Password section for more details.
This step is the same for UNIX and Linux platforms. Please see the UNIX text for details.
This step is the same for UNIX and Linux platforms. Please see the UNIX text for details.
This step is the same for UNIX and Linux platforms. Please see the UNIX text for details.
To uninstall Open Inventor, use the following RPM command:
rpm -e OpenInventor
- To install the Open Inventor rpm package:
rpm -iv OpenInventor-7.2.x86_64.rpm
(iv means install and verbose)
- To get information about it:
rpm -qi OpenInventor
(qi means query information)
- To get the list of files:
rpm -ql OpenInventor
(ql means query list)
- To uninstall it:
rpm -e OpenInventor
(e means erase)
- To upgrade it:
rpm -Uv OpenInventor-7.5-3.x86_64.rpm
(Uv means Upgrade and verbose)
Your Open Inventor software is computer ID locked. Computer ID locking is a form of software license control that allows Open Inventor to run only on specifically licensed systems. Each time Open Inventor runs, it checks for a valid password. By default, it looks in the file password.dat in the license directory of the Open Inventor installation.
On Microsoft Windows, in the directory %OIVHOME%\License, the program Ladmin.exe is a license manager program for entering your licenses. It is preferable and simpler to use this program on Microsoft Windows.On non-Windows platforms, you MUST modify the password file password.dat in the license directory of your Open Inventor installation to contain valid password(s).
See also FLEXnet licensing for floating licensing information (available for run-time licenses only).
If you have not already received your password from Mercury, you will need to contact us to request one (see Obtaining a password from Mercury Computer Systems). You must provide your customer number and your computer identifier (see Obtaining your computer ID).
To request the password, please contact Mercury Computer Systems:
From North, South, and Central AmericaFrom Europe, Middle East, Africa, Asia, and Australasia
- Email: 3d_license@mc.com
- Phone: +1 978 967 3206
- Fax: +1 978 967 3303
- Email: 3d_license_europe@mc.com
- Phone: +33 556 13 37 71
- Fax: +33 556 13 02 10
We will need the following information to create the password:
- The name and version number of each product for which you are requesting a password.
- Your name and company name.
- Your Mercury Computer Systems Sales Order #.
- Your computer ID (See Obtaining your computer ID) below for instructions.
- Your phone number and/or FAX number, in case we need more information.
- Your email address.