cbfinn / gps

Guided Policy Search
http://rll.berkeley.edu/gps/
Other
593 stars 239 forks source link

Errors compiling with mujoco pro 150 #83

Closed robotsorcerer closed 4 years ago

acrosson commented 7 years ago

Hi @lakehanne same issue. Can't find older version (1.21) . The autogen files need to be updated.

acrosson commented 7 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
acrosson commented 7 years ago

I had two versions of mujoco installed in mjpro folder. Removed and replaced with single version. I'm able to compile file now.

jhshen95 commented 4 years ago

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.

padmaja-kulkarni commented 4 years ago

Hi! This issue could be solved by using Mujoco version 1.31 from 2016.