google-deepmind / dm_robotics

Libraries, tools and tasks created and used at DeepMind Robotics.
Apache License 2.0
332 stars 32 forks source link

Installation: Could not find header files #12

Closed jangirrishabh closed 2 years ago

jangirrishabh commented 2 years ago

Hi, the dm_robotics installed is unable to find the header files. Any help would be greatly appreciated!

ERROR: ' In file included from /home/rishabh/workspace/dm_robotics/cpp/mujoco/src/mjlib.cc:15: /home/rishabh/workspace/dm_robotics/cpp/mujoco/include/dm_robotics/mujoco/mjlib.h:22:10: fatal error: mjmodel.h: No such file or directory 22 | #include "mjmodel.h" //NOLINT '

Here's my environment variables

' MJLIB_PATH: /home/rishabh/.mujoco/mujoco/lib/libmujoco.so Using cmake command 'cmake' Using python command '/home/rishabh/anaconda3/envs/packing/bin/python' Using tox command '/home/rishabh/anaconda3/envs/packing/bin/python -m tox' Using python version '3.8' '

davidkh1 commented 2 years ago

Hi Rishabh, Has the problem been solved? If you need help, could you share the Linux distribution you are using and what version of MuJoCo you have?

jangirrishabh commented 2 years ago

Thank you for getting back David!

Unfortunately not, here is my configuration. Somehow mjmodel.h inside .mujoco/mujoco/include/ is not being found

Linux: 22.04 Mujoco: Mujoco 2.0 (Installed from older mujoco not provided by deepmind)

If this is not the right config, how shall I proceed?

jangirrishabh commented 2 years ago

This was solved by installing mujoco from source.