GranOO's install guide
The current stable version of GranOO is the 2.0. Note that this guide is related to this version. However if you want to
install the unstable 3.0 version, just substitute 2.0
by 3.0
in the following commands.
GranOO is coded in C++. It depends on the following C++ libraries : boost, zlib, qt5, eigen3 and vtk6. The sources of GranOO are managed by svn and the compilation process is assisted bycmake. After installation, you can go to the tutorial section to learn the basic usage of the workbench. We recommend to install GranOO on the last GNU/Linux Ubuntu LTS system.
- Install the required dependencies for Debian based distributions.
- Install the required dependencies for CentOS based distributions.
- Install the required dependencies for Fedora based distributions.
- Download the GranOO sources. Note that sources are managed by svn. If you are asked for a password just type
anonsvn
.
- Following the standard cmake install procedure, create a
build
and aninstall
directories.
- Compiling GranOO with cmake and make…
You can take a coffee here !
- Adding the GranOO installation directory to your logging environment.
- Checking installation by running an example.
If you see a 3D graphical interface that shows this simulation, it means that the install is right ! You can go now to the tutorial section to learn GranOO.
How to fix the TPL_PATH-NOTFOUND error
If you experienced the following error
It means that cmake is not able to locate your GranOO installation path. You must help cmake to locate GranOO.
So, instead of invoking cmake as this
You must invoke cmake with
If you want to fix definitively this error, you can add this environment
variable to your .bashrc
file as it follows
In the above code, don’t forget to substitute /path/to/your/granoo
to your real
GranOO location.
Installing GranOO natively on Windows is so long and complicated that your best choice is to use WSL, which stands for “Windows Subsystem for Linux”. It consists in installing a virtual, but nevertheless quite powerful, machine (depending on the physical host).
Install WSL (Windows Subsystem for Linux)
Follow the step by step guide provided by Microsoft here. We recommand to install a Ubuntu distribution so that the following step is straightforward.
Build and install GranOO
Follow the step by step guide provided by the GranOO team for Ubuntu/Debian distributions.
X server
The last step, if you plan to use GUI in the Linux system, is to install an X server. Again, we recommand to install VcXsrv
, which is quite easy to use. VcXsrv
can be downloaded from here.
Finally, in the Linux virtual machine, edit your .bashrc
file:
nano /home/<username>/.bashrc
and add the display address at the end of the file:
export DISPLAY=:0.0
GranOO is now ready to use !
This tutorial was written for the following tools and dependencies versions: Microsoft Visual Studio Community 2015 Update 3, ConEmu 16.12.06 & Clink 0.4.8, CMake 3.10.2, svn 1.8.17, zlib 1.2.11, boost 1.65.1, Qt 5.9.2, VTK 8.0.1 and Eigen 3.3.2. First, you need to install all these required dependencies.
Install Microsoft Visual Studio Community
- Download it from the following link
- Run the installer and select “Custom” for the installation type
- Select only Programming Languages -> Visual C++ -> Common Tools for Visual Studio C++ 2015
Install ConEmu & Clink
This step is not mandatory, but it improves the experience of the default Windows command line tool. Clink improves the tab completion, and ConEmu handles tabs and colours (among other interesting features).
- Download ConEmu from the following link
- Download Clink from the following link
- Install both of them (default installs)
Install Subversion
- Download Subversion from the following link
- Install Subversion (default install)
- After the installation completes, if needed, configure your proxy server in the
[global]
section of theservers
file, located atC:\Users\<UserName>\AppData\Roaming\Subversion
Install CMake
- Download CMake from the following link
- Install CMake (default install)
Prepare your build environment
Create the project tree :
- Create a folder named
Developer
inC:\
- Create 3 subfolders named
Sources
,Build
andInstall
in theC:\Developer
directory
Configure ConEmu for 64bit systems:
- Start ConEmu and, if prompted at ConEmu startup, select
SDK::VS 14.0 x86 tools prompt
as startup task - If not prompted at startup, go to ConEmu Settings -> Startup -> Tasks (see task (1), (2) and (3) on this screenshot)
- Change the configuration name from
...x86...
to...x64...
( see task (4) on this screenshot) - In the commands list, change
x86
tox64
(see task (5) on this screenshot) - In ConEmu Settings -> Startup, select
SDK::VS 14.0 x64 tools prompt
as “Specified named task” (see (1) and (2) on this screenshot) - Save settings
Download zlib
zlib will be used by Boost to compile the [lib| ]boost_zlib.[lib|dll]
,
which is required by GranOO for classes serialization.
- Download the
.zip
archive of zlib sources - Extract the downloaded
.zip
archive inC:\Developer\Sources
Build and install Boost
- Download the
.zip
archive from this link - Extract the downloaded
.zip
archive inC:\Developer\Sources
- In ConEmu, move into
C:\Developer\Sources\boost_1_65_1
- Type the following commands to create (bootstrap) the builder, build and install boost:
Install Qt5
- Download the installer for Windows x64 and msvc2015
- Run the installer and type
C:\Developer\Install\Qt-5.9.2
as install path (may be adjusted according to the version number) - The minimal configuration for GranOO is to select the
msvc2015 64bit
component. All other components are not mandatory.
Build and install VTK
- Download the
.zip
archive of VTK sources from: http://www.vtk.org/download - Extract the downloaded
.zip
archive inC:\Developer\Sources
- In ConEmu, move into
C:\Developer\Build
, create a folder namedvtk
, and move into it - Type the following command to configure VTK
- Type the following build and install VTK
Install Eigen3
- Download the
.zip
archive of Eigen3 sources from: http://eigen.tuxfamily.org - Extract the downloaded
.zip
archive inC:\Developer\Sources
- In ConEmu, move into
C:\Developer\Build
, create a folder namedeigen
, and move into it - Type the following command to configure Eigen3
- type the following to install Eigen3
Download, build and install GranOO
- In ConEmu, move into
C:\Developer\Sources
- To download the GranOO sources, type the following command:
- Once the sources are downloaded, move into the build directory, and create a GranOO build directory:
- Configure the GranOO build using CMake. Here, we will build the 2.0 version:
- When the configuration is done, build and install GranOO:
As it is stated in the CMake configuration command, GranOO is now installed in C:\Developer\Install
. The GranOO binaries are located in C:\Developer\Install\GranOO\2.0\bin
, and the GranOO library is in C:\Developer\Install\GranOO\2.0\lib
.
The last step is to add the GranOO installation directory to your environment variables
GranOO is now ready to use !