Error during tagslam installation

113 views
Skip to first unread message

yishan liu

unread,
Nov 19, 2020, 9:24:17 PM11/19/20
to tagslam
Hi Bernd,When I follow the tutorial on tagslam_root and run the command git clone --recursive https://github.com/berndpfrommer/tagslam_root.git, it always reports an errorScreenshot from 2020-11-20 10-17-37.png
How to solve this problem,
My ubuntu version is16.04,and ros is kinetic,git version is 2.7.4.Thanks!

Bernd Pfrommer

unread,
Nov 20, 2020, 6:33:29 AM11/20/20
to tagslam
I just tested and if I follow the online instructions I don't get this error running on Ubuntu 16.04 or 20.04.
However, I see that you have specified the "clone" and the repo twice on your command line, which looks incorrect to me.

yishan liu

unread,
Nov 27, 2020, 2:40:27 AM11/27/20
to tagslam

Thank you very much for receiving your reply. I checked some problems that should be my network. However, when I proceeded to catkin build, many other problems appeared, as shown in the figure

Before using the default cmake3.5 version and gcc g++5.4.0 version, I found that the compilation has been unsuccessful, and the errors that occurred are as follows, and then consider whether it is the cmake version.
GetImage.pngGetImage (2).png

Now it is replaced by cmake3.11.3 version, gcc is still 5.4.0, but the error shown below appears,Now I changed to cmake 3.11.3 version, gcc is still 5.4.0, but the error shown in the figure below appears, I refer to some information on the Internet that cmake update needs to update gcc and g++ to version 6 together, but similar fatal errors will appear : bytecode stream generated with LTO version x.0 instead of the expected xx error. Checking the information means that the version is too new.What are the cmake and gcc versions you use under ubuntu16.04, or have you encountered similar problems?Looking forward to receiving your reply,Thanks!
Screenshot from 2020-11-27 15-04-04.pngScreenshot from 2020-11-27 15-05-48.png




Bernd Pfrommer

unread,
Nov 27, 2020, 9:23:39 AM11/27/20
to tagslam
sorry my bad. I had mistakenly tested under Ubuntu 18.04, not Ubuntu 16.04. Working on it.

Bernd Pfrommer

unread,
Nov 27, 2020, 10:08:09 AM11/27/20
to tagslam
You will need to install g++-7 and a newer version of cmake. I have updated the instructions, see


 Could you please test and let me know if it works for you? It does compile for me now on Ubuntu 16.04.


yishan liu

unread,
Nov 28, 2020, 4:03:00 AM11/28/20
to tagslam
Thank you very much for receiving your reply. I did not compile normally . After updating cmake and gcc, the version is as follows
Screenshot from 2020-11-28 16-53-20.png
When executing catkin build, the error is as follows
Screenshot from 2020-11-28 16-55-26.png

In addition to that, when executed the command “sudo apt-add-repository'deb https://apt.kitware.com/ubuntu/ xenial main'  ” , execute
”sudp apt-get update “ ,appears problem “Fix apt-get update "the following signatures couldn't be verified because the public key is not available" ”, then use sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <mssing key> The keys method can solve this problem.Thanks again for your answers!

yishan liu

unread,
Nov 28, 2020, 4:46:39 AM11/28/20
to tagslam

I just re-tested it and found that the compilation was successful. After reviewing it, I found that the difference between the two is that the first is that the compilation is not successful because I used the command sudo update-alternatives --config gcc to switch between gcc5 and gcc7 Version, then switch to gcc7 and run
catkin config -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++-7
catkin build will appear as mentioned above
Screenshot from 2020-11-28 16-55-26.png
And if the default version of ubuntu is not switched to gcc7, keep gcc5, and then follow the command catkin config -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++-7
catkin build,  can compile successfully!Thanks again! 
在2020年11月27日星期五 UTC+8 下午11:08:09<bernd.p...@gmail.com> 写道:
Reply all
Reply to author
Forward
0 new messages