When I install the disto opencascade-7.5.0 it installs headers in /usr/include/opencascade as expected. However when I run cmake seems to have a bug which loses the "usr" but and ends up looking in "//include/opencascade" . Note the double slash. This fails and I can't finish cmake.
Code: Select all
-- PyCXX found:
-- Headers: /svn/FreeCAD/src
-- Sources: /svn/FreeCAD/src/CXX
-- Version: 6.2.8
CMake Error at cMake/FindOpenCasCade.cmake:101 (file):
file STRINGS file "//include/opencascade/Standard_Version.hxx" cannot be
read.
Call Stack (most recent call first):
cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
CMakeLists.txt:51 (SetupOpenCasCade)
Code: Select all
-- -- Found OCE/OpenCASCADE version: ..
-- -- OCE/OpenCASCADE include directory: //include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: //lib64
If I build opencascade from source it works but I need kicad which seems to pull in the distro's OCC as well so I end up with both in parallel installations , one in /usr/lib64 and one in /usr/local/lib
Even though they are a nominally the same version that looks like asking for trouble.
I hit this last year with Fedora 34 and ended up building OCC locally. I don't know whether kicad was already using OCC and I did not notice. That seems likely.
Is no one else having this problem with FC's cmake failing to correct sniff the OCC headers ? Is there a work around like providing the location in an env var ?
TIA.