Incompatible with poppler-glib 8?
Opened this issue · 1 comments
chriselrod commented
> ls /usr/lib64 | grep poppler
libpoppler-cpp.so
libpoppler-cpp.so.0
libpoppler-cpp.so.0.7.0
libpoppler-glib.so
libpoppler-glib.so.8
libpoppler-glib.so.8.13.0
libpoppler-qt5.so
libpoppler-qt5.so.1
libpoppler-qt5.so.1.19.0
libpoppler.so
libpoppler.so.89
libpoppler.so.89.0.0
> echo $LD_LIBRARY_PATH
/usr/lib64 /opt/intel/compilers_and_libraries_2019.4.243/linux/compiler/lib/intel64_lin /opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/libfabric/lib /opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/lib/release /opt/intel/compilers_and_libraries_2019.4.243/linux/mpi/intel64/lib /opt/intel/compilers_and_libraries_2019.4.243/linux/ipp/lib/intel64 /opt/intel/compilers_and_libraries_2019.4.243/linux/compiler/lib/intel64_lin /opt/intel/compilers_and_libraries_2019.4.243/linux/mkl/lib/intel64_lin /opt/intel/compilers_and_libraries_2019.4.243/linux/tbb/lib/intel64/gcc4.7 /opt/intel/compilers_and_libraries_2019.4.243/linux/tbb/lib/intel64/gcc4.7 /opt/intel/compilers_and_libraries_2019.4.243/linux/daal/lib/intel64_lin /opt/intel/compilers_and_libraries_2019.4.243/linux/daal/../tbb/lib/intel64_lin/gcc4.4
> echo $PKG_CONFIG_PATH
/usr/lib64 /opt/intel/compilers_and_libraries_2019.4.243/linux/mkl/bin/pkgconfig
However, configuring fails with
configure: error: Package requirements (poppler-glib >= 0.5.4) were not met:
No package 'poppler-glib' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables POPPLERGLIB_CFLAGS
and POPPLERGLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
The distro I'm using doesn't provide pdf2svg, a dependency for PGFPlots.jl, so I figured I'd try building from source.
dawbarton commented
Do you have the development libraries installed? On Ubuntu I need to install libcairo-dev
and libpoppler-glib-dev
then the configure/make should work.
Alternatively, try
gcc `pkg-config --cflags cairo` `pkg-config --cflags poppler-glib` pdf2svg.c `pkg-config --libs cairo` `pkg-config --libs poppler-glib` -o pdf2svg
to build it directly.