Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: no type named 'library_version_type' in namespace 'boost::serialization' #634

Closed
DYFeng opened this issue Dec 9, 2020 · 6 comments
Labels
invalid Not a valid issue

Comments

@DYFeng
Copy link

DYFeng commented Dec 9, 2020

Description

Compile on macOS failed.

Steps to reproduce

  1. git checkout develop
  2. cmake .. && make
In file included from /Users/dyfeng/Projects/gtsam/gtsam/inference/BayesTree.cpp:21:
In file included from /Users/dyfeng/Projects/gtsam/gtsam/inference/BayesTree.h:22:
In file included from /Users/dyfeng/Projects/gtsam/gtsam/inference/Key.h:20:
In file included from /Users/dyfeng/Projects/gtsam/gtsam/base/FastList.h:25:
/usr/local/include/boost/serialization/list.hpp:53:33: error: no type named 'library_version_type' in namespace 'boost::serialization'; did you mean
      'item_version_type'?
    const boost::serialization::library_version_type library_version(
          ~~~~~~~~~~~~~~~~~~~~~~^

Expected behavior

Environment

OS: macOS
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin20.1.0
boost: 1.74.0

Additional information

@varunagrawal
Copy link
Collaborator

So this is actually an issue with Boost 1.74. I encountered this issue today morning and found this: boostorg/serialization#217 (comment)

@DYFeng can you please downgrade to Boost 1.73?

@varunagrawal varunagrawal added the invalid Not a valid issue label Dec 11, 2020
@DYFeng
Copy link
Author

DYFeng commented Dec 12, 2020

Thank you. It seems we have to wait upstream to fix it.

@DYFeng DYFeng closed this as completed Dec 12, 2020
@wolfv
Copy link

wolfv commented Mar 11, 2021

Adding

#include <boost/serialization/version.hpp>

to LossFunctions.h and SubGraphBuilder.h fixes this issue.

@Yuanzhuangz
Copy link

Yuanzhuangz commented Nov 1, 2021

Adding

#include <boost/serialization/version.hpp>

to LossFunctions.h and SubGraphBuilder.h fixes this issue.

why can't i find LossFunctions.h,where is it?

@wwtinwhu
Copy link

Adding

#include <boost/serialization/version.hpp>

to LossFunctions.h and SubGraphBuilder.h fixes this issue.

Hello, after I adding it, this issue still not solved. Any advice? Thanks! @DYFeng @wolfv @varunagrawal

Environment

OS: ubuntu22.04
Compiler: gcc 11.4
boost: 1.74
gtsam version: 4.0.3

@wwtinwhu
Copy link

Adding

#include <boost/serialization/version.hpp>

to LossFunctions.h and SubGraphBuilder.h fixes this issue.

Hello, after I adding it, this issue still not solved. Any advice? Thanks! @DYFeng @wolfv @varunagrawal

Environment

OS: ubuntu22.04 Compiler: gcc 11.4 boost: 1.74 gtsam version: 4.0.3

Solution: Hug with latest GTSAM4.2.0! @dellaert

peterkappelt added a commit to peterkappelt/SwarmMap that referenced this issue Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Not a valid issue
Projects
None yet
Development

No branches or pull requests

5 participants