cartographer-project / cartographer

Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.
Apache License 2.0
7.04k stars 2.24k forks source link

Command '['ninja', '-j12', '-l12']' returned non-zero exit status 1 on compile #1829

Closed tomkimsour closed 3 years ago

tomkimsour commented 3 years ago

I did everything listed on this page https://google-cartographer-ros.readthedocs.io/en/latest/compilation.html#building-installation . But once i run catkin_make_isolated --install --use-ninja i get this error :

[263/382] Building CXX object CMakeFiles/cartographer.mapping.inter...rapher/mapping/internal/constraints/constraint_builder_3d_test.cc.o ninja: build stopped: subcommand failed. <== Failed to process package 'cartographer': Command '['ninja', '-j12', '-l12']' returned non-zero exit status 1

I tried deleting the package cartographer then cloning it but nothing changed. My current ditro is Ubuntu 16.04 and ros version is kinetic.

tomkimsour commented 3 years ago

I tried compiling the repository manualy with : mkdir build && cd build cmake .. sudo make install

and i get errors on the library google::protobuf

undefined reference togoogle::protobuf::internal::InitProtobufDefaults()'`

On this page they say it might be due to gcc version but the gcc version i have is 5.5.0, am I doing this correctly. I don't understand very well what i am supposed to do here.

tomkimsour commented 3 years ago

Ok, I'm closing this, I did not try this solution but downgrading protobuf version might solve it, latest version today is := 3.15.18. Maybe putting it to 3.0.0 would work.

Fxx0105 commented 3 months ago

I made the same mistake as you. Did you finally solve the problem?

Fxx0105 commented 3 months ago

I am troubled by this problem now, and I hope you can help me

tomkimsour commented 3 months ago

This is getting quite old now but I don't think I have solved it unfortunatly.