Sal, I don’t have a ROS installation available to test this, but could you please try to modify the file src/chrono_swig/interface/ros/ChModuleROS.i by adding the following (at line 184):
%import(module = "pychrono.core") "chrono_swig/interface/core/ChClassFactory.i" %import(module = "pychrono.core") "chrono_swig/interface/core/ChSystem.i" %import(module = "pychrono.core") "chrono_swig/interface/core/ChBody.i" %import(module = "pychrono.core") "chrono_swig/interface/core/ChFrame.i" %import(module = "pychrono.core") "chrono_swig/interface/core/ChBodyFrame.i" %import(module = "pychrono.core") "chrono_swig/interface/core/ChContactMaterial.i" then reconfigure and rebuild? --Radu From: [email protected] <[email protected]> On Behalf Of Salman Husain Sent: Tuesday, October 21, 2025 5:54 AM To: ProjectChrono <[email protected]> Subject: [chrono] Re: Building Chrono failed Hi Chen, Did you ever resolve this issue? I have SWIG 4.2.0 and seeing similar errors when building on Ubuntu 24.04. Some screenshots are attached to compare notes. The project builds properly when the python module isn't checked. On Wednesday, April 23, 2025 at 3:50:22 AM UTC-6 ychen_441 wrote: Lovely colleagues, I was recently setting up gym_chrono on my VMware-based Ubuntu 20.04. According to the documentation, I have downloaded realted packages and configured required modules (on https://github.com/projectchrono/gym-chrono<https://urldefense.com/v3/__https:/github.com/projectchrono/gym-chrono__;!!Mak6IKo!M7F4JbsUdvPoWqgy-MeBCUKbJaKAkxgJ49XS7m6M3J7NfLAzfWSvX0GFjk3petf7_3ICDQVo3j34uzVthSux8iBxVw$>). However, errors occured during Chrono building process, and I thought that might be something due to SWIG. However, I checked my SWIG version, it is installed and updated by conda, and therefore I have no idea what is going on now. Hope somebody will have some advice on this situation. Appreciates. I have attached my configuration (logs.txt) and errors (.txt). Again, appreciates for your help. Chen -- 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 visit https://groups.google.com/d/msgid/projectchrono/14247f44-9458-4c47-9596-e9943f6bd5afn%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/14247f44-9458-4c47-9596-e9943f6bd5afn*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!M7F4JbsUdvPoWqgy-MeBCUKbJaKAkxgJ49XS7m6M3J7NfLAzfWSvX0GFjk3petf7_3ICDQVo3j34uzVthSsBdgM_Cg$>. -- 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 visit https://groups.google.com/d/msgid/projectchrono/CH3PPF46CDC2185A0A2B44FDB0253EA7DC6A7F2A%40CH3PPF46CDC2185.namprd06.prod.outlook.com.
