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

Installing Opencascade on Debian Linux

Ray Betterini's picture

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

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

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

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

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

Hava a look on this thread:
http://www.opencascade.org/org/forum/thread_10015/

Ray Betterini's picture

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

did you ever figure this out? i am having a similar problem on Ubuntu.

Adam Powell's picture

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

Jiri Kastner's picture

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

Jiri Kastner's picture

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

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.

Jiri Kastner's picture

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

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

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

http://www.opennovation.org/ubuntu/