Code Monkey home page Code Monkey logo

Comments (9)

cnboonhan avatar cnboonhan commented on August 12, 2024 2

Hi, just sneaking in this link which might help.

it is for protobuf 3.0.0 but it hopefully works for removing protobuf 3.4.0, which is what we want

https://stackoverflow.com/questions/35896335/how-can-i-uninstall-protobuf-3-0-0

We should change the protobuf version in that thread to 3.4.0.

from rmf_demos.

aaronchongth avatar aaronchongth commented on August 12, 2024 1

looks like you found the problem, it is also referenced in this issue in the past too.

looks like this might be what you need, https://stackoverflow.com/questions/35896335/how-can-i-uninstall-protobuf-3-0-0

from rmf_demos.

aaronchongth avatar aaronchongth commented on August 12, 2024

This is probably due to an already existing installation of protobuf and its compiler, it looks like this might be a similar issue to this, https://answers.gazebosim.org//question/20101/protobuf-version-error-on-ubuntu-1804-and-gazebo9/

Could you provide some information about your system installation of protobuf?

dpkg -l | grep gazebo9
dpkg -l | grep protobuf

from rmf_demos.

prashantking avatar prashantking commented on August 12, 2024

attaching two log files with the outputs of above commands
gazebo9_info.txt
protobuf_info.txt

dpkg -l | grep gazebo9

ii  gazebo9                   9.12.0-1~bionic                                  amd64        Open Source Robotics Simulator
ii  gazebo9-common            9.12.0-1~bionic                                  all          Open Source Robotics Simulator - Shared files
ii  gazebo9-dbg               9.12.0-1~bionic                                  amd64        Open Source Robotics Simulator - Debugging Symbols
ii  gazebo9-doc               9.12.0-1~bionic                                  all          Open Source Robotics Simulator - Documentation
ii  gazebo9-plugin-base       9.12.0-1~bionic                                  amd64        Open Source Robotics Simulator - base plug-ins
ii  libgazebo9:amd64          9.12.0-1~bionic                                  amd64        Open Source Robotics Simulator - shared library
ii  libgazebo9-dev:amd64      9.12.0-1~bionic                                  amd64        Open Source Robotics Simulator - Development Files
dpkg -l | grep protobuf

ii  libprotobuf-dev:amd64          3.0.0-9.1ubuntu1                    amd64        protocol buffers C++ library (development files)
ii  libprotobuf-lite10:amd64       3.0.0-9.1ubuntu1                    amd64        protocol buffers C++ library (lite version)
ii  libprotobuf10:amd64            3.0.0-9.1ubuntu1                    amd64        protocol buffers C++ library
ii  protobuf-compiler              3.0.0-9.1ubuntu1                    amd64        compiler for protocol buffer definition files
ii  python3-protobuf               3.0.0-9.1ubuntu1                    amd64        Python 3 bindings for protocol buffers

from rmf_demos.

aaronchongth avatar aaronchongth commented on August 12, 2024

that looks alright to me. did your system already have an installation of gazebo9? or was it installed using the rosdep step mentioned in the documentation?

from rmf_demos.

prashantking avatar prashantking commented on August 12, 2024

I have a default gazebo installation from

sudo apt-get install ros-melodic-desktop-full

other than this i tried google cartographer which shows protobuf from source as 3.4.0.

$ export PATH=/usr/local/bin:$PATH
$ protoc --version
libprotoc 3.4.0

can this create any issue ?

from rmf_demos.

prashantking avatar prashantking commented on August 12, 2024

rmf_demo needs 3.4.0 version or 3.0.0 version of protoc. ?
since cartographer needs 3.4.0 and default is 3.0.0 which one i should remove ?

from rmf_demos.

Yadunund avatar Yadunund commented on August 12, 2024

This is an issue that has come up before #21. Gazebo9 requires protobuf 3.0.0 while cartographer installs 3.4.0. Could you try removing 3.4.0 and confirm if that resolves the issue?

from rmf_demos.

prashantking avatar prashantking commented on August 12, 2024

hi, its working now i tried few of the approaches and it worked with this:
go to build directory of protobuf 3.4.0
and then run this command

$ cd build
$ sudo cat install_manifest.txt | sudo xargs rm

and after this when you compile rmf_demo it works fine.
although i doubt that cartographer is going to work after this but that can be solved by building protbuf3.4.0 locally in a workspace.

from rmf_demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.