Building Chrono failed

140 views
Skip to first unread message

ychen_441

unread,
Apr 23, 2025, 5:50:22 AMApr 23
to ProjectChrono
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).
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


logs.txt
build errors.txt

Salman Husain

unread,
Oct 20, 2025, 11:54:17 PMOct 20
to ProjectChrono
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.

Screenshot from 2025-10-20 21-17-14.png
Screenshot from 2025-10-20 21-28-48.png

Radu Serban

unread,
Oct 21, 2025, 2:39:39 AMOct 21
to ProjectChrono

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

--
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 visit https://groups.google.com/d/msgid/projectchrono/14247f44-9458-4c47-9596-e9943f6bd5afn%40googlegroups.com.

Salman Husain

unread,
Oct 23, 2025, 12:36:09 PMOct 23
to ProjectChrono
Hi Radu,
I am sorry for the late response.
This is a good news/bad news scenario.

First the bad news:
Thanks for your fix. I tried that, but then started seeing errors related to other pychrono examples. I pulled the project again and apart from the ChModuleRos.i file there were no other diffs.
So I couldn't fix it that way. I tried it on a different Linux machine, and couldn't replicate the error.

Good news:
I cleaned up everything. Fresh installed everything, and viola everything works!

I am so sorry I couldn't get to the root of the cause of the issue..  but rinse/repeat seemed to have worked yet again.

Cheers,
sal
Reply all
Reply to author
Forward
0 new messages