-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fails to build against Podofo 0.10.3 (on MinGW) #9976
Comments
The issue seems to be from podofo |
It's a gdal issue. in frmts/pdf/pdfdataset.cpp file gdal_pdf.h was included first before other headers which redefine GetObject (Which is used in pdfdataset.cpp). |
Building against poppler 24.05.0 fails with gcc because of c++20.
related discussion in podofo repository: podofo/podofo#152. also see linked commits/PRs for more info |
That's a bad idea. I would recommend against using PoDoFo backend which has no rendering capabilities and will result in a driver without raster capabilities. What is the issue exactly with Poppler? |
I got this type of error |
It's a CMake issue https://gitlab.kitware.com/cmake/cmake/-/issues/25974 The issue is about podofo. |
What is the bug?
Fails to build against podofo 0.10.3
Most probably bacause of 7b526b1
In https://github.com/OSGeo/gdal/blob/master/frmts/pdf/pdfsdk_headers.h
Should be put right before
#include "podofo.h"
No other header could be included between them.
with gcc 14.1.0
with clang 18.1.4
Steps to reproduce the issue
Install Podofo 0.10.3 and build gdal against it
Versions and provenance
Windows 2022 Server (GitHub)
MSYS2 Platform in both UCRT64 and CLANG64 environments
3.9.0
Additional context
I am trying to build gdal against podofo instead of poppler, because It no longer builds with 24.05.0 (Even after backporting c++20 patches)
The text was updated successfully, but these errors were encountered: