Erros when making the project

68 views
Skip to first unread message

Salman Husain

unread,
Mar 25, 2025, 2:57:05 PM3/25/25
to ProjectChrono
Hi,

I think I am facing errors building the project when SWIG is enabled. I wasn't having this when I built the project with Python not enabled. Note, the prject was building just fine till ~last week with Python adnSwig etc.. Here is the error message,

[ 99%] Built target demo_ROBOT_Industrial
/home/ubuntu/project-chrono/chrono-build/chrono_python/ChModuleCore_pythonPYTHON_wrap.cxx: In function ?PyObject* _wrap_ChVisualSystem_GetSimulationRTF(PyObject*, PyObject*)?:
/home/ubuntu/project-chrono/chrono-build/chrono_python/ChModuleCore_pythonPYTHON_wrap.cxx:196300:80: error: no matching function for call to ?chrono::ChVisualSystem::GetSimulationRTF() const?
196300 |       result = (double)((chrono::ChVisualSystem const *)arg1)->GetSimulationRTF();
       |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /home/ubuntu/project-chrono/chrono-build/chrono_python/ChModuleCore_pythonPYTHON_wrap.cxx:4759:
/home/ubuntu/project-chrono/chrono-source/chrono/src/chrono/assets/ChVisualSystem.h:169:12: note: candidate: ?double chrono::ChVisualSystem::GetSimulationRTF(unsigned int) const?
  169 |     double GetSimulationRTF(unsigned int i) const;
      |            ^~~~~~~~~~~~~~~~
/home/ubuntu/project-chrono/chrono-source/chrono/src/chrono/assets/ChVisualSystem.h:169:12: note:   candidate expects 1 argument, 0 provided
make[2]: *** [src/chrono_swig/chrono_python/CMakeFiles/core.dir/build.make:76: src/chrono_swig/chrono_python/CMakeFiles/core.dir/__/__/__/chrono_python/ChModuleCore_pythonPYTHON_wrap.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:939: src/chrono_swig/chrono_python/CMakeFiles/core.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Radu Serban

unread,
Mar 25, 2025, 3:05:12 PM3/25/25
to ProjectChrono

You need to clean the solution and rebuild.  This happens sometimes with SWIG-generated stuff when there’s an API change (which happened a day or two ago with the function GetSimulationRTF).

--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/2b88e569-342b-4c79-a87a-e15119e68742n%40googlegroups.com.

Message has been deleted

Salman Husain

unread,
Mar 25, 2025, 4:36:07 PM3/25/25
to ProjectChrono
Hi Radu,

Thanks for the quick follow up, 
I appreciate your patience.

However, now I am having some issues with the ROS2 modules :(.

I am cloned the repo from scratch and built it in a clean new folder. 

Cheers,
Sal

Screenshot 2025-03-25 140004.png

Salman Husain

unread,
Mar 25, 2025, 4:41:08 PM3/25/25
to ProjectChrono
Note:  Before the errors I see this output,
[100%] Building CXX object src/demos/ros/CMakeFiles/demo_ROS_custom_handler.dir/demo_ROS_custom_handler.cpp.o
[100%] Linking CXX executable ../../../bin/demo_ROS_custom_handler
[100%] Built target demo_ROS_custom_handler

Salman Husain

unread,
Mar 25, 2025, 4:54:30 PM3/25/25
to ProjectChrono
Hi Radu,

All good now. I followed through the parsers module installation again. Everything works.

Radu Serban

unread,
Mar 26, 2025, 2:09:23 PM3/26/25
to ProjectChrono

Hi Sal,

 

Glad to hear you got it working.  In general, “make clean; make” is the software equivalent of the “turn it off and then on again” for hardware 😊. Especially when there were API changes.

 

Best,
Radu

Salman Husain

unread,
Mar 26, 2025, 2:23:45 PM3/26/25
to ProjectChrono
Hi Radu,

Thanks again :) 
You were very helpful and kind.

Cheers,
sal 

Reply all
Reply to author
Forward
0 new messages