Anshul, First of all, please do *not* post error messages and code snippets as images! It is very difficult to look through them and, at the end of the day, all of these are plain text which you can simply copy and paste in the body of your messages.
If I were to guess, you didn’t properly request the Chrono::Vehicle module in the CMakeLists.txt of your project in the find_package call (and that’s the one file you didn’t share). In any case, look at the chrono-projects<https://github.com/projectchrono/chrono-projects/blob/main/configuration_tests/vehicle/CMakeLists.txt> repository on GitHub. This is a set of different tests and projects built on top of Chrono, all set up the same way as the sample template project distributed with Chrono. That repository includes programs demonstrating the use of different combinations of Chrono modules, including Chrono::Vehicle, in such an external project. Look for example at this<https://github.com/projectchrono/chrono-projects/blob/main/configuration_tests/vehicle/CMakeLists.txt> CMakeLists script which is for a project based on one of the pre-built vehicle models in Chrono (not the HMMWV, but that’s a trivial change). --Radu From: [email protected] <[email protected]> On Behalf Of Anshul pagariya Sent: Tuesday, 21 February 2023 11:19 To: ProjectChrono <[email protected]> Subject: [chrono] Creating template project with HMMWV vehicle Hello All, I am trying to bring HMMWV model in template project but my build fails. It gives me error (attached in screenshot Build-failure.png). In particular I use HMMWV_Full my_hmmwv; line (code screenshot - Code_template_project.png) to call the HMMWV file. I am using Ubuntu 18.04. I have so far installed chrono core, vehicle module, cuda (thrust). My cache variable for build_chrono is attached in file Cache_variables.png. In addition some of my demos for vehicle module are also not working in particular I am interested in HMMWV with deformable soil (demo_VEH_HMMWV_DefSoil) I am attaching the error I get when I run the executable file for it (demo_HMMWV_DefSoil.png). Can any one suggest what I need to do to run the template project with HMMWV and run demo_VEH_HMMWV_DefSoil, I would really appreciate your help. If you need any other information about my files please let me know. Thanks in advance and good day! Anshul -- 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/e8390813-efe5-46cd-b939-4c7d79408efan%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/e8390813-efe5-46cd-b939-4c7d79408efan%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/PH0PR06MB82370E2D03EE5B01374C37CFA7A59%40PH0PR06MB8237.namprd06.prod.outlook.com.
