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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / how to install OpenCASCADE in Ubuntu

how to install OpenCASCADE in Ubuntu

how to install OpenCASCADE in Ubuntu
zhangjiayi 2013/03/31 14:38
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 2013/05/20 02:36
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/draw.sh /usr/local/draw.sh.old
$ rm /usr/local/draw.sh


# 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...

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

Press ENTER


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 2013/05/21 13:30
$ 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 2013/08/04 03:18
I used synaptic to install these packages.
Nicholas Fette 2013/08/04 20:45
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}
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

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