cbfinn / gps

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

MuJoCo bindings fail #75

Closed henrykmichalewski closed 7 years ago

henrykmichalewski commented 7 years ago

Box2d examples from your repository work fine and MuJoCo is also working on my machine using open-ai bindings. I was trying to build your bindings and ran into the following cmake-related issue:

~/gps/build$ cmake ../src/3rdparty
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Release' as none was specified.
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   python
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.12", minimum required is "2.7") 
CMake Error at /usr/share/cmake-3.5/Modules/FindPythonLibs.cmake:64 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  Boost.NumPy/CMakeLists.txt:14 (find_package)

-- Found PythonInterp: python (found version "2.7.12") 
-- Found NumPy: version "1.12.0" /home/henryk/.local/lib/python2.7/site-packages/numpy/core/include
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   python
-- found boost:
INCLUDE: /usr/include
LIB: /usr/lib/x86_64-linux-gnu/libboost_python.so
-- Found osg: /usr/lib/x86_64-linux-gnu/libosg.so  
-- Found osgViewer: /usr/lib/x86_64-linux-gnu/libosgViewer.so  
-- Found OpenThreads: /usr/lib/x86_64-linux-gnu/libOpenThreads.so  
-- Found osgGA: /usr/lib/x86_64-linux-gnu/libosgGA.so  
osg includes: /usr/include
-- Configuring incomplete, errors occurred!
See also "/home/henryk/gps/build/CMakeFiles/CMakeOutput.log".

I would be very grateful if you can help with this error. This is a generic installation of Ubuntu 16.04 with cmake 3.5.1. I also tried another equally generic Ubuntu 16.04 box with MuJoCo installed and I have got the same error.

henrykmichalewski commented 7 years ago

Answering my own issue, one can fix the problem using an older version of cmake from the repository https://cmake.org/files/v3.3/, for example cmake-3.3.2-Linux-x86_64.tar.gz worked fine for me.