Installing Coin3D For Linux - iat-cener/tonatiuh GitHub Wiki
Installing Coin3D for Linux
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
To use Coin3D correctly the istallation of three packages are required: Simage, Coin and SoQt. First, install Simage.
Simage
- Download the simage 1.7.0 realese of the Simage source package. To do it, click on the following link.
images/developersguide/linux/SimageDownload.jpg |
---|
Figure 1. View of the "simage 1.7.0" download webpage. |
- Open a shell console, navigate to your download directory, and extract the content of the installer file by typing:
tar -zxvf simage-1.7.0.tar.gz
- This will create a directory called simage-1.7.0 in your download directory. Using the shell, navigate to the just created simage-1.7.0 directory and type the following commands to configure and build it.
cd simage-1.7.0/
./configure –prefix=/usr/local
make
sudo make install
Coin
There is not available the latest Coin release for linux. For this reason, it is required to download the code and compile it.
- Download the latest release of the Coin source package forn the following link.
images/developersguide/linux/CoinDownload.jpg.jpg |
---|
Figure 2. View of the Coin download webpage. |
- Navigate to the download directory and type the following comands to build coin library:
$unzip coin-4.0.0-src.zip
cd coin
chmod +x configure
./configure --enable-shared --enable-debug=no --with-simage=/usr/local -–prefix=/usr/local
make
make install
SoQt
The last library needed for Coin3D is SoQt for Coin high-level 3D visualization. In this case, the compilation will be performed with 1.6.0 version.
- Download the latest release of the SoQt source package forn the following link.
images/developersguide/linux/SoQtDownload.jpg.jpg |
---|
Figure 3. View of the SoQt download webpage. |
- Navigate to the download directory and type the following comands to build coin library:
$unzip soqt-1.6.0-src.zip
$cd soqt
$chmod +x configure
$./configure --enable-debug=no --enable-shared --enable-pkgconfig=no CPPFLAGS="-fPIC -I/usr/include/x86_64-linux-gnu/qt5/ -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL" LDFLAGS="-L/usr/lib/x86_64-linux-gnu/qt5/" CONFIG_QTLIBS="-lQt5Core -lQt5Gui -lQt5Widgets -lQt5OpenGL" --prefix=/usr/local
$ make
$ make install
At the end of the installation process, the libraries will be installed at /usr/local/lib. Now, you can proceed to the installation of Installing SQLite.