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

Search the Forums
See All Topics
 

Install the 6.3 Version on Linux (Ubuntu)

Install the 6.3 Version on Linux (Ubuntu)
Stanislav 2009/01/14 16:22
Hi, I'm in a very big trouble. I've downloaded the 6.3 Version .tgz to use the program on my computer (Ubuntu 8.10) but I can not install it.

I can not understand, what to do, when I read the ReadMe file.

It would be very helpful if someone would describe the installation step by step with all lines, which belong to the terminal.

I'm no good in English so excuse me the mistakes.

I hope someone can help me to use the open Source program, because that's is the point I've chosen Linux.

Best regards.
Hugues 2009/01/14 18:31
Here is some help :

Go to the "ros" sub-folder of OpenCascade.
Before proceeding building of OpenCascade, you should make sure you those required packages are installed :
libxmu-dev, tcl8.5-dev and tk8.5-dev. If not type :

sudo apt-get install libxmu-dev
sudo apt-get install tcl8.5-dev
sudo apt-get install tk8.5-dev

Then copy/paste the following lines in a bash script file located in the ros sub-folder (call this script "my_configure.sh" for example). Replace "your_opencascade_folder" by what you have (maybe /opt/lib/occ630).

export CASROOT="your_opencascade_folder/ros"
occFlags="--with-tcl=/usr/lib/tcl8.5"
occFlags="$occFlags --with-tk=/usr/lib/tk8.5"
occFlags="$occFlags --with-gl-include=/usr/include"
occFlags="$occFlags --with-gl-library=/usr/lib"
occFlags="$occFlags --with-xmu-include=/usr/include"
occFlags="$occFlags --with-xmu-library=/usr/lib"
occFlags="$occFlags --enable-wok=no"
occFlags="$occFlags --enable-draw=yes"
occFlags="$occFlags --enable-wrappers=no"
occFlags="$occFlags --enable-static=no"
occFlags="$occFlags --enable-shared=yes"
occFlags="$occFlags --disable-debug --enable-production"
./configure $occFlags --prefix=$CASROOT


Then type ./my_configure.sh
This will build a release and shared version of OpenCascade (without WOK).

Hope this helps.
Stanislav 2009/01/14 20:32
Thanks for the fast answer.

I've done, but the last command does not work well. I can not start the my_configure.sh in the terminal. What should I change?

Stanislav 2009/01/14 20:38
The Permission is denied and when I try to start it with sudo, it says "command not found"
Hugues 2009/01/14 21:58
Try to insert #!/bin/bash as the first line of your "my_configure.sh" bash script (this is a file you have to create by pasting the lines I have given).
Stanislav 2009/01/14 22:54
I've tried but it dosen't help. The # stands infront of comments, but without it didn't work as well. Maybe some one, who has successfully installed the program can tell me ho to do it, or give me a link to a howTo.
Svetlozar Kostadinov 2009/01/15 00:39
OFFTOPIC: Stanislav, are you bulgarian?
Gheorghe Iuga 2009/01/15 11:07
It should be working with :
sudo sh my_configure.sh
Hugues 2009/01/15 14:31
Try to give "my_configure.sh" execution rights : chmod u+x my_configure.sh
./my_configure.sh must work then ...

If you still have problems tell us what you clearly do in this thread.
Stanislav 2009/01/15 14:50
It seams to work with the sudo sh my_configure.sh. But how to start the program now?
And, no, I'm not bulgarian. Why should I? :)
Svetlozar Kostadinov 2009/01/15 15:27
Because your name is popular in Bulgaria too. I'm searching for people from Bulgaria working with OpenCascade.
antonio 2009/05/06 05:03
I copy this code for the script and works, the error was CASTROOT "your_opencascade_folder/ros" because it is the directory where the program must be installed,not the directory where the setup files are located,

export CASROOT="usr/include"
occFlags="$occFlags --with-tk=/usr/lib/tk8.5"
occFlags="$occFlags --with-gl-include=/usr/include"
occFlags="$occFlags --with-gl-library=/usr/lib"
occFlags="$occFlags --with-xmu-include=/usr/include"
occFlags="$occFlags --with-xmu-library=/usr/lib"
occFlags="$occFlags --enable-wok=no"
occFlags="$occFlags --enable-draw=yes"
occFlags="$occFlags --enable-wrappers=no"
occFlags="$occFlags --enable-static=no"
occFlags="$occFlags --enable-shared=yes"
occFlags="$occFlags --disable-debug --enable-production"
./configure $occFlags --prefix=$CASTROOT

and then i put the script in "your_opencascade_folder/ros".

But i have a problem, at last appear error: Test harness requires visualization component.
Dennis G. 2009/01/16 10:31
Hello Stanislav,

perhaps you don't have the right idea of what OCC is. It is not a program you can use to do CAD/CAM operations, but a set of libraries which one can use to write a CAD-related program. For example the commercial CAD software Catia is based on the OpenCascade libraries.
Nevertheless there is an example program included in the OCC package. It's called IESample and is located in the $CASROOT/../samples/standard/qt directory. The program allows you to import/export and view CAD-Files like .stp/.igs/.rle .
If you just want to visualize already existing data this program is sufficient but you cannot design new models or modify already existing ones.

Also interesting might be Qt OpenCascade: http://myweb.tiscali.co.uk/dolbey/QtOpenCascade

Best Regards,

Dennis
Hugues 2009/01/16 13:29
Dennis G. said :
"For example the commercial CAD software Catia is based on the OpenCascade libraries."

Really ? Do you know which parts of Catia is made of OpenCascade libraries ? I'm curious.
Dennis G. 2009/01/16 13:51
Unfortunately, I can't tell you which part uses the OCC libraries, because that information is not correct.
Sorry, mea culpa.
jelle 2009/01/16 13:52
I think that is an overstatement, but to paraphrase Steve Howgill on this thread: http://www.opencascade.org/org/forum/thread_3824/

"I think Matra may have NC simulation code. I seem to recall early releases of Catia V5 using a Matra machining package which includes an NC simulation app called WYSIWUG. If I am right, maybe we should campaign to get the code into the public domain."

By the way, an interesting read for you (occ) cad historians out there:
http://www.cadhistory.net/chapters/21_Miscellaneous.pdf

P Dolbey 2009/01/16 17:54
Better to use http://qtocc.sourceforge.net

Pete
 
 
Latest news
  • OCCT Applications
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process

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