-
Notifications
You must be signed in to change notification settings - Fork 61
Building TiGL from Source
We recommend building TiGL with Visual C++ 2010 as a 32bit variant. The free Visual C++ Express also works. Other compilers should do as well, but we don't porivide any support for them.
- Download the CMake installer from http://www.cmake.org/ and install it.
- Download OCE binaries for VS2010 from https://github.com/tpaviot/oce/releases and extract them.
- Download and extract latest TiXI binaries from https://github.com/DLR-SC/tixi/releases
- Optional: Download and install Qt 4.8 for VS2010 from http://download.qt.io/archive/qt/4.8/
- Extract the TiGL Code to a directory of your choice. In this tutorial, the directory will be d:\src\tigl
- Open the command shell (Press Windows key and type in cmd.exe)
- Change into the TiGL source directory, e.g.
cd d:\src\tigl
- Create a build directory and change into it
mkdir build && cd build
- Create the building environment by running cmake
cmake -G "Visual Studio 10 2010" -DTIXI_PATH=d:\src\tixi-binaries -DCASROOT=d:\src\oce-binaries -DCMAKE_INSTALL_PREFIX=install ..
You might change the paths where you extracted TiXI and OCE.
-
If everything is fine, close the command shell. Open the Windows Explorer and go to the
d:\src\tigl\build
directory. Open the TIGL.sln file with Visual C++. -
In Visual C++, perform the Release build of the ALL_BUILD project. The Debug build would require a special OCE debug version.
-
Finally install TiGL by building the INSTALL project. You can find the installed TiGL in
d:\src\tigl\build\install
- Please add our package repository matching your distribution via
echo 'deb http://download.opensuse.org/repositories/home:martinsiggel/xUbuntu_13.04/ /' >> /etc/apt/sources.list.d/tigl.list
sudo apt-get update
Replace the string xUbuntu_13.04 by your distribution id. This allows installing opencascade and tixi from out repository.
- Install the dependencies via
sudo apt-get install cmake libtixi-dev qt4-dev-tools liboce-dev
- Download and extract the tigl source. For this tutorial, TiGL is extracted to $HOME/src/tigl
- Open a command shell, enter into the TiGL directory and create a build directory by:
cd $HOME/src/tigl
mkdir build
- Create the makefiles by running cmake:
cmake -DCMAKE_INSTALL_PREFIX=install ..
You might change the installation directory.
- If no errors occured, build TiGL:
make
- (Optional) install TiGL:
(sudo) make install
sudo is only required, if you want to install it into a system path like /usr/local
- Download the CMake installer from http://www.cmake.org/ and install it.
- Download the OCE source and build it as described in the OCE wiki
- Build TiXI from source (see https://github.com/DLR-SC/tixi/wiki/InstallationHowto)
- (Optional) Download and install QT 4.8. (http://download.qt.io/archive/qt/4.8/)
To build TiGL, follow the same build steps for linux. In the cmake configuration, you have to add the OCE installation directory and the TiXI installataion directory:
cmake -DTIXI_PATH=$HOME/src/tixi/build/install -DCASROOT=$HOME/src/oce/build/install -DCMAKE_INSTALL_PREFIX=install ..
If python is installed, the python interface will be automatically built at the compile phase. The resulting file tiglwrapper.py
is located under buildDir/lib/
. When using the TiGL installer, the python wrapper can be found in installDir/share/tigl/python/
. To install the TiGL python wrapper, please copy this file in your python/Lib/site-packages/
folder.