ethz-asl / maplab

A Modular and Multi-Modal Mapping Framework
https://maplab.asl.ethz.ch
Apache License 2.0
2.6k stars 721 forks source link

fix undefined reference to void backend::addLabelToPointCloud<resourc… #374

Closed JzHuai0108 closed 1 year ago

JzHuai0108 commented 1 year ago

Fixed the below bug in compilation.

Errors     << maplab_console:make /media/jhuai/docker/maplab2_ws/logs/maplab_console/build.make.004.log                                                                                                    
/media/jhuai/docker/maplab2_ws/devel/lib/libdepth_integration.so: undefined reference to `void backend::addLabelToPointCloud<resources::VoxbloxColorPointCloud>(unsigned int, unsigned long, resources::VoxbloxColorPointCloud*)'
collect2: error: ld returned 1 exit status

Solution: float -> uint32_t

ethzasl-jenkins commented 1 year ago

Can one of the admins verify this patch?

smauq commented 1 year ago

Ok to test

smauq commented 1 year ago

Interesting the compiler didn't pick that up earlier. Can I ask what system (OS and compiler) you are running this on?

JzHuai0108 commented 1 year ago

Ubuntu 18.04, gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0.

ethzasl-jenkins commented 1 year ago

Test PASSed.