[Paraview-developers] ParaView fails to build with JsonCpp 1.7.5

Hahn, Steven E. hahnse at ornl.gov
Wed Sep 7 17:34:06 EDT 2016


I encountered a compiler error when building ParaView with JsonCpp 1.7.5 and GCC. The error message is attached and appears to be related to JsonCpp changing its Int64 typedef from long long to int64_t.

https://github.com/open-source-parsers/jsoncpp/issues/509
https://github.com/open-source-parsers/jsoncpp/commit/b9afdf190dbccbf3a59a3aba86eb295c0fa07068

Since on Linux these are two different types, the call to Json::Value(vtkIdType &) (where vtkIdType is long long) becomes ambiguous.

What is the best way to resolve this issue? The error goes away with VTK_USE_64BIT_IDS=OFF, but I am uncomfortable reducing the size of vtkIdType. I also tried checking the size of long before long long in VTK/Common/Core/vtkType.h, but got an error in VTK/IO/NetCDF/vtkSLACParticleReader.cxx about an invalid conversion from long* to long long*.

Best,
Steven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160907/6770131e/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jsoncpp_1.7.5_error.txt
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160907/6770131e/attachment-0001.txt>


More information about the Paraview-developers mailing list