versatran01 / dsol

DSOL: Direct Sparse Odometry Lite
Apache License 2.0
367 stars 63 forks source link

Catkin_make fail with absl and hash problem #16

Closed konszy closed 1 year ago

konszy commented 1 year ago

catkin_make failed with sophus, fmt, absl problem, need to check the version of them. THANKS!

konszy commented 1 year ago

The error seems form absl? Any idea to fix that?

截屏2023-04-20 11 48 53 截屏2023-04-20 11 49 23 截屏2023-04-20 11 50 51
versatran01 commented 1 year ago

I'm using 20220623, which is the one installed via mamba install abseil-cpp

You can also look here https://github.com/versatran01/dsol/blob/main/.github/workflows/build.yaml

I also just pushed a fix to make it compile with fmt v9.

konszy commented 1 year ago

I'm using 20220623, which is the one installed via mamba install abseil-cpp

You can also look here https://github.com/versatran01/dsol/blob/main/.github/workflows/build.yaml

I also just pushed a fix to make it compile with fmt v9.

Thanks for updating. I still got same problem(same warning), after I followed the command in build.yaml, and rebuild it. Any idea why this error happens? Always stuck with summary.cpp, which uses flat_hash_map.h.

versatran01 commented 1 year ago

I have no idea why this happens based on your screenshot.

konszy commented 1 year ago

Problem solved. If the error shows "undefined reference to absl::lts_xxxxxxx", try rm all absl stuff and re cmake with"-DABSL_PROPAGATE_CXX_STD", it should works.