Cannot Build cascade project
Did a clean install, made a new project, copied and pasted in demo code directly, and cannot build and get error message: " Error C1083 Cannot open include file: 'TopoDS_Shape.hxx': No such file or directory myexe c:\users\mcarnein\documents\a_chrono_source\chrono\src\chrono_cascade\chcascadeshapeasset.h 20"
The same demo compiled by building chrono works flawlessly.
In develop branch, Version of Cascade: 6.9.0, Version of IRRlicht: 1.8.2, Version of cmake: 3.11.4, Version of Visual Studio: 15.7.6. Willing to provide any other useful info.
How are you configuring this new project?
We recommend using the CMake-based procedure of configuring and building your own project depending on Chrono that is described here. This relies on using a project configuration script that was automatically generated when you configured Chrono. Of course, you would have to modify the sample CMakeLists.txt provided in template_project/ to suit your own project (e.g., requesting that Chrono had been configured with the Chrono::Cascade module enabled).
You can also look at the public GitHub repository chrono-projects which contains several projects configured as above. I just pushed there an example on how to configure demo_CAS_robot as an external project. Once you clone chrono-projects, look at configuration_tests\cascade\CMakeLists.txt. A couple of things:
-
On Windows, make sure to define WNT (see line 74 of CMakeLists.txt). This is required for projects using Chrono::Cascade.
-
The source of the demo itself is unchanged from what is in the Chrono repository, except for the very first call in main() to
SetChronoDataPath(see CMakeLists.txt on how the macroCHRONO_DATA_DIRis specified in this particular case; you can use a different mechanism).
The above works fine on a configuration similar to yours.