Issues building OpenCASCADE

116 views
Skip to first unread message

Alex Teti

unread,
Aug 12, 2022, 3:03:14 AM8/12/22
to ProjectChrono
I've downloaded OpenCASCADE for Windows, and included it in the PATH. After that, I followed the install guide for CMAKE, turning it on and then supplying the directory of the  OpenCASCADEConfig.cmake file.

Everything seemed to go well until I went to build and got some errors. I attached a screenshot of the errors from Visual Studio. 

It seems that BRepAdaptor_HSurface.hxx and ChronoEngine_cascade.lib are missing, for some reason. 

I used PowerShell to quickly do a recursive search through the chrono SDK directory and confirmed that BRepAdaptor_HSurface.hxx is not present. 
OpenCASCADEBuildError.png

Alex Teti

unread,
Aug 12, 2022, 3:14:57 AM8/12/22
to ProjectChrono
AHA! I realized that BRepAdaptor_HSurface.hxx  is actually located within OpenCASCADE's SDK, not inside ProjectChrono.

Is this a compatibility problem? I am using OpenCASCADE 7.6.0; the documentation for installation and use with Chrono said that versions less than 7.4.0 are incompatible, but is it the case that newer versions of OpenCASCADE are incompatible too?

Radu Serban

unread,
Aug 12, 2022, 5:35:50 AM8/12/22
to ProjectChrono
Alex, that is indeed the case. OpenCascade changed its API in 7.5 and the Chrono interface still uses their older API.  We'll make that clear on the Chrono documentation. You have to use OCC 7.4.0.

Radu


From: projec...@googlegroups.com <projec...@googlegroups.com> on behalf of Alex Teti <alexte...@gmail.com>
Sent: Friday, August 12, 2022, 2:15 AM
To: ProjectChrono <projec...@googlegroups.com>
Subject: [chrono] Re: Issues building OpenCASCADE
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/e4f4532c-cd32-47e0-bea8-e76738770796n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages