Installation and Verification
Windows - Linux - Linux Headless
Windows
- Administrator privileges
- Verify adequate disk space
- Details on installers
- Toolkit installation process
- Using example programs
- Essential MSVC++ settings
- Configuring MSVC++
- Uninstalling Open Inventor
Administrator privileges Administrator privileges are required to install Open Inventor. 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 modified using the User Accounts.
Verify adequate disk space See the System Requirements.
Overview topic for disk space requirements. Details on installers Open Inventor Toolkit The package contains the include files, libraries, utilities, example programs, data files, and C++ reference manual in Windows help format. Example: OpenInventorC++1000-Windows-Visual2012-x86_64.exe Toolkit installation process
- Welcome dialog
- License Agreement dialog
- Components selection dialog You can choose to install or not the SDK, the runtime environment (debug or PDB files, release is mandatory), example programs (source code or binaries), and reference manual.
- Installation location dialog Setup will suggest a default location for the installation, e.g., C:\OpenInventor\10.0.0 C++ Visual2012 x64, and allows you to select a different location if desired. We recommend using a directory name that includes the version number. Avoid using the Windows operating systems C:\Program Files directory because it protects its content and you will not be able to edit and build example programs.
- Start Menu Folder dialog You can choose the Windows Start Menu folder. The default is to use the same name as for the installation folder.
- Install All Open Inventor files will be installed into the selected installation directory. With one exception (see MSVC++ below), the installer does not put any files in system directories, only in the selected installation directory.
- Copy License dialog At this step, the installer asks to locate the file containing the license strings necessary to unlock the product that you should have received from our licensing team. The environment variable OIV_LICENSE_FILE is set to the path of this file in the user's environment.
- Environment Variables Setup will set the following environment variables for all users (added to the System environment variables): OIVHOME, OIVARCH, OIV_LICENSE_FILE and QT_QPA_PLATFORM_PLUGIN_PATH . Installer will also add to the PATH variable the path to the Open Inventor DLLs. If you downloaded the zip archive: please be sure to set these variables manually in you environment. OIVHOME must be set to the path to your Open Inventor installation and OIVARCH to the (something like arch-Windows-x86_64-msvc12-release). Then in your PATH variable add the %OIVHOME%/%OIVARCH%/bin directory. OIV_LICENSE_FILE must, of course, point to the complete path of valid license file.NOTE: Environment variable changes do not affect running programs. To ensure that changes are applied, you may need to: • Log out and log in again, -OR- • Open the Control Panel, open the System applet, click on Advanced, click on Environment Variables, and click on OK.
- Program Group Setup will create the following icons in the Open Inventor group.
- IvTune viewer: an application for viewing Open Inventor files.
- Online documentation: a link to the Open Inventor Developer Zone containing the full documentation.
- Samples browser: a program to browse and run the Open Inventor example programs.
For a complete list of installed files, see Open Inventor files.
- Completing the installation: The last installation dialog allows you to launch the Open Inventor Samples browser, to read the Readme file, and to access the online documentation. To validate the installation, run the Samples browser and try to run some demonstration programs. See the Using example programs chapter for validation of the development environment.
The Open Inventor toolkit comes with hundreds of example programs showing how to use the various features. The source code of these programs is located in the %OIVHOME%/examples/source directory. All example programs are already built and ready to be run after installation as soon as the environment variables are set. The Samples Browser program can be used to browse these example programs, to run them, and to read their documentation (if it is available) and to access the source code directory. Visual Studio projects are also available in each subdirectory for building and testing them. Each project can be reused or modified freely for experimenting. If you wish to generate your own Makefiles or project using CMake, please read the Build Examples section for more details.
Essential MSVC++ settings for an Open Inventor project There are numerous ways to create an Open Inventor project in Visual C++. 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.
- Run-Time Library Open Inventor is compiled with (and absolutely requires) the runtime library option Multithreaded DLL (or Debug Multithreaded DLL).Visual Studio
- In the Project menu, select Properties.
- In the left pane of the Property Pages dialog, open the C/C++ folder.
- In the left pane, click on Code Generation.
- In the right pane, click on Runtime Library, and from the list box, select Multi-threaded DLL (or Multi-threaded Debug DLL for the debug target).
- Open Inventor Libraries The Open Inventor header files 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), that are Windows applications, not console applications. These applications must include InventorU(D).LIB in the link string because they require a WinMain function, which is supplied by the InventorU 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 InventorU.LIB and InventorUD.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
Configuring MSVC++ for use with Open Inventor
You can use property sheets to create project configurations that can be applied to multiple projects since project settings that are defined in .props files are inheritable, unlike project settings defined in Project Files (.vcxproj files). Therefore, a project configuration defined in a .vcxproj file can inherit project settings from one or more property sheets (.props files). For more information, see MSDN. In this file you can specify include path for Open Inventor include directory (e.g.,%OIVHOME%\include) and library path for libraries directories (e.g., %OIVHOME%\arch-...-release\lib and %OIVHOME%\arch-...-debug\lib).
Uninstalling Open Inventor
According to Operating System you have different procedure to uninstall Open Inventor. For example for Windows 7, it can be removed with the Programs and Features in the Control Panel. Select Open Inventor C++ 10.0.0 Visual2012 x64 from the list and uninstall it.
Linux
- Root privileges
- Verify adequate disk space
- Select an installation directory
- Set up the License Key
- Set the environment variables
- Using sample programs
- Generate sample makefile
- Un-installing Open Inventor
Root privileges
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).
Verify adequate disk space
See the System Requirements.
Select an installation directory
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, "OpenInventor1000". The default installation directory is /usr/local/OpenInventorCpp. To install in this directory, you will need root privileges.
Installation Instructions
- RPM package (for RPM-based Linux Platforms)
- Become root by running su and entering the super-user password.
- Download and install the cmake RPM package (required).
- Install Extra Packages for Enterprise Linux (EPEL) to satisfy the CMake (cmake3) dependency.
- Install the Open Inventor RPM package:
yum install epel-release
yum localinstall [PACKAGE_NAME]
This command will install Open Inventor C++ package and all dependencies (except for cmake):
rpm -ivh --prefix [PACKAGE_NAME]
- DEB package (for Ubuntu and DEB-based Linux Platforms)
- Become administrator by running su and entering the administrator password
- sudo dpkg -i [PACKAGE_NAME] and follow instructions
Please note that some dependancies may have to be installed manually during the process (dpkg will display needed information).
- Compressed archive (for Linux Platforms)
- Copy the archive in the folder where you want to install it
- Uncompress the Open Inventor package in the destination directory
cd /usr/local/ tar -xzvf [PACKAGE_NAME]
Set up the License key
Please read the Licensing section for more details.
Set the 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 the folder where is installed Open Inventor. For example
setenv OIVHOME /usr/local/OpenInventor
- OIVARCH to define Release or Debug. For example,
setenv OIVARCH arch-Linux-x86_64-gcc44-release
OIVARCH is useful to switch between Release and Debug libraries. Other optional environment variables specific to Open Inventor and its extensions can be set. Please refer to SoPreferences in the Reference Manual for more information. Some System environment variables must also be set or updated
- The shared library path (LD_LIBRARY_PATH) must be specified. The library path contains the list of directories to search for the shared libraries. For example, to set the library path:
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${OIVHOME}/${OIVARCH}/lib
- MOTIFHOME should be set to specify where to find the Motif directory (contains include and lib directories for Motif). For example:
setenv MOTIFHOME /usr
- OGLHOME should be set to specify where to find the OpenGL directory (contains include and lib directories for OpenGL). For example:
setenv OGLHOME /usr/local/OpenGL
- XAPPLRESDIR must be set to $OIVHOME/app-defaults to use the localized resource files (see the 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,
- 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.
Using sample programs
The Open Inventor toolkit comes with hundreds of sample programs showing how to use the various features. The source code of these programs is located in the $(OIVHOME)/src directory. All sample programs are already built and ready to be run after installation as soon as the environment variables are set. The Samples Browser program ($OIVHOME/$OIVARCH/bin/ivBrowser) can be used to browse these sample programs, to run them and to read their documentation it it exists. Generate sample makefile Binaries of Open Inventor samples are provided in the package, but if you wish rebuild your own binaries you have to generate makefiles from provided cmakefile . Please read the Build samples instructions section for more details.
- RPM package (for RPM-based Linux Platforms)
- To uninstall Open Inventor, use the RPM manager:
rpm -e OpenInventorC++
- To find the version number of the installed package you can type:
yum list | grep OpenInventor
- To uninstall Open Inventor, use the RPM manager:
- DEB package (for DEB-based Linux Platforms)
- To uninstall Open Inventor, use the DEB manager:
dpkg --remove OpenInventorC++
- To find the version number of the installed package you can type:
dpkg -l | grep OpenInventor
- To uninstall Open Inventor, use the DEB manager:
- Compressed archive (for Linux Platforms)
- To uninstall Open Inventor, remove the installation folder:
rm -rf /usr/local/OpenInventor
- To uninstall Open Inventor, remove the installation folder:
Linux Headless
- Root privileges
- Verify adequate disk space
- Select an installation directory
- Install Open Inventor
- Set up the License Key
- Set the environment variables
- Un-installing Open Inventor
Root privileges
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).
Verify adequate disk space
See the System Requirements
Select an installation directory
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, "OpenInventor1000". The default installation directory is /usr/local/OpenInventorCpp. To install in this directory, you will need root privileges.
Install Open Inventor Headless from compressed archive
- Copy the archive to your Open Inventor home folder
- Uncompress the Open Inventor package in the destination directory
cd /usr/local/ tar -xzvf [PACKAGE_NAME]
Install Open Inventor from .DEB package
- Become administrator by running su and entering the administrator password
- Enter following command
sudo dpkg -i [PACKAGE_NAME]
and follow instructions
Please note that some dependancies may have to be installed manually during the process (dpkg will display needed information).
Set up the License key
Please read the Licensing section for more details.
Set the 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 where is installed Open Inventor Headless. For example,
setenv OIVHOME /usr/local/OpenInventor
- OIVARCH to select Release or Debug libs. For example,
setenv OIVARCH arch-Linux-x86_64-gcc44-release
OIVARCH is useful to switch between Release and Debug libraries. Other optional environment variables specific to Open Inventor and its extensions can be set. Please refer to SoPreferences in the Reference Manual for more information. Set or update also following system variables
- The shared library path (LD_LIBRARY_PATH) must be specified. The library path contains the list of directories to search for the shared libraries. For example, to set the library path:
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${OIVHOME}/${OIVARCH}/lib
- MOTIFHOME should be set to specify where to find the Motif directory (contains include and lib directories for Motif). For example:
setenv MOTIFHOME /usr
- OGLHOME should be set to specify where to find the OpenGL directory (contains include and lib directories for OpenGL). For example:
setenv OGLHOME /usr/local/OpenGL
- XAPPLRESDIR must be set to $OIVHOME/app-defaults to use the localized resource files (see the 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,
- 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.
Un-installing Open Inventor
To uninstall Open Inventor remove the installation folder if installed from tar.gz package
rm -rf /usr/local/OpenInventor
or use the DEB manager if installed from .DEB package
dpkg --remove OpenInventorC++
Windows
General installation information
Toolkit installation
Environment variables
Run Examples
Install as Java extension (optional)
General installation information
In order to install Open Inventor Java see requirements on page System Requirements.
This page describes how to install Open Inventor Java on Windows platform. The Java classes are cross-platform but the native runtimes must be installed for each platform.
The URL links to download Open Inventor installers are delivred by the upgrade e-mail. If you select the link: "Download Open Inventor Java", a download page is opened and you can select the desired package "for Windows" platform: executable (.exe) or compressed (.zip) version for 64-bit.
Administrator privileges are required to install the executable package Open Inventor. If you do not have administrator privileges on the machine, please use the compressed version (.zp) and set the Open Inventor environment variables, see Environment variables for details.
Open Inventor toolkit package is available as executable installer (.exe) or compressed zip file (.zip):
OpenInventorJava-Windows.exe/.zip
This package contains JAR files, native shared libraries, example programs, data files and Java reference manual.
For compressed package .zip, create your own home directoty and unzip the folder. For instance open Command Prompt (note that unzip.exe should be installed) and type:
mkdir JavaHome cd JavaHome unzip \OpenInventorJava1000-Windowsx86_64.zip
Then the environment should be set: see Environment variables section for more details.
For the executable installer .exe, see below the steps of the installation procedure:
- Welcome dialog
- License Agreement dialog
Your Open Inventor Java requires a license. Please read the Licensing page for details.
-
- Components selection dialog
You can select to install or not the example programs or reference manual. - Installation location dialog
Setup will suggest a default location for the installation, e.g., C:\OpenInventor\10.0.0 Java x64, and allows you to select a different location if desired. We recommend using a directory name that includes the version number.
Avoid using the Windows operating systems C:\Program Files directory because it protects its contents and you will not be able to edit and build example programs. - Start Menu Folder dialog
You can choose the Windows Start Menu folder. The default is to use the same name as for the installation folder. - Install
All Open Inventor files will be installed into the selected directory. The installation procedure sets all necessary environment variable. See Environment variables for more details. - Copy License dialog
At this step, the installer asks you to locate the file containing the license strings necessary to unlock the product. You should have received this file from our licensing team. Please refer to the Licensing page for details. The environment variable OIV_LICENSE_FILE is set to the path of this file in the user's environment. The file name is usually password.dat. - Complete installation dialog: it is possible to select to run "Open inventor samples browser".
- Components selection dialog
Environment variables
Once the installation is done, you may need to define some environment variables. Note that the installation package configures the environment itself, so you only need to define following variables if you used the compressed archive of Open Inventor Java:
-
- OIVJHOME: the Open Inventor Java home installation directory.
- The library path PATH: it must contain the path to the native libraries of Open Inventor Java: %OIVJHOME%\jre\bin.
- OIV_LICENSE_FILE: this is necessary if the default license file %OIVJHOME%\license\password.dat is not used. This variable must contain the absolute path to the license file password.dat. Please read the Licensing page for details.
Run examples
Each demo can be executed by using the delivered JAR files:
cd %OIVJHOME%\examples\inventor\mentor\examiner java -jar Main.jar
A browser of all demos, called Demos launcher is delivered in the package. To run it, type:
cd %OIVJHOME%\examples\launcher java -jar Main.jar
Or you can use the DemosLauncher.bat script available in %OIVJHOME%
See below a screenshot of the application:
To run a demo, double-click the item or select te auto-launch feature.
If you are not able to run demos, please check if Java Runtime Environment is installed (i.e. type java -version in Command Prompt) and if the version is compatible with the Open Inventor packages selected.
If Java is not available, you will have to download and install the Java JDK RPM package (required): Oracle Jdk if Open Inventor 10.8 or less, Open JDK if Open Inventor 10.9 or more
Check the license using the property (or environment variable) OIV_LICENSE_DEBUG. If OIV_LICENSE_DEBUG is equal to 1, when starting any Java application that needs Open Inventor for Java, licensing details are printed (if OIV_LICENSE_DEBUG is equal to , the messages will be printed in the log file).
Otherwise check the System requirements page for more details.
Installation as Java Extension (optional)
Open Inventor Java can be installed as a Java extension: the Open Inventor runtime files (JAR files and native shared libraries) should be copied into the JRE or JDK. Installing the runtime files inside Java causes Open Inventor Java to be considered a standard Java extension, with the following benefits:
-
- Open Inventor Java has privileged permission (despite Open Inventor JAR files not being signed),
- Open Inventor JAR files are automatically found by the JVM, so you do not need to add them to the CLASSPATH environment variable,
- the shared libraries *.dll are automatically found by the JVM, so you do not need to add them to the library path PATH.
See the Java Extension Mechanism or the Java Tutorials for additional information about Java extensions.
Linux
General installation information
Toolkit installation
Environment variables
Install as Java extension (optional)
Un-installing Open Inventor
General installation information
This page describes how to install Open Inventor Java on Linux platform. The Java classes are cross-platform but the native runtimes must be installed for each platform.
The URL links to download Open Inventor installers are delivred by the upgrade e-mail. If you select the link: "Download Open Inventor Java", a download page is opened and you can select the desidered package "for Red Hat Enterprise Linux" platform: .RPM for 64-bit or .TAR.GZ for 64-bit, or for "for Ubuntu 18.04" platform : .DEB for 64-bit or .TAR.GZ 64-bit.
Toolkit installation
The Open Inventor Toolkit for Linux is distributed as a RPM package and a compressed archive. The default installation directory is /usr/local. To install in this directory, you will need root privileges.
-
- RPM package (for RPM-based Linux Platforms)
The toolkit package name is: OpenInventorJava-Linux-.rpm
Installation Instructions
1. Become root by running su and entering the super-user password.
2. Download and install the Java JDK RPM package (required): Oracle Jdk if Open Inventor 10.8 or less, Open JDK if Open Inventor 10.9 or more
3. Install the Open Inventor RPM package
yum localinstall OpenInventorJava--Linux--.rpm
This command will install Open Inventor Java package and all dependencies (except for Java JDK).
You can change the default installation directory by using the following command:
rpm -ivh --prefix OpenInventorJava--Linux--.rpm
-
- DEB package (for DEB-based Linux Platforms)
The toolkit package name is: openinventorjava__amd64.deb
Installation Instructions
-
-
-
- Become administrator by running su and entering the super-user password.
- Download and install the Java JDK RPM package (required): Oracle Jdk if Open Inventor 10.8 or less, Open JDK if Open Inventor 10.9 or more
- Install the Open Inventor DEB package
-
-
dpkg -i openinventorjava__amd64.deb and follow instructions
Please note that some dependancies may have to be installed manually during the process (dpkg will display needed information).
-
- Compressed archive (for Linux Platforms)
The toolkit package name is: OpenInventorJava-Linux-.tar.gz
Installation Instructions
- Copy the archive to your Open Inventor home folder
- Uncompress the Open Inventor package in the destination directory
cd /usr/local/ tar -xzvf OpenInventorJava-Linux-.tar.gz
The Open Inventor package contains the include JAR files, native shared libraries, example programs, data files, and Java reference manual.
The Open Inventor Java Toolkit requires a license. Please read the Licensing page for details.
The installed package contains a folder $OIVJHOME/demos for the Java examples. It contains many examples to show how to use Open Inventor features using the Java API.
You can run the Open Inventor Java examples by using the delivered JAR files:
cd ${OIVJHOME}/examples/inventor/mentor/examiner java -jar Main.jar
A browser of all demos, called Demos launcher is delivered in the package. To run it, type:
cd ${OIVJHOME}/examples/launcher java -jar Main.jar
Or you can use the DemosLauncher.sh script available in %OIVJHOME%
See below a screenshot of the application:
To run an example, double-click the item or select the auto-launch feature.
If you are not able to run the examples, please check if the Java Runtime Environment is installed (i.e. type java -version in Terminal) and if the version is compatible with the Open Inventor packages selected.
If Java is not available, download :
- Oracle Jdk if you're using Open Inventor v10.8 or less
- Open Jdk if you're using Open Inventor v10.9 or more
Then install it and re-run the Open Inventor examples.
Check the license using the property (or environment variable) OIV_LICENSE_DEBUG. If OIV_LICENSE_DEBUG is equal to 1, when starting any Java application that needs Open Inventor for Java, licensing details are printed (if OIV_LICENSE_DEBUG is equal to the messages will be printed in the log file).
Otherwise check the System requirements page for more details.
-
- OIVJHOME must be set to the Open Inventor Java home installation directory,
- The library path LD_LIBRARY_PATH must contain the path to the native libraries of Open Inventor Java:
- Linux 64-bit: ${OIVJHOME}/jre/lib/amd64
- OIV_LICENSE_FILE: this is necessary if the default license file ${OIVJHOME}/license/password.dat is not used. This variable must contain the absolute path to the license file password.dat. Please read the Licensing page for details.
Installation as Java Extension (optional)
Open Inventor Java can be installed as a Java extension: the Open Inventor runtime files (JAR files and native shared libraries) should be copied into the JRE or JDK.
Installing the runtime files inside Java causes Open Inventor Java to be considered a standard Java extension, with the following benefits:
-
- Open Inventor Java has privileged permission (despite Open Inventor JAR files not being signed),
- Open Inventor JAR files are automatically found by the JVM, so you do not need to add them to the CLASSPATH environment variable,
- the shared libraries lib*.so are automatically found by the JVM, so you do not need to add them to the library path LD_LIBRARY_PATH.
See the Java Extension Mechanism or the Java Tutorial for additional information about Java extensions.
-
- RPM package (for RPM-based Linux Platforms)
To uninstall Open Inventor, use the RPM manager:
rpm -e OpenInventorJava
To find the version number of the installed package you can type:
yum list | grep OpenInventor
-
- DEB package (for DEB-based Linux Platforms)
To uninstall Open Inventor, use the DEB manager:
dpkg --remove OpenInventorJava
To find the version number of the installed package you can type:
dpkg -l | grep OpenInventor
-
- Compressed archive (for Linux Platforms)
To uninstall Open Inventor, remove the installation folder.
rm -rf /usr/local/OpenInventor
Windows
This page describes how to install Open Inventor .NET on the supported platforms. The current version of Open Inventor .NET is available for the following platforms:
-
- Windows 7 (32-bit or 64-bit)
- Windows 10 (32-bit or 64-bit)
Use the installer provided with the product to automatically install Open Inventor .NET. Be sure to install the version of Open Inventor .NET that is appropriate for your platform (32-bit or 64-bit).
Toolkit installation process
Setup the license key
Generate projects of demonstration programs
Open Inventor .NET is provided on Windows with an InstallShield™ installer. below the main steps:
-
- Information dialog
- License Agreement dialog
- Components selection dialog
You can choose to install or not the SDK, the runtime environment (debug or PDB files, the release is mandatory), examples programs (source code or binaries) and reference manual. - Installation location dialog
Setup will suggest a default location for the installation, e.g., C:\OpenInventor\9.4.0 .NET Visual2012 x64, and allows you to select a different location if desired. We recommend using a directory name that includes the version number.
Avoid using the Windows operating systems C:\Program Files directory because it protects its content and you will not be able to edit and build example programs. - Start Menu Folder dialog
You can choose the Windows Start Menu folder. The default is to use the same name as for the installation folder. - Install process
All Open Inventor files will be installed into the selected installation directory. - Copy License dialog
At this step, the installer asks to locate the file containing the license strings necessary to unlock the product that you should have received from our licensing team. The environment variable OIV_LICENSE_FILE is set to the path of this file in the user's environment. - Environment variables
Setup will set the following environment variables for all users (added to the System environment variables): OIVNETHOME, OIVARCH, OIV_LICENSE_FILE. Note OIVARCH is necessary only to run the delivered example programs. - Completing the installation
The last installation dialog allows access to the online documentation.
Setup the license key
Your Open Inventor .NET software requires a license key. Please read the License section for more details.
Generate projects of demonstration programsTthe Premake tool can be used to generate the Visual Studio projects of the Open Inventor example programs. It uses one premake5.lua file for each example program.
premake5 vs2017|vs2015
The premake5 executable is available in the %OIVNETHOME%\tools directory.
See https://premake.github.io/ for details about the Premake tool.
Example 1: rebuild one demonstration project
-
- cd %OIVNETHOME%\src\Inventor\examples\Mentor\CSharp\_02_1_HelloCone
- premake5 vs2012
Build or rebuild _02_1_HelloCone.csproj and _02_1_HelloCone.sln for Visual Studio 2012.
Example 2: rebuild several demonstration projects at once, and one solution for all of them
-
- cd %OIVNETHOME%\src\Inventor\examples\Mentor\CSharp
- premake5 vs2012
Build or rebuild a list of csproj and one InventorMentor.sln solution for Visual Studio 2012.
Note: All of these projects are created by referencing to Open Inventor assemblies using OIVNETHOME and OIVARCH environment variables in the HintPath. For instance, OIV.Inventor assembly is defined by the following line in the generated project:
$(OIVNETHOME)\assemblies\$(OIVARCH)\OIV.Inventor.dll
If you prefer to generate csproj files that do not use HintPath you can use the --ignoreHintPath option:
premake5 --ignoreHintPath vs2015|vs2013|vs2012
General help is available using the following command:
premake5 --help
In any case, please note that it's recommended to use the option --platform=x64 (or x86) to be compatible with the OIV assemblies you are using.
Examples:
-
- premake5 --platform=x64 vs2012 (for 64 bits version of Visual Studio 2012)
- premake5 --platform=x86 vs2012 (for 32 bits version of Visual Studio 2012)