[gdal-dev] Handling pdfium build / integration
Brad Hards
bradh at frogmouth.net
Sat Sep 19 04:05:08 PDT 2015
On Fri, 18 Sep 2015 02:19:59 PM you wrote:
> The symbol is indeed hidden:
> $ objdump -tC ../install/lib/pdfium/libfpdfapi.a | grep
> CFDF_Document::CreateNewDoc 0000000000000000 g F
> .text._ZN13CFDF_Document12CreateNewDocEv 00000000000000ac .hidden
> CFDF_Document::CreateNewDoc()
>
> But it is not directly used by the PDF driver, so it is strange that the
> linker complains about that.
Concur. It does though, even with a Release build.
> You can probably try the following workaround to disable hidden symbols when
> building pdfium (in pdfium directory). I had to use that when I worked with
> a debug build as otherwise debugging didn't work very well.
>
> diff --git a/build/standalone.gypi b/build/standalone.gypi
> index ecf849b..3407a56 100644
> --- a/build/standalone.gypi
> +++ b/build/standalone.gypi
> @@ -151,7 +151,7 @@
> '-Wno-unused-parameter',
> '-pthread',
> '-fno-exceptions',
> - '-fvisibility=hidden',
> + #'-fvisibility=hidden',
> '-fPIC',
> ],
> 'cflags_cc': [
That worked for me.
I'll spend a little more time on trying to work out what is going on, but not
sure how that will go.
In any case, thanks very much for the support on this - much appreciated.
Brad
More information about the gdal-dev
mailing list