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.
Discussion
15 archived replies
Posts are displayed in their archived order.
01Commenter-1
Hello Author,
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, Commenter-1
You are not the only one with that wish.
02Author
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.
PS do you know if OpenCascade is 64 bit safe? I would
like to build it for AMD64
03Commenter-1
Hi Author,
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, Commenter-1
04Author
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
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).
07Commenter-3
did you ever figure this out? i am having a similar problem on Ubuntu.
08Commenter-4
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.
hi Author,
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
10Commenter-5
hi Author,
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
11Commenter-6
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.
12Commenter-5
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)
13Commenter-7
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
14Commenter-8
Hi Author,
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