cyang-kth / fmm

Fast map matching, an open source framework in C++
https://fmm-wiki.github.io/
Apache License 2.0
875 stars 205 forks source link

Cmake compile fails with Boost ver 1.78 #243

Open gjgress opened 2 years ago

gjgress commented 2 years ago

Trying to compile fmm fails, producing errors regarding boost (specifically boost/geometry).

Downgrading to boost 1.72 worked to resolve the issue, but there are other programs that use boost libraries, and so downgrading is both not easy and risky.

These errors occurred on Manjaro (Arch).

Expected behavior

Should compile with modern versions of Boost libraries.

ashirwad commented 1 year ago

@gjgress, I am experiencing the same problem! Can you please explain how you downgraded boost to 1.72?

Wikunia commented 1 year ago

Hi @ashirwad I just had the same problem with Arch linux and used: https://wiki.archlinux.org/title/Arch_Linux_Archive#How_to_downgrade_one_package and https://archive.archlinux.org/packages/b/boost-libs/ and https://archive.archlinux.org/packages/b/boost 1.72.0-4 for it. Still hope someone manages to make it work with newer versions though as boost is used by many other packages as well.

ashirwad commented 1 year ago

@Wikunia, thanks! One thing I have noticed is that if you edit line 30 of fmm/CMakeLists.txt: set(CMAKE_CXX_STANDARD 14) (14 instead of 11), then the program compiles with the latest version of boost! Do give it a try.