Skip to content
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

Incompatible with poppler-glib 8? #27

Open
chriselrod opened this issue Jul 3, 2019 · 1 comment
Open

Incompatible with poppler-glib 8? #27

chriselrod opened this issue Jul 3, 2019 · 1 comment

Comments

@chriselrod
Copy link

> 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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants