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

Search the Forums
See All Topics
 

Installing Opencascade on Debian Linux

Installing Opencascade on Debian Linux
Ray Betterini 2007/04/07 21:46
I downloaded the latest (6.2) release of OpenCascade and tried to
install it on a Debian Etch system. The install shell prints
Preparing Java(tm) Virtual Machine then a series of dots and then
quits. No error message, just returns to the shell prompt.

Any ideas ?

I really wish I could just get a tar of the source.
Torsten Sadowski 2007/04/07 22:52
Hello Ray,

have a look at doc/install.htm. The java VM in the install package is linked against libs which Etch does not have. Use a java on your machine thats known to work and figure out the command line.

Cheers, Torsten

You are not the only one with that wish.
Ray Betterini 2007/04/08 13:03
Hi Torsten,

Thanks for your quick reply.

After some research, the following works for me:

Install Debian package sun-java5-bin
cd /home/OpenCascade/Linux or wherever you unpacked the tar to.

Issue the following:

/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/bin/java -jar setup.jar

OpenCascade should now install

Thanks for your help.

PS do you know if OpenCascade is 64 bit safe? I would
like to build it for AMD64

Torsten Sadowski 2007/04/08 21:56
Hi Ray,

there was something in the 6.2 release notes. I did not yet try it:

A new preprocessor macro _OCC64 has been added that allows to know, at compile time, whether
the code is compiled for 64- or 32-bit platform. This knowledge is necessary for platform-specific
code such as selection of value of UndefinedHandleAddress, memory block allocation granularity,
etc. The –D_OCC64 key must be added to CFLAGS and CXXFLAGS when compiling on a 64-bit
platform.

Cheers, Torsten
Ray Betterini 2007/04/09 02:05
Hi Torsten,
Thansks for the info. I've now taken the time to closely read the release notes.

I think I have a problem somewhere in my build chain. The make
blows up on the very first source file:

../../../drv/Dico/Dico_DictionaryOfInteger_0.cxx: In function 'Handle_Standard_Type& Dico_DictionaryOfInteger_Type_()':
../../../drv/Dico/Dico_DictionaryOfInteger_0.cxx:51: error: 'Standard_Transient_Type_' was not declared in this scope

Any ideas?
Jan Brüninghaus 2007/04/09 16:00
Hava a look on this thread:
http://www.opencascade.org/org/forum/thread_10015/
Ray Betterini 2007/04/10 18:56
Hi Jan,

Thanks for the link. I can now compile OCC with g++-4.0 and g++-4.1. I am having a strange problem with the make install
in /usr/local/lib though. The install procedure seems to be
dropping the .so suffix: libTKernal.so.0.0.0 gets installed as libTKernel.0.0.0 - I don't know if this is a problem with
the Makefiles or with libtool (my favorite program).
Seth Jackson 2008/01/16 23:36
did you ever figure this out? i am having a similar problem on Ubuntu.
Adam Powell 2008/01/19 23:53
Please give my .deb package a try, see the separate thread I started yesterday. It includes a description of how I created the .orig.tar.gz, Jason Kraftcheck's minimal patchset to get it to build, and very basic Debian packaging. It builds, it installs, it should work.

Jason has since contributed some nice scripts which should help us to divide up the package a lot more sanely. See the threads at:
http://lists.debian.org/debian-science/2008/01/threads.html

-Adam
J. K. 2007/04/14 09:51
hi ray,
i have debian lenny and my installation ends with message 'JVM not found'.

i tried debian package sun-java5-bin and also java 1.4,
always the same message.

do you have idea how to successfully install opencascade on lenny?
i'm not using java, so i don't know where to look for help - google returns nothing usable.

thanks

jiri kastner
J. K. 2007/04/14 09:53
hi ray,
i have debian lenny and my installation ends with message 'JVM not found'.

i tried debian package sun-java5-bin and also java 1.4,
always the same message.

do you have idea how to successfully install opencascade on lenny?
i'm not using java, so i don't know where to look for help - google returns nothing usable.

thanks

jiri kastner
Kostya Mashukov 2007/04/16 15:18
Check first if you have java runtime environment available by running 'java'.
If such command is not found - try to search it elsewhere on disk - it simply could be not in the path. If you've found it - put it in the path. In other case you need to install jvm first to run OCAS installer.
J. K. 2007/04/16 18:07
i have java on $PATH as you can see:

jkjr@debass:~/OCC/OCC62i/$ java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

EH 2007/05/02 22:49
Just FYI, this also works on Ubuntu Feisty. You also need to install libstdc++2.10-glibc2.2 then create a symbolic link from /usr/lib/libstdc++-libc6.2-2.so.3 to /usr/lib/libstdc++-libc6.1-1.so.2.

EH
MAP Environmental 2008/07/17 05:28
Hi Ray,

Ubuntu 8.04

Installed sun-java5-bin using the Add/Remove App

Issued following command:
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/java -jar setup.jar

Got the following response:
Unable to access jarfile setup.jar

List shows:
ControlPanel keytool orbd rmiregistry
java kinit pack200 servertool
java_vm klist policytool tnameserv
javaws ktab rmid unpack200

no setup file?

Newbie and learning...

MAP
Adam Powell 2008/08/06 02:11
http://www.opennovation.org/ubuntu/
 
 
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