Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed due to pybind11 on ubuntu 20.04 #25

Open
utsavrai opened this issue Aug 25, 2021 · 2 comments
Open

Installation failed due to pybind11 on ubuntu 20.04 #25

utsavrai opened this issue Aug 25, 2021 · 2 comments

Comments

@utsavrai
Copy link

utsavrai commented Aug 25, 2021

`./install-openrave.sh

Downgrading sympy to version 0.7.1...

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already up-to-date: sympy==0.7.1 in /home/utsav/.local/lib/python2.7/site-packages (0.7.1)

Installing OpenRAVE 0.53 from source (Commit 2024b03554c8dd0e82ec1c48ae1eb6ed37d0aa6e)...

fatal: destination path 'openrave' already exists and is not an empty directory.
HEAD is now at 2024b0355 back compat support for key
mkdir: cannot create directory ‘build’: File exists
-- Compiling OpenRAVE Version 0.53.1, soversion=0.53
-- Using cmake version 3.16.3
-- Using double precision
-- detected system processor: x86_64
-- CMAKE_INSTALL_PREFIX          = /usr/local
-- PYTHON_EXECUTABLE             = /usr/bin/python
-- OPENRAVE_PYTHON_INSTALL_DIR   = lib/python2.7/dist-packages
-- OPENRAVE_BIN_SUFFIX           = 0.53
-- OPENRAVE_INCLUDE_LOCAL_DIRS   = /home/utsav/git/openrave/include
-- OPENRAVEPY_INCLUDE_LOCAL_DIRS = /home/utsav/git/openrave/build/python/bindings/include;/home/utsav/git/openrave/python/bindings/include
-- found boost version: 107100
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Found MPFI: /usr/lib/x86_64-linux-gnu/libmpfi.so
-- Using local crlibm
-- compiling with double extended (long double) floating point
CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimpTargets.cmake:54 (if):
  if given arguments:

    "ON"

  An argument named "ON" appears in a conditional statement.  Policy CMP0012
  is not set: if() recognizes numbers and boolean constants.  Run "cmake
  --help-policy CMP0012" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimp-config.cmake:1 (include)
  CMakeLists.txt:496 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- assimp version 5.0.0, , /usr/include
CMake Warning (dev) at modules-cmake/CheckCXXSourceRuns.cmake:16 (IF):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "IS_X86_64" will no longer be dereferenced when the
  policy is set to NEW.  Since the policy is not set the OLD behavior will be
  used.
Call Stack (most recent call first):
  CMakeLists.txt:522 (check_cxx_source_runs)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found RAPIDJSON: /usr/local/include
-- Found components for RapidJSON
-- RAPIDJSON_ROOT_DIR  = /usr/local
-- RAPIDJSON_INCLUDES  = /usr/local/include
-- Checking for module 'msgpack'
--   No package 'msgpack' found
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- libxml2 found
-- collada version 2.4.4 does not support write to memory
-- Use reentrant qhull
-- Found ANN headers but not library!
-- compiling local ann library
-- Checking for one of the modules 'fparser'
-- compiling local fparser library
-- compiling local convexdecomposition library
CMake Warning (dev) at src/libopenrave/CMakeLists.txt:34 (target_link_libraries):
  Policy CMP0023 is not set: Plain and keyword target_link_libraries
  signatures cannot be mixed.  Run "cmake --help-policy CMP0023" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  The plain signature for target_link_libraries has already been used with
  the target "libopenrave".  All uses of target_link_libraries with a target
  should be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * src/libopenrave/CMakeLists.txt:33 (target_link_libraries)

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/libopenrave/CMakeLists.txt:52 (target_link_libraries):
  Policy CMP0023 is not set: Plain and keyword target_link_libraries
  signatures cannot be mixed.  Run "cmake --help-policy CMP0023" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  The plain signature for target_link_libraries has already been used with
  the target "libopenrave_c".  All uses of target_link_libraries with a
  target should be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * src/libopenrave/CMakeLists.txt:51 (target_link_libraries)

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Geometry Parsing: Collada DOM 2.4.4
-- Geometry Parsing: Using Open Asset Import Library 5.0.0
-- Geometry Parsing: Using ivcon
CMake Warning (dev) at src/libopenrave-core/CMakeLists.txt:81 (target_link_libraries):
  Policy CMP0023 is not set: Plain and keyword target_link_libraries
  signatures cannot be mixed.  Run "cmake --help-policy CMP0023" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  The plain signature for target_link_libraries has already been used with
  the target "libopenrave-core".  All uses of target_link_libraries with a
  target should be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * src/libopenrave-core/CMakeLists.txt:80 (target_link_libraries)

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/libopenrave-core/CMakeLists.txt:100 (target_link_libraries):
  Policy CMP0023 is not set: Plain and keyword target_link_libraries
  signatures cannot be mixed.  Run "cmake --help-policy CMP0023" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  The plain signature for target_link_libraries has already been used with
  the target "libopenrave-core_c".  All uses of target_link_libraries with a
  target should be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * src/libopenrave-core/CMakeLists.txt:99 (target_link_libraries)

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/CMakeLists.txt:103 (target_link_libraries):
  Policy CMP0023 is not set: Plain and keyword target_link_libraries
  signatures cannot be mixed.  Run "cmake --help-policy CMP0023" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  The plain signature for target_link_libraries has already been used with
  the target "openrave".  All uses of target_link_libraries with a target
  should be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * src/CMakeLists.txt:102 (target_link_libraries)

This warning is for project developers.  Use -Wno-dev to suppress it.

-- extracting models to /home/utsav/git/openrave/src
-- MATLAB installation not found, is mex in the system path?
-- Found sympy version '0.7.1'
-- Assuming sympy version 0.7.x or greater
CMake Warning (dev) at modules-cmake/CheckCXXSourceRuns.cmake:16 (IF):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "HAVE_ALL_PYTHON_HEADERS" will no longer be
  dereferenced when the policy is set to NEW.  Since the policy is not set
  the OLD behavior will be used.
Call Stack (most recent call first):
  python/bindings/CMakeLists.txt:32 (check_cxx_source_runs)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at python/bindings/CMakeLists.txt:50 (message):
  Should have installed pybind11; CMake will exit.


-- Configuring incomplete, errors occurred!
See also "/home/utsav/git/openrave/build/CMakeFiles/CMakeOutput.log".
See also "/home/utsav/git/openrave/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
utsav@01hw1321985:~/Tools/openrave-installation$ AAAAB

`
@kitcheung1480
Copy link

You probably fail installing pip as the bash install python2 and install pip with python2. pip failed install in global and result in fail installation of all the package afterward. You may try to change the bash by replacing "pip" to "python2 -m pip".

@DangMinh24
Copy link

DangMinh24 commented Jun 23, 2024

I have the same issue with pybind11 when building on Ubuntu 20.04, even though the Pybind11 has already been installed locally. So I solved the issue by: 1/Uninstall any global pybind11 in Python2 and check with locate pybind11 (to make sure no global pybind11 in folder such as /usr/local/). If this step not work, go to next step. 2/ Go to file ~/git/openrave/python/bindings/CMakeLists.txt, add this line set(HAVE_ALL_PYTHON_HEADERS TRUE) after line set(HAVE_ALL_PYTHON_HEADERS ${HAVE_ALL_PYTHON_HEADERS} PARENT_SCOPE).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants