[poppler] Questions about building poppler-utils 0.50.0 rpm for CentOS 7

William Bader williambader at hotmail.com
Thu Jan 26 04:18:54 UTC 2017


> it seems like this binary expect poppler-data in /usr/local/share/poppler, but I installed poppler-data from rpm and it is locate in /usr/share/poppler.

conf.h (which is generated by configure) has #define POPPLER_DATADIR "/usr/local/share/poppler"


configure runs 'pkg-config --exists --print-errors poppler-data'


If it finds something, uses it, otherwise it sets POPPLER_DATADIR to $datarootdir/poppler


You can set datarootdir with the configure --datarootdir=DIR option, for example configure --datarootdir=/usr/share

Regards, William

________________________________
From: Min Su <min.su at veeva.com>
Sent: Wednesday, January 25, 2017 6:15 PM
To: William Bader
Cc: poppler at lists.freedesktop.org
Subject: Re: [poppler] Questions about building poppler-utils 0.50.0 rpm for CentOS 7

Thanks William,

What I need is only pdftoppm.
I built poppler and get pdftoppm in /usr/local/bin, but it seems like this binary expect poppler-data in /usr/local/share/poppler, but I installed poppler-data from rpm and it is locate in /usr/share/poppler.
If I don't want to create symlink /usr/local/share/poppler -> /usr/share/poppler, what should I do? Add prefix when config poppler?

Thanks,

Min

On Thu, Jan 19, 2017 at 8:49 PM, William Bader <williambader at hotmail.com<mailto:williambader at hotmail.com>> wrote:

I think that you will eventually have problems applying CentOS system updates if you replace the poppler package in the CentOS distribution with your package. If you need only a few of the poppler utilities and do not need libpoppler, you might be better off with a source build using configure --enable-static --disable-shared ; make, and then copying the utilities that you need to /usr/local/bin. Regards, William


________________________________
From: poppler <poppler-bounces at lists.freedesktop.org<mailto:poppler-bounces at lists.freedesktop.org>> on behalf of Min Su <min.su at veeva.com<mailto:min.su at veeva.com>>
Sent: Thursday, January 19, 2017 8:05 PM
To: poppler at lists.freedesktop.org<mailto:poppler at lists.freedesktop.org>
Subject: [poppler] Questions about building poppler-utils 0.50.0 rpm for CentOS 7

Hi all,

I need to install poppler 0.50.0 on my CentOS Linux release 7.2.1511.

I took the Fedora SRPM, rebuild it on my system and got poppler-0.50.0-1.el7.centos.x86_64.rpm and poppler-utils-0.50.0-1.el7.centos.x86_64.rpm.

After install these rpms, I got the binary I need and it seems like it works well. But when I check the dependency of this binary, I found it has dynamic references to some libraries in my system, for example: fontconfig, the fontconfig on system is 2.10 but poppler 0.50.0 requires at least fontconfig 2.12.

Almost all dynamic dependencies on CentOS is very "old", and I don't want to upgrade all related libraries. What should I do now? Rebuild rpm with static reference? If so, how do I do that?

Is it risky to have poppler 0.50.0 with all these old references?

Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20170126/a2bb8cc4/attachment.html>


More information about the poppler mailing list