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

Related pages

No /ros/ Linux

John Walton's picture
Forums: 

I have just downloaded the tarball and installed Opencascade on Linux.

There was no /ros/Linux in the package.
I did not get one after installation.
There was /ros/win32 and /ros/win64 always in the package.

Would someone who has done a working installation on Linux please tell me

Should it have been in the download?
Should it have been built during the installation?
Anything I might have done wrong?

John

PG's picture

OCC has stopped all LINUX distributions, you have to compile,build for
your linux OS.

John Walton's picture

This was a source code installation following the ./configure make make install procedure from the /ros directory after unpacking the tarball from the OCC site.

It was not from some kind of binary package that came with a distribution.

A ros/Linux directory is required even to begin with some of the content that came in the installation tarball.

John

Chad File's picture

John, I'm having (I believe) the same issue as you're stating. Within the OpenCASCADE/ros directory there is no linux/lnx86/etc. directory. I was still able execute the following;

$: ./configure
$: make
$: sudo make install

And after a LONG wait, with no error messages, the install was finished... but I still cannot find my linux executable. I'm unable to run OpenCASCADE, either from my menu or from CLI. Any help would be greatly appreciated.

Thanks,
~~Chad~~

bill altman's picture

Same problem here.
After compling got the same results.
I think that some sort of installaton script for Linux is needed.
Things seemed to scattered and had to find.
This is to advanced for me.
I am a designer/drafter with 15+ years experience not a programmer! :)

Bill

Mike Riley's picture

Hi John,

I've built OpenCASCADE on Linux thanks to the help of another forum member. I can't remember who/where I got this from on the forum (but a thank-you to them :-) Here's the script that will help you out...

export CASROOT="/usr/local/pkgs/OpenCASCADE-6.3.0/ros"
occFlags="--with-tcl=/usr/lib/tcl8.4"
occFlags="$occFlags --with-tk=/usr/lib/tk8.4"
occFlags="$occFlags --with-gl-include=/usr/include"
occFlags="$occFlags --with-gl-library=/usr/lib"
occFlags="$occFlags --with-xmu-include=/usr/include"
occFlags="$occFlags --with-xmu-library=/usr/lib"
occFlags="$occFlags --enable-wok=no"
occFlags="$occFlags --enable-draw=yes"
occFlags="$occFlags --enable-wrappers=no"
occFlags="$occFlags --enable-static=no"
occFlags="$occFlags --enable-shared=yes"
occFlags="$occFlags --disable-debug --enable-production"
./configure $occFlags --prefix=$CASROOT

Copy and paste the above into a shell script. I named it "my_configure.sh", and then save it in your OpenCASCADE6.3.0/ros directory. Make it executable with "chmod 754 my_configure.sh" (or similar) and then run it.

The only problem I had was that the tixConfig.sh and tkConfig.sh weren't found immediately. I had to copy them into the parent (or child) directory (i forget which way round it was). P.S. They were in /usr/lib for me.

I use Eclipse for my Linux development and I find it handy to set up the LD_RUN_PATH before using eclipse. This way, when I build my own OpenCASCADE code, it always know where to look for its libraries...

...As in "export LD_RUN_PATH=$LD_RUN_PATH:/usr/local/pkgs/OpenCASCADE-6.3.0/lib"

Sorry if you know this already, but I hope others find this, and the above script, useful.

Regards,

Mike.

Mike Riley's picture

P.P.S

Of course follow up the "./my_configure.sh" with a "make" then a "make install"...It takes hours :-P

Regarding the executables...I'm not sure if it makes any/how many it makes...Perhaps someone else can enlighten me? I haven't had cause to use them.

This process actually builds all the library files of OpenCASCADE. You then go on to develop your own applications in an IDE, whilst linking to the OC libraries. That's what I've been using it for anyway :-)

Cheers, Mike.

John Walton's picture

Many thanks for all replies.

I will tackle the installation again with Mikes script.
I used the script which came in the package.

John

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.