Problem with compilation WITH_OCC

Discussion about building and installing Elmer
Post Reply
dekoder87
Posts: 31
Joined: 22 Oct 2014, 19:42
Antispam: Yes
Location: United Kingdom

Problem with compilation WITH_OCC

Post by dekoder87 »

Hello,

I have managed to compile Elmer with MPI, Hypre, Mumps and GUI including MATC, Paraview, QWT, PythonQT, VTK on OpenSUSE 13.2
But when I am trying to compile it with OCC i am getting this error in Cmake-gui:

Code: Select all

CMake Error at ElmerGUI/CMakeLists.txt:46 (FIND_PACKAGE):
  By not providing "FindOCE.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OCE", but
  CMake did not find one.

  Could not find a package configuration file provided by "OCE" with any of
  the following names:

    OCEConfig.cmake
    oce-config.cmake 

  Add the installation prefix of "OCE" to CMAKE_PREFIX_PATH or set "OCE_DIR"
  to a directory containing one of the above files.  If "OCE" provides a
  separate development package or SDK, be sure it has been installed.
Is it caused by missing file FindOCE.cmake in /elmerfem_devel/cmake/Modules ?
I have installed OpenCASCADE 6.5 devel using YaST2 . I was trying configure elmer with manually compiled opencascade 6.8.
I wonder if this error is caused by using to fresh version of opencascade?
I searched my computer for files mentioned in error message but I don't have them on my computer.
I tried to set OCE_DIR or CMAKE_PREFIX_PATH to /opt/OpenCASCADE or to /usr (where I installed OCC compiled by me) but it did't help.
Anyone has an idea how to fix this error?

Regards,

Jacek
KaiMartin
Posts: 42
Joined: 02 Jun 2013, 00:07
Antispam: Yes
Location: Hannover, Germany
Contact:

Re: Problem with compilation WITH_OCC

Post by KaiMartin »

dekoder87 wrote:

Code: Select all

Could not find a package configuration file provided by "OCE" with any of
  the following names:
    OCEConfig.cmake
    oce-config.cmake 
(...)
Anyone has an idea how to fix this error?
I too had this error. It went away after I installed the package liboce-foundation-dev .
My desktop runs Debian/Jessie. Since you mentioned yast you are probably on Suse. So your package names might differ.

Debian uses apt. There is a utility called "apt-file" that can search for file names within all packages in the distro. So I searched for "OCEConfig.cmake" and got the reply that this file is delivered by liboce-foundation-dev . Suse probably provides a similar search.

---<)kaimartin(>---
dekoder87
Posts: 31
Joined: 22 Oct 2014, 19:42
Antispam: Yes
Location: United Kingdom

Re: Problem with compilation WITH_OCC

Post by dekoder87 »

Hi Kaimartin,

Thank you for this information.
It was very helpful. In OpenSUSE required package has name OCE-devel.
I installed it using YaST2 by searching for OCE.

Regards,

Jacek
Post Reply