Closed robotsorcerer closed 4 years ago
You can run the struct generator gps/src/3rdparty/mjcpy2/mj_struct_codegen.py
and toggle between the model and data by commenting(uncommenting) last few lines. This should get rid of those compile errors.
Now i'm getting:
make[2]: *** No rule to make target '/home/user/gps/src/3rdparty/mjpro/bin/libmujoco131.so', needed by 'lib/mjcpy.so'. Stop.
<command-line>:0:0: note: this is the location of the previous definition
CMakeFiles/Makefile2:158: recipe for target 'mjcpy2/CMakeFiles/mjcpy.dir/all' failed
make[1]: *** [mjcpy2/CMakeFiles/mjcpy.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
I had two versions of mujoco installed in mjpro folder. Removed and replaced with single version. I'm able to compile file now.
Now i'm getting:
make[2]: *** No rule to make target '/home/user/gps/src/3rdparty/mjpro/bin/libmujoco131.so', needed by 'lib/mjcpy.so'. Stop. <command-line>:0:0: note: this is the location of the previous definition CMakeFiles/Makefile2:158: recipe for target 'mjcpy2/CMakeFiles/mjcpy.dir/all' failed make[1]: *** [mjcpy2/CMakeFiles/mjcpy.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
@acrosson How did you solve this problem? I only have one version of mujoco but encounter the same problem.
Hi! This issue could be solved by using Mujoco version 1.31 from 2016.
Hi @lakehanne same issue. Can't find older version (1.21) . The autogen files need to be updated.