Cannot find OpenCASCADE directories.
OpenCASCADE include directory:
OpenCASCADE library directory:
OpenCASCADE libraries:
In cmake I have to set up these values:
CH_CASCADE_DIR
CH_CASCADE_INCLUDES
hi
I am successfully using the official OCCT version 6.9.0, here it works.
My CMake settings (example for my system, on Windows 64 bit):--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To post to this group, send email to projec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
(I do not have CH_CASCADE_INCLUDES, are you using the latest Chrono from develop branch?)
The difference is that Alessandro is configuring and building the Chrono::Cascade module on Windows, while 19yc93 is working in Ubuntu.
I do not have access to an Ubuntu 16.04 LTS box, but I tried to configure and build the Cascade module on a Linux cluster node (CentOS 7.4.1708). For this, I built OpenCascade OCCT 6.9.1 from source, using their CMake-based build system. I configured it to created shared libraries. Note that Chrono::Cascade is not compatible with the latest release (OCCT 7.3.0) due to some changes in the OC headers.
The Chrono CMakeLists.txt in src/chrono_cascade needs to be
improved (especially for building in Linux). I'll look into this
when I find some time. For now, I had to make a small
modification, by defining the CMake variable CH_CASCADE_LIBDIR
regardless of platform. In other words, move line 48:
SET(CH_CASCADE_LIBDIR "" CACHE PATH "Path to the OpenCASCADE
library directory.")
outside the 'if' construct (say, at line 46).
With this, during configuration, all I had to do was set
CH_CASCADE_INCLUDES to point to the directory in the OC
installation that contains all header files and set
CH_CASCADE_LIBDIR to the directory that contains all OC shared
libraries. In my case:
-- OpenCASCADE include directory:
/srv/home/serban/Packages/opencascade/inc
-- OpenCASCADE library directory:
/srv/home/serban/Packages/opencascade/lin64/gcc/lib
With this, I was able to build Chrono::Cascade.
--Radu
Justin,
I used the same library versions as you, except that tcl and tk were at 8.5.13.
I cannot reproduce the segmentation fault; could you please run this through a debugger and find out where the crash occurs?
Finally, the "not a namespace-name" error is because you didn't include some necessary header.
--Radu
By the way: there is also the OCE 'community' Open Cascade distribution, that comes with precompiled binaries for most platforms. I just tested the 0.18.3 version (derived from 6.9). It works fine here in Windows, I do not know for Linux. You can install OCE easily by using Anaconda or Miniconda.
Alessandro Tasora
To unsubscribe from this group and stop receiving emails from it, send an email to projectchrono+unsubscribe@googlegroups.com.
To post to this group, send email to projec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchrono+unsubscribe@googlegroups.com.