Compiling OCCT 6.9.1? or 7.0.0?

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
shoogen
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby shoogen » Sun Mar 13, 2016 6:57 pm

One huge problem in porting FreeCAD to a new version of OCCT is, IMHO, maintaining SMESH.
Moths ago I decided not to waste any of my time with our SMESH and to wait for OCCT.com to encounter the problems in SALOME first.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby NormandC » Sun Mar 13, 2016 7:07 pm

I assume SMESH is used by the Mesh Design module, and used to export to mesh formats?
wmayer
Site Admin
Posts: 14645
Joined: Thu Feb 19, 2009 10:32 am

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby wmayer » Mon Mar 14, 2016 7:50 am

NormandC wrote:I assume SMESH is used by the Mesh Design module, and used to export to mesh formats?
No, Mesh Design has its own mesh framework and SMESH is mainly used by Fem and a little bit by MeshPart.
User avatar
yorik
Site Admin
Posts: 11458
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby yorik » Mon Mar 14, 2016 4:55 pm

tanderson69 wrote:I have no idea if oce is still so much better at installation.
OCCT uses cmake already, which I think was the big "plus" of OCE...
User avatar
tanderson69
Posts: 1495
Joined: Thu Feb 18, 2010 1:07 am

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby tanderson69 » Mon Mar 14, 2016 5:34 pm

yorik wrote:OCCT uses cmake already, which I think was the big "plus" of OCE...
If I remember correctly, you are on debian? Have you compiled and installed occt recently? If so, how was it?
User avatar
yorik
Site Admin
Posts: 11458
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby yorik » Tue Mar 15, 2016 12:51 am

tanderson69 wrote:If I remember correctly, you are on debian? Have you compiled and installed occt recently? If so, how was it?
Yes, I'm on debian. I compiled the 7.0.0 pre-release these days and it's just a matter of making a build dir and running cmake. Don't remember exactly but I don't think I had to change any variable.

However FreeCAD chokes on it (the SMESH module IIRC), and doesn't compile anymore. I didn't go look any further yet...
User avatar
tanderson69
Posts: 1495
Joined: Thu Feb 18, 2010 1:07 am

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby tanderson69 » Wed Mar 16, 2016 4:09 pm

yorik wrote:I compiled the 7.0.0 pre-release these days and it's just a matter of making a build dir and running cmake. Don't remember exactly but I don't think I had to change any variable.
What type of install after the build? "sudo make install" or "sudo dpkg -i some.deb"
User avatar
yorik
Site Admin
Posts: 11458
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby yorik » Thu Mar 17, 2016 12:48 am

tanderson69 wrote:What type of install after the build? "sudo make install" or "sudo dpkg -i some.deb"
I usually use checkinstall... You run

Code: Select all

sudo checkinstall
in the build dir, and it does "make install" under the hood, but also creates an entry in dpkg database, so you can remove it later with dpkg...
drei
Posts: 479
Joined: Sun May 11, 2014 7:47 pm
Location: Mexico
Contact:

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby drei » Thu Mar 17, 2016 6:09 am

Cannot speak about OCCT 7.0, but OCCT 6.9.1 can be compiled with a few changes in flags for cmake-gui and the same goes for FreeCAD. For some weird reason the TK* files are stored in the build directory of OCCT and the rest of the files in the install directory (e.g. /opt/opencascade).

No problems so far with OpenSuse Leap and OCCT 6.9.1.
Need help? Feel free to ask, but please read the guidelines first
jmaustpc
Posts: 9558
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Compiling OCCT 6.9.1? or 7.0.0?

Postby jmaustpc » Thu Mar 17, 2016 12:21 pm

drei wrote:Cannot speak about OCCT 7.0, but OCCT 6.9.1 can be compiled with a few changes in flags for cmake-gui and the same goes for FreeCAD. For some weird reason the TK* files are stored in the build directory of OCCT and the rest of the files in the install directory (e.g. /opt/opencascade).

No problems so far with OpenSuse Leap and OCCT 6.9.1.
7.0.0 is a more substantial update than 6.9.1, major version updates do not guarantee API compatibility.