romulogcerqueira / sonar_simulation-buildconf

Build system of Imaging Sonar Simulator
Apache License 2.0
33 stars 15 forks source link

Problem when installing #31

Closed ShaofengZou closed 2 years ago

ShaofengZou commented 2 years ago

Hey,

I got trouble when installing.

My system is Ubuntu16.04 and ruby 2.5.1.

The log is:

  configuring CMake for gui/vizkit3d
  ERROR: got an error processing gui/vizkit3d, waiting for pending jobs to end
  configured CMake for base/logging
  set up Ruby package base/scripts
  configured CMake for control/kdl
  configured CMake for typelib
  built gui/osg_ocean
  built external/sisl (162 warnings)
  building rtt (76%)
  updated environment
Command failed
gui/vizkit3d(/opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/gui/vizkit3d): failed in configure phase
    'cmake -DCMAKE_INSTALL_PREFIX=/opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/install -DCMAKE_MODULE_PATH= -DCMAKE_PREFIX_PATH=/opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/install -DOROCOS_TARGET=gnulinux -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DROCK_TEST_ENABLED=OFF /opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/gui/vizkit3d' returned status 1
    see /opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/install/log/gui/vizkit3d-configure.log for details
    last 10 lines are:

      Unknown arguments specified
    Call Stack (most recent call first):
      /opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/install/share/rock/cmake/FindBoost.cmake:177 (find_package)
      /opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/install/share/rock/cmake/Rock.cmake:308 (find_package)
      CMakeLists.txt:7 (rock_find_cmake)

    -- Configuring incomplete, errors occurred!
    See also "/opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/gui/vizkit3d/build/CMakeFiles/CMakeOutput.log".

I have also try ruby 2.3.1, but got bug at the begining of install. The log is:

etected 'gem' to be /home/shaofengzou/.rbenv/versions/2.3.1/bin/gem
Ignoring ffi-1.15.4 because its extensions are not built.  Try: gem pristine ffi --version 1.15.4
Detected bundler at /home/shaofengzou/.local/share/autoproj/gems/ruby/2.3.0/bin/bundle
Installing autoproj in /home/shaofengzou/.local/share/autoproj/gems/ruby/2.3.0
Ignoring ffi-1.15.4 because its extensions are not built.  Try: gem pristine ffi --version 1.15.4
Ignoring ffi-1.15.4 because its extensions are not built.  Try: gem pristine ffi --version 1.15.4
Ignoring ffi-1.15.4 because its extensions are not built.  Try: gem pristine ffi --version 1.15.4
Fetching gem metadata from https://rubygems.org/......
Resolving dependencies...
Bundler found conflicting requirements for the Ruby version:
  In Gemfile:
    Ruby (~> 2.3.1.0)

    autoproj (>= 2.0.0) was resolved to 2.15.0, which depends on
      Ruby (>= 2.5.0)

Bundler found conflicting requirements for the RubyGems version:
  In Gemfile:
    RubyGems (= 2.5.1)

    autoproj (>= 2.0.0) was resolved to 2.14.0, which depends on
      bundler was resolved to 2.2.32, which depends on
        RubyGems (>= 2.5.2)
autoproj_install:475:in `run_bundler': FAILED: bundler install, --gemfile=/opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/.autoproj/Gemfile in /opt/data/nfs/shaofengzou/SonarSimulator/sonar_simulation_1205/sonar_simulation/.autoproj (Autoproj::Ops::Install::BundlerFailed)
    from autoproj_install:449:in `install_autoproj'
    from autoproj_install:718:in `install'
    from autoproj_install:778:in `stage1'
    from autoproj_install:827:in `<main>'

So how to select the version of ruby with Ubuntu 16.04 and how to solve the problem of vizkit3d?

Looking forward to your reply.

romulogcerqueira commented 2 years ago

Hi @ShaofengZou,

I will release a docker file with the prebuilt sonar simulator soon here: https://github.com/romulogcerqueira/docker-sonar_simulation

ShaofengZou commented 2 years ago

Hi @ShaofengZou,

I will release a docker file with the prebuilt sonar simulator soon here: https://github.com/romulogcerqueira/docker-sonar_simulation

Great! Loking forward to the update of the project. I will continue to pay attention to it.

Thank you so much.

romulogcerqueira commented 2 years ago

@ShaofengZou dockerfile released: https://github.com/romulogcerqueira/docker-sonar_simulation

Please follow the instructions there.