CMake Misconfiguration

87 views
Skip to first unread message

Davide

unread,
Nov 29, 2023, 11:29:19 AM11/29/23
to ProjectChrono
Hello,
I tried to build the demo "demo_VEH_HMMWV", but the file .exe doesn't run at all. It gaves me the error "Chrono was not built with thrust support", so I downloaded it and then included the thrust library during Chrono configuration, but it seems that nothing has changed. Is there something missing in  the CMake file? I attached it below.
Thank you all in advance for your help!
CMakeLists.txt

Radu Serban

unread,
Nov 29, 2023, 1:09:17 PM11/29/23
to ProjectChrono

Davide,

 

Could you please:

  1. Indicate what *version* of Chrono you are using? There have been recent changes to the project configuration script.  Tell us the commit you are at.  Ideally, pull the very latest code in the main branch, so that we’re all looking at the same code.
  2. I infer you are on Windows, but I don’t know for sure. As a general rule, always indicate the *OS and compiler* you are using. 
  3. Since you are trying to link to Chrono from an external project, it is important to know *how* Chrono was configured and built.  Please indicate which modules were enabled (and are therefore available for find_package(Chrono…))
  4. I don’t follow some of the changes you made to the CMakeLists.txt provided as a sample with the Chrono distribution.  There is *no* need for any of the extra stuff you added (which defeats the purpose of a project configuration script in the first place).  In general, all you need to do in addition to what’s already in the sample CMakeLists is to specify any additional Chrono components you want/need. 

 

Best,
--Radu

--
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/4db3e188-b11a-4c2f-abbf-21d5af4e9d5cn%40googlegroups.com.

Davide

unread,
Dec 11, 2023, 10:27:04 AM12/11/23
to ProjectChrono
Hi Radu,
I apologize for the delay. I get the last version of chrono as you mentioned and I am using Microsoft 10 and Visual studio 2022 as compiler. I modified the txt file following your suggestions and now it is fine. However, when I run the file .exe it gives me the following error: 

"TIR File not found [../data/vehicle/hmmwv/tire/HMMWV_Pac02Tire.tir]"

That file exists in that folder, so I'm not understanding the reason of this error. Could you help me?
Thank you in advance!

Davide

Reply all
Reply to author
Forward
0 new messages