libocct 7.3 in Debian Testing

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

libocct 7.3 in Debian Testing

Post by mlampert »

kkremitzki wrote:
woot - thanks a lot man, that is awesome!
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: libocct 7.3 in Debian Testing

Post by kkremitzki »

mlampert wrote: Mon Jul 02, 2018 4:39 am
kkremitzki wrote:
woot - thanks a lot man, that is awesome!
Thanks! We should also be thankful to Tobias Frost, the co-maintainer of the package, who helped a lot especially with handling the symbols files and fixing build failures to make sure the package was available on all of Debian's SupportedArchitectures.

This also means that it's a lock for the next version of Ubuntu!
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: libocct 7.3 in Debian Testing

Post by NormandC »

Congrats Kris! (and Tobias)

kkremitzki wrote: Mon Jul 02, 2018 11:45 am This also means that it's a lock for the next version of Ubuntu!
I'm thinking we should not wait for it, and upgrade the PPA...
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: libocct 7.3 in Debian Testing

Post by mlampert »

Need to modify cmake though to check `/usr/include/occt` - currently it doesn't find the headers when trying to build. Unfortunately cmake is a black art for me...
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: libocct 7.3 in Debian Testing

Post by sgrogan »

I'm thinking we should not wait for it, and upgrade the PPA...
I can try to set up the occt repo as a mirror now that the CLA is not required.
"fight the good fight"
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: libocct 7.3 in Debian Testing

Post by NormandC »

mlampert wrote: Tue Jul 03, 2018 11:20 pm Unfortunately cmake is a black art for me...
Why don't you use cmake-gui. It is so much simpler than using the CLI.
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: libocct 7.3 in Debian Testing

Post by mlampert »

NormandC wrote: Wed Jul 04, 2018 5:02 pm
mlampert wrote: Tue Jul 03, 2018 11:20 pm Unfortunately cmake is a black art for me...
Why don't you use cmake-gui. It is so much simpler than using the CLI.
I meant changing the cmake config file so it finds the OCC header files in /usr/include/occt

EDIT: I'm not being clear I'm afraid. I can build it for myself, but I can't submit a PR so others don't have to go through the configuration step - hope that makes sense.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: libocct 7.3 in Debian Testing

Post by NormandC »

Thanks for the clarification.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: libocct 7.3 in Debian Testing

Post by sgrogan »

mlampert wrote: Wed Jul 04, 2018 5:36 pm I meant changing the cmake config file so it finds the OCC header files in /usr/include/occt
The magic happens here: https://github.com/FreeCAD/FreeCAD/blob ... .cmake#L36
We need to additionally search for occt if OpenCASCADE is not found, not sure how to do this.
https://cmake.org/cmake/help/v3.8/comma ... ighlight=i

EDIT: https://github.com/FreeCAD/FreeCAD/blob ... ke#L70-L75
Maybe?

Code: Select all

      FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
        /usr/include/opencascade
     +  /usr/include/occt
        /usr/local/include/opencascade
        /opt/opencascade/include
        /opt/opencascade/inc
      )
      FIND_LIBRARY(OCC_LIBRARY TKernel
        /usr/lib
        /usr/local/lib
        /opt/opencascade/lib
      )
endif(WIN32)
"fight the good fight"
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: libocct 7.3 in Debian Testing

Post by NormandC »

sgrogan wrote: Wed Jul 04, 2018 2:14 pm I can try to set up the occt repo as a mirror now that the CLA is not required.
IMHO it would be much simpler to clone the Debian Science Team's opencascade repo instead. As wmayer wrote in another topic, some clean up of OCC sources is preferrable (sorry, don't remember the details). The Debian guys (Kurt and Tobias) already did that in the Debian repo.

Kurt patched it to enable exception handling, which will drastically reduce the number of crashes caused by OCC (which didn't happen as much prior to OCCT 7.0). We could clone the master branch and make minimal changes to it (in the debian folder).

The build recipe would no longer need to merge multiple branches.

In the future, when new OCCT versions are released, we could wait for the Debian guys to update their repo - and import it again in the same opencascade repo on Launchpad.

I think it would make the job easier in the long run.

The only problem is, AFAICT these new packages will still conflict with our libocct-7.2 packages. So we'll be in the same situation as when we switched from 7.1 to 7.2. We need to upgrade both stable and daily packages because many people have both installed on their systems (as I do). We need to force uninstall of libocct-7.2 packages.
Post Reply