For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

baginner problem - Installing and programming on OpenCascade

Gilles Paiva's picture

I am pretty new on Linux and C++ programming. I am trying to use OpenCascade, but have some problems to understand how to use it on my program.

1. I installed OpenCascade on Windows
2. Ran Draw Test Harness application
3. Read the first application tutorial

So, I think everytinhg is set up, right? How can I compile a simple application, to show a spline, for example? In fact, wish to create surfaces (geometry), save in .IGES file format and create the triangulated surface mesh (I can use Gmsh to do create this mesh, if a I have the .IGES file geometry).

All this may be done on Linux, but the main problem now is to understand how to create a simple application first, to create a simple surface and save as .IGES file format.

Please, help me to finish this task, I am really confused to do this! Thanks.

Game Milky's picture

Hi Gilles,

Are you working on window or Linux? Are you successful installing OCC on Linux? I am also pretty new but,I am successful to install OCC on Linux, and started to work with some examples! If you are planning to work with LINUX+OCC we might work together!



Gilles Paiva's picture

Hi, Game

I would like very much your help! I use Ubuntu, now I installed my stuff on Windows, because I thought it would be easier to work (once I am not very familiar with Linux), but the real deal is to work with Linux, in fact.

I can already generate my meshes from .IGES files using Gmsh, I only need to put OpenCascade to work, to give me .IGES geometries.

Do you use any communicator, such like Msn messenger, GTalk or Skype? So, we could contact.

Game Milky's picture

Here is my skype, we can talk through it, it seems we have a lot to do in common!



Gilles Paiva's picture

I added you, game!

Now, we can use Skype.

Game Milky's picture

okey fine

it is possible, i am very happy for that!


zhangjiayi's picture

hello!I am a college student and i am new in this field.Could you tell me how to install OCC on linux?I am helpless for a long time and i am eager to study OCC on Linux. Thank for your help.Best wishes.

H as's picture

Hi Gilles,

I am really interested to work witt occ on Linux. I followed everything based on documentation. I was successful until "make install", but after that I get the following error:
make[3]: Leaving directory `/scratch/hasadi/local/occt-6.5.5/ros/adm/make/TKOffset'
make[2]: Leaving directory `/scratch/hasadi/local/occt-6.5.5/ros/adm/make/TKOffset'
make[2]: Entering directory `/scratch/hasadi/local/occt-6.5.5/ros/adm/make'
make[3]: Entering directory `/scratch/hasadi/local/occt-6.5.5/ros/adm/make'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/scratch/hasadi/local/occt-6.5.5/ros/adm/make'
make[2]: Leaving directory `/scratch/hasadi/local/occt-6.5.5/ros/adm/make'
make[1]: Leaving directory `/scratch/hasadi/local/occt-6.5.5/ros/adm/make'
make[1]: Entering directory `/scratch/hasadi/local/occt-6.5.5/ros'
make[2]: Entering directory `/scratch/hasadi/local/occt-6.5.5/ros'
/usr/bin/install -c -d /scratch/hasadi/local/occt-6.5.5/ros/Linux
make[2]: Nothing to be done for `install-data-am'.
if [ -e /scratch/hasadi/local/occt-6.5.5/ros/bin -a ! -e /scratch/hasadi/local/occt-6.5.5/ros/Linux/bin ]; then \
cd /scratch/hasadi/local/occt-6.5.5/ros/Linux && ln -s ../bin bin; \
if [ -e /scratch/hasadi/local/occt-6.5.5/ros/lib -a ! -e /scratch/hasadi/local/occt-6.5.5/ros/Linux/lib ]; then \
cd /scratch/hasadi/local/occt-6.5.5/ros/Linux && ln -s ../lib lib; \
buildd=`pwd`; cd .; sourced=`pwd`; cd /scratch/hasadi/local/occt-6.5.5/ros; installd=`pwd`; cd $buildd; \
if [ "$installd" != "$sourced" ]; then \
/usr/bin/install -c -d /scratch/hasadi/local/occt-6.5.5/ros/inc; \
cp -frL ./inc /scratch/hasadi/local/occt-6.5.5/ros; \
cp -frL $buildd/config.h /scratch/hasadi/local/occt-6.5.5/ros; \
for d in OS UnitsAPI ; do \
/usr/bin/install -c -d /scratch/hasadi/local/occt-6.5.5/ros/src/$d; \
cp -frL ./src/$d /scratch/hasadi/local/occt-6.5.5/ros/src; \
done; \
if [ -e /scratch/hasadi/local/occt-6.5.5/ros/inc/config.h ]; then \
unlink /scratch/hasadi/local/occt-6.5.5/ros/inc/config.h; \
cd /scratch/hasadi/local/occt-6.5.5/ros/inc && ln -s ../config.h config.h
cd . && cp *.sh /scratch/hasadi/local/occt-6.5.5/ros
cp: `' and `/scratch/hasadi/local/occt-6.5.5/ros/' are the same file
cp: `' and `/scratch/hasadi/local/occt-6.5.5/ros/' are the same file
cp: `' and `/scratch/hasadi/local/occt-6.5.5/ros/' are the same file
make[2]: *** [install-exec-local] Error 1
make[2]: Leaving directory `/scratch/hasadi/local/occt-6.5.5/ros'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/scratch/hasadi/local/occt-6.5.5/ros'
make: *** [install-recursive] Error 1

I will be grateful if you guys please help me.

thanks in advance