GoogleCloudPlatform / wsi-to-dicom-converter

Conversion tool/library for converting whole slide images to DICOM
Apache License 2.0
77 stars 26 forks source link

libjsoncpp 1.9.x: use of deleted function ‘Json::Value::Value(std::nullptr_t)’ #93

Closed malaterre closed 2 years ago

malaterre commented 2 years ago

For some reason I cannot compile latest wsi2dcm on my Debian machine:

wsi-to-dicom-converter/src/dcmTags.cpp:28:26: error: use of deleted function ‘Json::Value::Value(std::nullptr_t)’
   28 |   if (obj[tag][VALUE] != nullptr) {
      |                          ^~~~~~~
In file included from /usr/include/jsoncpp/json/reader.h:11,
                 from /usr/include/jsoncpp/json/json.h:11,
                 from wsi-to-dicom-converter/src/dcmTags.cpp:19:
/usr/include/jsoncpp/json/value.h:345:3: note: declared here
  345 |   Value(std::nullptr_t ptr) = delete;
      |   ^~~~~

With:

% apt-cache policy libjsoncpp-dev
libjsoncpp-dev:
  Installed: 1.9.4-4
  Candidate: 1.9.4-4
  Version table:
 *** 1.9.4-4 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        100 /var/lib/dpkg/status