manisandro / gImageReader

A Gtk/Qt front-end to tesseract-ocr.
GNU General Public License v3.0
1.57k stars 187 forks source link

Incompatible with Podofo 0.10.1 ... #655

Closed jiapei100 closed 8 months ago

jiapei100 commented 9 months ago

I tried to build gImageReader under Ubuntu 22.04, with podofo-0.10.1, but got the following error message.

....../gImageReader/qt/src/hocr/HOCRPdfExporter.cc:628:75: error: ‘DeviceGray’ is not a member of ‘PoDoFo::PdfColorSpace’
  628 |                 PoDoFo::PdfColorSpace colorSpace = PoDoFo::PdfColorSpace::DeviceGray;
      |                                                                           ^~~~~~~~~~
....../gImageReader/qt/src/hocr/HOCRPdfExporter.cc:628:39: error: cannot declare variable ‘colorSpace’ to be of abstract type ‘PoDoFo::PdfColorSpace’
  628 |                 PoDoFo::PdfColorSpace colorSpace = PoDoFo::PdfColorSpace::DeviceGray;
      |                                       ^~~~~~~~~~
....../gImageReader/qt/src/hocr/HOCRPdfExporter.cc:632:35: error: no match for ‘operator=’ (operand types are ‘PoDoFo::PdfColorSpacePtr’ {aka ‘std::shared_ptr<const PoDoFo::PdfColorSpace>’} and ‘PoDoFo::PdfColorSpace’)
  632 |                 info.ColorSpace = colorSpace;
      |                                   ^~~~~~~~~~

Shouldn't be hard to fix the bug... But here toooooo late, so tired... Waiting for your update... Thank you...

manisandro commented 8 months ago

Current master should build fine against podofo 0.10.x.