OpenCascade missing installation path

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
freman
Veteran
Posts: 2214
Joined: Tue Nov 27, 2018 10:30 pm

OpenCascade missing installation path

Post by freman »

Hi, I've just installed a clean Fedora 33 system and I'm trying to reconstruction the master build I had running under Fed31.

I'm stuck on OpenCascade, which seems to have a null installation path:

Code: Select all

 cmake -S/svn/FreeCAD -DBUILD_FEM=OFF -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3  -DCCACHE_PROGRAM=  -DBUILD_OPENSCAD=OFF -DBUILD_SMESH=ON

....

cmake -S/svn/FreeCAD -DBUILD_FEM=OFF -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3  -DCCACHE_PROGRAM=  -DBUILD_OPENSCAD=OFF -DBUILD_SMESH=ON
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_policy):
  The OLD behavior for policy CMP0072 will be removed from a future version
  of CMake.

.....

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)
It's installed in /usr/local:

Code: Select all

bash-5.0#ls /usr/local/include
opencascade
Output seems to indicate there is a bug in the cmake process:

Code: Select all

  cMake/FindOpenCasCade.cmake:120 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
  CMakeLists.txt:51 (SetupOpenCasCade)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- -- Found OCE/OpenCASCADE version: ..
-- -- OCE/OpenCASCADE include directory: //include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: //lib64

Even supplying the prefix does not seem to help ( though not sure if this is the right name ). Where can I find what it needs?

Code: Select all

OpenCASCADE_INSTALL_PREFIX="/usr"; cmake  -Wno-dev -S/svn/FreeCAD -DBUILD_FEM=OFF -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3  -DCCACHE_PROGRAM=  -DBUILD_OPENSCAD=OFF -DBUILD_SMESH=ON 
BTW any point in updating to newest release, I still have 7.3.0 , I see a few bug fixes.
Does anyone have a direct URL, I can't be bothered with opening an account and agreeing to user agreements etc.

Found it. I'll leave this up for information to others.

https://old.opencascade.com/sites/defau ... -7.5.0.tgz

Any suggestions?

TIA.
User avatar
freman
Veteran
Posts: 2214
Joined: Tue Nov 27, 2018 10:30 pm

Re: OpenCascade missing installation path

Post by freman »

I found the problem was I had cut and pasted package names from somewhere and already installed the Fedora Opencascade software.

This seems to totally confuse the cmake script leading the BS config data with a null prefix.

It seems to find something but screws up the path variable on the way through leaving code unbuildable.

This needs fixing.
Post Reply