I am on Ubuntu 23.04 and I have to install the package liboce-ocaf-dev but Kicad conflicts with it as it is shown above.
➜ sudo apt search liboce-ocaf-dev
[sudo] password for lheck:
Sorting... Done
Full Text Search... Done
liboce-ocaf-dev/lunar 0.18.3-2 amd64
OpenCASCADE Community Edition CAE platform library development files
➜ sudo apt install liboce-ocaf-dev
(some text was removed from here...)
The following packages have unmet dependencies:
kicad : Conflicts: liboce-foundation11 but 0.18.3-2 is to be installed
Conflicts: liboce-modeling11 but 0.18.3-2 is to be installed
Conflicts: liboce-ocaf11 but 0.18.3-2 is to be installed
Conflicts: liboce-visualization11 but 0.18.3-2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Could someone help me understand what is going on?
I have a tool that I want to build and use, that uses this liboce-ocaf-dev but Kicad does not allow me to install the package using the package manager.
Kicad depends on libocct but that conflicts with liboce because they are different versions of same lib. Historically community fork (liboce) was introduced because OpenCascade was not responsive to open source patches there were licensing issues. At some point liboce was ahead in features too but no longer. libocct has caught up and fixed other issues so it is recommended to use it now.
I had to change this -I/usr/include/oce
to this -I/usr/include/opencascade/
But this thing was hard to find since it was not using any reference to the occt string as I thought but to opencascad. But I finally found the headers I was looking for.
Now I could build some of the sources, got another issue, but you could unlock me the missing libs step. Thanks, that was Qu1ck!