openjp2 is not linked into libpoppler.a
I am using libvips via sharp, and have been trying to add pdf support by recompiling libvips with poppler.
This seemed to work well (ie I was able to process some pdf files), until I received the following for a particular pdf file at run time:
nodejs: symbol lookup error: /[...]/node_modules/sharp/build/Release/../../vendor/8.10.5/lib/libvips.so.42: undefined symbol: opj_stream_default_create
opj_stream_default_create is defined by the openjpeg2 library I believe, and does not appear to have been linked into libpoppler.a
The build script I am using is a modified version of the sharp-libvips one, where openjpeg and poppler are compiled statically. Main modifications are highlighted here.
Any idea of what the problem with poppler is ? or (maybe more likely) with my build script :-) ?
Reported at libvips as well.