Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Build cascade project #131

Open
mcar9 opened this issue Aug 16, 2018 · 1 comment
Open

Cannot Build cascade project #131

mcar9 opened this issue Aug 16, 2018 · 1 comment

Comments

@mcar9
Copy link

mcar9 commented Aug 16, 2018

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.

@rserban
Copy link
Member

rserban commented Aug 18, 2018

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 macro CHRONO_DATA_DIR is specified in this particular case; you can use a different mechanism).

The above works fine on a configuration similar to yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants