ethz-asl / lidar_align

A simple method for finding the extrinsic calibration between a 3D lidar and a 6-dof pose sensor
861 stars 268 forks source link

Build Error on Ubuntu 18.04: ofast -> Ofast #34

Open alessandromorra opened 3 years ago

alessandromorra commented 3 years ago

We had to chnage the compile options in order to build it on our machines: https://github.com/ethz-asl/lidar_align/compare/master...ascento-robotics:master

Otherwise we always got this error:

Errors     << lidar_align:make /home/catkin_ws/arc_ws/logs/lidar_align/build.make.014.log                                                                                                                           
cc1plus: error: too many filenames given.  Type cc1plus --help for usage
cc1plus: fatal error: CMakeFiles/lidar_align.dir/src/sensors.cpp.d: No such file or directory
compilation terminated.
cc1plus: error: too many filenames given.  Type cc1plus --help for usage
cc1plus: fatal error: CMakeFiles/lidar_align.dir/src/aligner.cpp.d: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/lidar_align.dir/src/sensors.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/lidar_align.dir/src/aligner.cpp.o] Error 1
cc1plus: error: too many filenames given.  Type cc1plus --help for usage
cc1plus: fatal error: CMakeFiles/lidar_align.dir/src/loader.cpp.d: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/lidar_align.dir/src/loader.cpp.o] Error 1
make[1]: *** [CMakeFiles/lidar_align.dir/all] Error 2
make: *** [all] Error 2
cd /home/wala/arc_ws/build/lidar_align; catkin build --get-env lidar_align | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
...............................................................................................................................................................................................................
Failed     << lidar_align:make           [ Exited with code 2 ]                                                                                                                                                
Failed    <<< lidar_align                [ 1.4 seconds ] 

Our setup:

17:12 $ gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
alittlewall0 commented 2 years ago

try to delete "-ofast" in CMakeLists.txt.It worked for me.

grosserding commented 10 months ago

try to delete "-ofast" in CMakeLists.txt.It worked for me.

thanks so much! Worked for me too!