Install the 6.3 Version on Linux (Ubuntu)

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 Delorme's picture

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's picture

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's picture

The Permission is denied and when I try to start it with sudo, it says "command not found"

Hugues Delorme's picture

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's picture

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's picture

OFFTOPIC: Stanislav, are you bulgarian?

Gheorghe Iuga's picture

It should be working with :
sudo sh my_configure.sh

Hugues Delorme's picture

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's picture

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's picture

Because your name is popular in Bulgaria too. I'm searching for people from Bulgaria working with OpenCascade.

antonio's picture

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.'s picture

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 Delorme's picture

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.'s picture

Unfortunately, I can't tell you which part uses the OCC libraries, because that information is not correct.
Sorry, mea culpa.

jelle's picture

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's picture

Better to use http://qtocc.sourceforge.net

Pete

wabeckley_150136's picture

It would be great if opencascade had a repository for DEBIAN, so that it could be installed directly and updated without problems and that it already installed the dependencies. I'm busting my head to make it work ...
WOULD THIS BE MUCH TO REQUEST ?????

Kirill Gavrilov's picture

It would be great if opencascade had a repository for DEBIAN,

Doesn't official Debian/Ubuntu repositories providing OCCT 7.3.0 do not work for you?
https://packages.debian.org/source/sid/opencascade
https://packages.ubuntu.com/source/disco/opencascade

WOULD THIS BE MUCH TO REQUEST ?????

There are dozens of Linux distributions in the world, supporting different architectures, having regular releases
(sometimes each half a year like Ubuntu) and several releases supported in parallel (like LTS releases)
Yes, providing repositories for various Linux distributions looks like a plenty of work.
https://en.wikipedia.org/wiki/List_of_Linux_distributions