Coin3d Inventor Installations
If you have you have time and interests in installing Coin3d in Linux
on your own machine or in a temporary directory,
you can following the installation steps to
do so. Please note:
- For a perfect and complete installation, carefully read the
outputs with the config command "./configure --help", for setting up
various environments and options. Be sure you have Qt (version 3.0 or
above) and OpenGL (or Mesa) installed in your system. If you fail
in "configure --xxx", you cannot continue in installation. In such a
case, check against "config.log" file, fix the problems indicated in
that file first.
- If you want all the users on the Linux should
be able to use Coin3d Inventor, you'd better to have the "root" rights
for installation.
For a quick look at the installation
process/structure/results:
- "ssh" to "lab4" machine in SEM 252,
- go to "/tmp/coin3d",
- there are several subdirectories there:
- "downloads": the downloaded files,
- "srcdir": the source files/codes,
- "builddir": where you build (do the installation process)
Coin3d,
- "installdir" where you put the Coin3d's commands, libraries,
"include" files, man/help/html pages...
Testing the installation
We have the Coin3d Inventor installed on CS' Linux machines in SEM 252.
Testing if Coin3d Inventor works:
To get the Coin3d Inventor in
SEM 252 to work with your CS account,
please add the following into your ".cshrc" or ".bashrc", depending on
your shell environment:
- setenv PATH
"/usr/local/coin3d/bin:$PATH"
or export
PATH=/usr/local/coin3d/bin:$PATH
- setenv
LD_LIBRARY_PATH "/usr/local/coin3d/lib:$LD_LIBRARY_PATH"
or export
LD_LIBRARY_PATH=/usr/local/coin3d/lib:$LD_LIBRARY_PATH (If
there is some error such as "$LD_LIBRARY_PATH
not set/found...", cross out $LD_LIBRARY_PATH on the right side
of
the equal sign "=")
- Then use "source" to activate the updated file.
Now go to "/usr/local/coin3d/SoGuiExamples-SoQt". All the
subdirectories there contain numerous examples of different features of
Coin3d Inventor. Those examples have been successfully compiled and
linked and are ready for execution.
Homework 1 ( 1 hour/minimum ---- 3
years/maximum ):
- Set up the enviroment for your CS account (see above).
- Go to "/usr/local/coin3d/SoGuiExamples-SoQt". Run the
examples in the subdirectories "components",
"actions", "draggers", "engines", "eyecandy",
"manipulators", and "sensors". Please note: to view the correct
displays, don't remotely run
these executables. Even though they can be executed with same Linux
versions, you may have
slightly different visual effects. But remote execution can be used to
test if the program/code works correctly.
- Go to "/usr/local/coin3d/include/Inventor". Have a glance at the
contents there. And
- Notice the files' names.
- Quickly go through the contents of files "Sb.h",
"SbVec3f.h", "SbMatrix.h", "SoTime.h".
- Remember there are some important subdirectories there:
"engines", "nodes", "sensors", "manips", "actions", and "Qt". If
interested, list the files names in those subdirectories.
- Go to "/usr/local/coin3d/bin". There are 3 commands:
"coin-config", "soqt-config", and "simage-config".
- Run them with the option "--help".
- Run them with some other options: for example, "--ldflags",
"--cppflags", "--libs", and "--cflags".
- Pay particular attention to "soqt-config"
and its options.
- Go to "/usr/local/coin3d/lib" and use "ls -l" to list all the
coin3d libraries.