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

how to install OpenCASCADE in Ubuntu

zhangjiayi's picture

hello!I am new to start OpenCASCADE in Linux and i have a lot of problems.I am looking for your advice about how to install OpenCASCADE in Ubuntu.I am thinking that if i need copy some files in OpenCASCADE to other address.If you can provide some advice with me,i will be happy a lot.

fester's picture

I use the following procedure...

First, get yourself the build tools from Ubuntu! Specifically, the following should get everything you need:

$ sudo apt-get libtool autoconf automake gfortran gdebi

(gfortran is GNU FORTRAN). If you got any of those tools from their home web sites, get rid of them before installing the Ubuntu versions, or much confusion may result! (The beauty of a distro is that they take care of making sure that this automake works with this autoconf works with...)

Now your procedure should look like

$ sudo -i

# Now move to the directory where the target file is
$ cd foo-x.y.z

$ tar xf foo-x.y.z.tar.gz
$ cd ros
$ ./build_configure
$ ./configure
$ make
$ cp /usr/local/ /usr/local/
$ rm /usr/local/

# At this point, it may be useful to delete the old version of
# Open Cascade if you haven't yet, and install the new.

# You can remove it from your system anytime using:

dpkg -r opencascade

$ checkinstall make install |& tee build.log

if this command has problems, you can check build.log
for errors

You may see the following...

" not a
*** Warning: debian policy compliant one.
Please specify an alternate one"


During the MAKE function on the last line, you will probably be told the value you've entered can't be accepted. This is a version number. Enter any number from 0-9, you'll get a chance to change it later.

You MUST have a version number!

This package will be built according to these values:

0 - Maintainer: [ root@desktop ]
1 - Summary: [ OpenCascade660 ]
2 - Name: [ opencascade ]
3 - Version: [ 660 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ ros ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ros ]
12 - Conflicts: [ ]
13 - Replaces: [ ]

When shown your version of the table above, pay attention to lines 1, 2, and 3. If those lines are in the form shown you should do alright. If you don't know what any of the entries are, leave them alone.

When you have the table above the way you want it, and have pressed ENTER, the "checkinstall make install" command tar will finish.

When the "checkinstall make install" line is done, you'll have a file named like, "OpenCASCADE654.tar.gz" in the ros directory. Right-Click this file from your desktop, and use GDEBI to install it.

What's happening here is that the build_config script is preparing the kit to the point where you could roll it back up into a new tar ball for distribution, with directions to the user to do the ./configure && make && make install with the kit. The whole autoconf/automake facility makes it possible to provide packages that will (ultimately) build and compile on systems as diverse as Windows, Linux and other Unix variants, and some proprietary operating systems.

Anup Kumar Gautam's picture

$ sudo apt-get libtool autoconf automake gfortran gdebi

after running above command on ubuntu system, i am getting E: Invalid operation libtool
what should i do

Rubén Arquiel's picture

I used synaptic to install these packages.

Nicholas Fette's picture

I think it was meant to be
$ sudo apt-get install libtool ...

I have a question, too. After build_configure, the "getting started" tutorial mentions a few dozen options such as
$ ./configue --with-tcl=/usr/lib

I wonder, is it necessary to fill these in for required options, or does it auto-detect location of libraries, or is there a good way to find them manually? For optional libraries, I am told I must specify them explicitly.

Finally, where do you tell it to install? As in:
$ ./configure $flags --prefix=${INSTALL_DIR}