Skip to content

error: Failed to compile Gazebo plugin #103

@alexsandercaac

Description

@alexsandercaac

Description

The 'install_dependencies.sh' executes without any error after updating "logname" in line 9, which was giving me an error, by "whoami" --- I believe their outputs should be equivalent.
When running the next command with pip3, I get the following error:

Processing /home/alex/workspace/gymfc
Collecting numpy (from gymfc==0.1.2)
  Using cached https://files.pythonhosted.org/packages/45/b2/6c7545bb7a38754d63048c7696804a0d947328125d81bf12beaa692c3ae3/numpy-1.19.5-cp36-cp36m-manylinux1_x86_64.whl
Collecting protobuf (from gymfc==0.1.2)
  Using cached https://files.pythonhosted.org/packages/53/4e/e2db88d0bb0bda6a879eea62fddbaf813719ce3770d458bc5580512d9c95/protobuf-3.17.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Collecting psutil>=5.3.0 (from gymfc==0.1.2)
Collecting six>=1.9 (from protobuf->gymfc==0.1.2)
  Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Installing collected packages: numpy, six, protobuf, psutil, gymfc
  Running setup.py install for gymfc ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-jmpeqtxu-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-xohlp8m_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    [gymfc] starting Gazebo plugin build.
    [gymfc] plugin directory located at /tmp/pip-jmpeqtxu-build/gymfc/envs/assets/gazebo/plugins
    -- The C compiler identification is GNU 7.5.0
    -- The CXX compiler identification is GNU 7.5.0
    -- 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
    CMake Error at CMakeLists.txt:4 (find_package):
      By not providing "Findgazebo.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "gazebo", but
      CMake did not find one.

      Could not find a package configuration file provided by "gazebo" with any
      of the following names:

        gazeboConfig.cmake
        gazebo-config.cmake

      Add the installation prefix of "gazebo" to CMAKE_PREFIX_PATH or set
      "gazebo_DIR" to a directory containing one of the above files.  If "gazebo"
      provides a separate development package or SDK, be sure it has been
      installed.


    -- Configuring incomplete, errors occurred!
    See also "/tmp/pip-jmpeqtxu-build/gymfc/envs/assets/gazebo/plugins/build/CMakeFiles/CMakeOutput.log".
    make: *** No targets specified and no makefile found.  Stop.
    error: Failed to compile Gazebo plugin.

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-jmpeqtxu-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-xohlp8m_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-jmpeqtxu-build/

Steps to Reproduce

On a fresh install of Ubuntu 18.04, run apt-get update and upgrade. Next, substitute "logname" by "whoami" in the 'install_dependencies.sh' file. Run the script without any issues. Run the pip3 command and see the error.

Expected behavior
Expected the installation of gymfc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions