Ask Your Question
1

Autoware :1.12.0 Build error

asked 2019-06-27 03:29:19 -0500

AM97 gravatar image

Operating system and version: Ubuntu 18.04 gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 cmake version 3.10.2

Autoware installation type Built from source (https://gitlab.com/autowarefoundation...)

Autoware version : 1.12.0

ROS distribution: melodic ROS installation type: sudo apt-get install ros-melodic-desktop-full

When I did this command colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release I am getting following error basically citysim package failed

^~~~~ In file included from /usr/include/gazebo-9/gazebo/msgs/MessageTypes.hh:15:0, from /usr/include/gazebo-9/gazebo/msgs/msgs.hh:35, from /usr/include/gazebo-9/gazebo/rendering/Camera.hh:37, from /home/sai/autoware.ai/src/citysim/plugins/BloomVisualPlugin.cc:18: /usr/include/gazebo-9/gazebo/msgs/camera_lens.pb.h:17:2: error: #error This file was generated by an older version of protoc which is #error This file was generated by an older version of protoc which is ^~~~~ /usr/include/gazebo-9/gazebo/msgs/camera_lens.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please #error incompatible with your Protocol Buffer headers. Please ^~~~~ /usr/include/gazebo-9/gazebo/msgs/camera_lens.pb.h:19:2: error: #error regenerate this file with a newer version of protoc. #error regenerate this file with a newer version of protoc. ^~~~~ In file included from /usr/include/gazebo-9/gazebo/msgs/MessageTypes.hh:16:0, from /usr/include/gazebo-9/gazebo/msgs/msgs.hh:35, from /usr/include/gazebo-9/gazebo/rendering/Camera.hh:37, from /home/sai/autoware.ai/src/citysim/plugins/BloomVisualPlugin.cc:18: /usr/include/gazebo-9/gazebo/msgs/cessna.pb.h:17:2: error: #error This file was generated by an older version of protoc which is #error This file was generated by an older version of protoc which is ^~~~~ /usr/include/gazebo-9/gazebo/msgs/cessna.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please #error incompatible with your Protocol Buffer headers. Please ^~~~~ /usr/include/gazebo-9/gazebo/msgs/cessna.pb.h:19:2: error: #error regenerate this file with a newer version of protoc. #error regenerate this file with a newer version of protoc. ^~~~~ In file included from /usr/include/gazebo-9/gazebo/msgs/MessageTypes.hh:17:0, from /usr/include/gazebo-9/gazebo/msgs/msgs.hh:35, from /usr/include/gazebo-9/gazebo/rendering/Camera.hh:37, from /home/sai/autoware.ai/src/citysim/plugins/BloomVisualPlugin.cc:18: /usr/include/gazebo-9/gazebo/msgs/collision.pb.h:17:2: error: #error This file was generated by an older version of protoc which is #error This file was generated by an older version of protoc which is ^~~~~ /usr/include/gazebo-9/gazebo/msgs/collision.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please #error incompatible with your Protocol Buffer headers. Please ^~~~~ /usr/include/gazebo-9/gazebo/msgs/collision.pb.h:19:2: error: #error regenerate this file with a newer version of protoc. #error regenerate this file with a newer version of protoc. ^~~~~ In file included from /usr/include/gazebo-9/gazebo/msgs/collision.pb.h:31:0, from /usr/include/gazebo-9/gazebo/msgs/MessageTypes.hh ... (more)

edit retag flag offensive close merge delete

Comments

Autoware 1.12.0 has not been released yet. Unless you are happy using a potentially-broken master branch, I recommend you stick to 1.11.1 or 1.12.0-alpha.2.

Geoff gravatar imageGeoff ( 2019-06-27 03:38:07 -0500 )edit

@Geoff Yeah but 1.12.0-Aplha 2 will be released on July 8 as per (https://discourse.ros.org/t/dates-for...) and melodic has support only for 1.12.0 as per wiki page (https://gitlab.com/autowarefoundation...)

AM97 gravatar imageAM97 ( 2019-06-27 03:41:55 -0500 )edit

@Geoff Will 1.11.0 be supported in melodic?

AM97 gravatar imageAM97 ( 2019-06-27 03:42:42 -0500 )edit
1

1.12.0-alpha.2 was released last week. We are working to release 1.12.0 on the 8th. Unfortunately there is no way for us to extend support for an already-released version of Autoware. If you want to use it on Melodic, you will need to either use alpha.2, which contains known bugs, or wait until the 8th. We will have all the documentation updates in place by that point. In the mean time, you may have found a problem we need to fix, but because you didn't format your error output as preformatted, I can't read the error messages and my browser chokes trying to edit the message to clean it up because it is too big. Either edit your message and change the error output to preformatted text, or edit your message and move the error output to a gist.

Geoff gravatar imageGeoff ( 2019-06-27 04:12:30 -0500 )edit

@Geoff okay Thanks will try to put preformatted text

AM97 gravatar imageAM97 ( 2019-06-27 04:17:00 -0500 )edit

@Geoff I have downloaded 1.12.0-alpha and even though I am getting the same errors. I am keeping my terminal output as a google drive link. Please go through it. (https://drive.google.com/open?id=1ey7...)

AM97 gravatar imageAM97 ( 2019-06-27 11:25:06 -0500 )edit

@sm94 that link requires me to download a file. I don't believe you're going to get many people willing to download a random file from the internet

jayess gravatar imagejayess ( 2019-06-27 15:13:27 -0500 )edit

@jayess but I can't post more than 500 words in the comment section and I feel that it would be waste if I open a new issue and post that there?

AM97 gravatar imageAM97 ( 2019-06-27 15:49:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-27 13:50:02 -0500

Maximus5684 gravatar image

There are likely 1 of 3 things going on here:

  1. Something from a previous build has been cached and is causing issues. To clean your colcon workspace, cd to the base of the workspace (above the src folder), and run rm -rf install/ build/ log/, then re-run the colcon command.
  2. An incompatibility with the version of Google's Protocol Buffers that you have installed. If you installed them from source, go to the source folder and run sudo make uninstall and then try reinstalling with the command sudo apt install --reinstall protobuf-compiler protobuf-c-compiler libprotoc-dev libprobuf-dev.
  3. An incompatibility with the version of Gazebo that you have installed. Did you install it from source? If so, you'll have to manually remove it (generally sudo make uninstall in the source code folder) and re-install it from the repositories (sudo apt install gazebo9).
edit flag offensive delete link more

Comments

@Maximus I checked all the above mentioned three and did it but I am getting same error

AM97 gravatar imageAM97 ( 2019-06-27 15:50:39 -0500 )edit

Did you use the instructions for the 1.12.0-alpha.2 release or the "bleeding edge" version? Can you go into the citysim folder and do git fetch && git status and give me the output?

Maximus5684 gravatar imageMaximus5684 ( 2019-06-27 16:54:19 -0500 )edit

@Maximus I used the instructions for the 1.12.0-alpha.2 .(wget -O autoware.ai.repos https://gitlab.com/autowarefoundation... ) from this link (https://gitlab.com/autowarefoundation...)

git fetch && git status of citysim folder

HEAD detached at 27bd05b nothing to commit, working tree clean.

AM97 gravatar imageAM97 ( 2019-06-28 01:11:35 -0500 )edit

@Maximus I was able to install somehow but I was unable to run since there is no such directory. When I downloaded previously from github I used to change directory to Autoware/ros and do ./run. but now How i need to run?

AM97 gravatar imageAM97 ( 2019-06-28 09:22:22 -0500 )edit

@sm94 - See if this article helps any: https://bitbucket.org/osrf/gazebo/iss...

Maximus5684 gravatar imageMaximus5684 ( 2019-06-28 13:32:50 -0500 )edit

@Maximus5684- Solved. Thanks

AM97 gravatar imageAM97 ( 2019-06-28 16:51:04 -0500 )edit

@sm94 - Would you mind adding an answer on this question with what you found to be the solution to help others? Thanks.

Maximus5684 gravatar imageMaximus5684 ( 2019-06-28 17:02:24 -0500 )edit

@Maximus Sure. I manually installed google-cartographer and protobuf3 was manually installed in my system and later I installed later by this sudo apt install --reinstall protobuf-compiler protobuf-c-compiler libprotoc-dev libprobuf-dev . So, therefore, it overwrites my system I guess the same error as mentioned in the comments section. If anyone gets this kind of error, I would advise you to clear the caches from the previous build and check if the gazebo is properly installed and mainly check about the protobuf issue. I guess it sorts out everything if you have this error. If anyone has more queries please comment I will try my best to give the best possible solution. Thanks

AM97 gravatar imageAM97 ( 2019-06-28 17:45:58 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-06-27 03:29:19 -0500

Seen: 173 times

Last updated: Jun 27