Skip to content

Installing Coin3D For Linux

amutuberria edited this page Jan 3, 2018 · 6 revisions

Coin3D is a high-level 3D graphics toolkit for developing cross-platform real-time 3D visualization and visual simulation software. This toolkit is implemented as a library. The Coin library is used within Tonatiuh to implement the programs 3D views of the concentrating system being simulated and to provide the architecture for the underlying 3D scene graph.

Here you will find instructions to install the Coin library in your computer and make this library available for the development of Tonatiuh.

Details

Download the latest release of the Coin source package, currently Coin 3.1.3. To do it, click on the following link to go to the "Coin 3.1.3" webpage of the Coin website. Once you reach the webpage, click on the link titled "Get Coin 3.1.3 for all platforms" (see Figure 1). This will start the downloading of the Coin source package. When prompted if to open or to store the file in your computer, place it on your "downloads" directory, e.g., /home/downloads.

Figure 1. View of the "Coin 1.3.1" webpage.

Open a shell console, navigate to your download directory, and extract the content of the installer file by typing:

tar -zxvf Coin-3.1.3.tar.gz

This will create a directory called Coin-3.1.3 in your download directory. Using the shell, navigate to just created Coin3.1.3 directory.

Type the following command to build the release version of the Coin3D library:

./configure

In order to complete successfully the configuration, install the package libglu1-mesa-dev if you obtain an error related to OpenGL library.

To solve some compilation errors, change the following:

  • File "include/Inventor/SbBasic.h" (line 26):
  +#include <Inventor/C/errors/debugerror.h>
  • File "src/fonts/freetype.cpp" (line 50):
  +#include <cstdlib>

The code in this lines will be:

 #ifdef __cplusplus
 #include <cstdlib>
 extern "C" {
 #endif /* __cplusplus */>

This will start the configuration process. Depending on your computer, this process may take some time to finish. When it does, install the Coin3D libraries by typing:

make 
make install

The installation process may take several hours.

At the end of the installation process, the libraries will be installed at /usr/local/lib. Now, you can proceed to the installation of SoQt.


Linux Configuration | Wiki Home

Clone this wiki locally