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

VTK json clashes with local json #232

Open
davidscn opened this issue Mar 3, 2025 · 2 comments
Open

VTK json clashes with local json #232

davidscn opened this issue Mar 3, 2025 · 2 comments
Labels

Comments

@davidscn
Copy link
Member

davidscn commented Mar 3, 2025

Observed in the most recent vtk 9.4.1:

It seems that VTK now includes the same json as we do (nlohmann::json). However, vtk puts the json into their own namespace.
This leads to errors of the form

error: ‘vtknlohmann’ does not name a type; did you mean ‘nlohmann’?
   82 |   nlohmann::json SerializeValues();
      |   ^~~~~~~~
src/configreader.hpp:16:14: error: ‘vtknlohmann’ does not name a type; did you mean ‘nlohmann’?
   16 | using json = nlohmann::json;

My guess would be that the compiler then only includes one of the two json files. Requires some investigation. I didn't face this issue in VTK version 9.3.

@davidscn davidscn added the bug label Mar 3, 2025
@fsimonis
Copy link
Member

fsimonis commented Mar 12, 2025

This could be a packaging issue. Is this on Ubuntu or when compiling from source?

@davidscn
Copy link
Member Author

This was compiling from source on ubuntu 24.04. Could be a make configuration issue as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants