Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

baginner problem - Installing and programming on OpenCascade

baginner problem - Installing and programming on OpenCascade
Gilles Paiva 2012/05/25 18:11
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 2012/05/25 18:30
      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 2012/05/25 22:44
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 2012/05/26 09:27
Here is my skype, we can talk through it, it seems we have a lot to do in common!



Gilles Paiva 2012/05/28 17:43
I added you, game!

Now, we can use Skype.
Game Milky 2012/05/29 10:46
      okey fine

it is possible, i am very happy for that!

zhangjiayi 2013/03/31 15:58
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 2013/04/19 12:30
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
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map