RSS/Atom feed Twitter
Site is read-only, email is disabled

Poppler-glib for Windows build

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

7 of 7 messages available
Toggle history

Please log in to manage your subscriptions.

Poppler-glib for Windows build programmer_ceds 07 Jan 18:42
  Poppler-glib for Windows build Jehan Pagès 12 Jan 18:26
   Poppler-glib for Windows build programmer_ceds 13 Jan 10:43
    Poppler-glib for Windows build Jehan Pagès 13 Jan 23:29
     Poppler-glib for Windows build programmer_ceds 14 Jan 17:13
      Poppler-glib for Windows build programmer_ceds 14 Jan 17:40
       Poppler-glib for Windows build programmer_ceds 15 Jan 12:03
2018-01-07 18:42:38 UTC (over 6 years ago)
postings
121

Poppler-glib for Windows build

I am trying to build the version of GIMP that requires poppler-glib.

I have tried cloning from git

git clone https://github.com/danigm/poppler.git

I have then changed to the poppler folder and run ./autogen.sh --prefix=$PREFIX

then ./configure --prefix=$PREFIX

When I run make I get errors of the form that cairo_pattern_mesh_set_control_point is undefined and a suggestion that cairo_mesh_pattern_set_control_point be used instead.

Any suggestions as to what I am doing wrong?

Also any information on satisfying the poppler-data requirement.

I have sorted the other recent requirements for an updated glib and mypaint-brushes but am struggling here.

Jehan Pagès
2018-01-12 18:26:28 UTC (over 6 years ago)

Poppler-glib for Windows build

Hello,

On Sun, Jan 7, 2018 at 7:42 PM, programmer_ceds wrote:

I am trying to build the version of GIMP that requires poppler-glib.

I have tried cloning from git

git clone https://github.com/danigm/poppler.git

I have then changed to the poppler folder and run ./autogen.sh --prefix=$PREFIX

then ./configure --prefix=$PREFIX

When I run make I get errors of the form that cairo_pattern_mesh_set_control_point is undefined and a suggestion that cairo_mesh_pattern_set_control_point be used instead.

Any suggestions as to what I am doing wrong?

Well this is probably the wrong place to ask about *building poppler*. For this, you should ask to poppler mailing list/bug tracker/whatever they use.
Maybe they have some bug on their HEAD, I guess.

This said, why do you even build it? Don't you have at least poppler 0.44.0 and poppler-data 0.4.7 in your distribution (assuming you use Linux)?
These are like 2 years old. Any Linux distribution should already have these versions or you are using a very outdated distribution.

Jehan

Also any information on satisfying the poppler-data requirement.

I have sorted the other recent requirements for an updated glib and mypaint-brushes but am struggling here.

-- programmer_ceds (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list

ZeMarmot open animation film
http://film.zemarmot.net
Liberapay: https://liberapay.com/ZeMarmot/
Patreon: https://patreon.com/zemarmot
Tipeee: https://www.tipeee.com/zemarmot
2018-01-13 10:43:40 UTC (over 6 years ago)
postings
121

Poppler-glib for Windows build

Thanks for your reply Jehan,

As per the title of the thread I am working with Windows (using msys2 and mingw64). I know that other people build under Windows and was hoping that one of them might be able to point me in the right direction or post a work-around; I assumed that I was making a mistake on the basis that I assumed that files posted on git would at least compile!

Richard

Hello,
Well this is probably the wrong place to ask about *building poppler*. For this, you should ask to poppler mailing list/bug tracker/whatever they use.
Maybe they have some bug on their HEAD, I guess.

This said, why do you even build it? Don't you have at least poppler 0.44.0 and poppler-data 0.4.7 in your distribution (assuming you use Linux)?
These are like 2 years old. Any Linux distribution should already have these versions or you are using a very outdated distribution.

Jehan

Jehan Pagès
2018-01-13 23:29:21 UTC (over 6 years ago)

Poppler-glib for Windows build

Hello,

On Sat, Jan 13, 2018 at 11:43 AM, programmer_ceds wrote:

Thanks for your reply Jehan,

As per the title of the thread I am working with Windows (using msys2 and mingw64). I know that other people build under Windows and was hoping that one of them might be able to point me in the right direction or post a work-around; I assumed that I was making a mistake on the basis that I assumed that files posted on git would at least compile!

As a general rule, unless I want to fix something in a dependency, I work with the last stable build. Then if there is a problem and I want the easy way out (i.e. still not having to fix the dependency), I would just go back in history, but still keep to stable builds. Also to compile for Windows, I use the tool I built, but this is to cross-compile from Linux to Windows, and for most dependencies, I just install them in a single command from pre-built packages. So I can't really help you. Sorry. Working *on* Windows is just not what I do. Maybe others will be able to help.

This said, maybe you can try to use the same pre-built package for Windows (I use the ones from OpenSUSE repositories). Just uncompress them and use the files in it.

Jehan

Richard

Hello,
Well this is probably the wrong place to ask about *building poppler*. For this, you should ask to poppler mailing list/bug tracker/whatever they use.
Maybe they have some bug on their HEAD, I guess.

This said, why do you even build it? Don't you have at least poppler 0.44.0 and poppler-data 0.4.7 in your distribution (assuming you use Linux)?
These are like 2 years old. Any Linux distribution should already have these versions or you are using a very outdated distribution.

Jehan

--
programmer_ceds (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list

ZeMarmot open animation film
http://film.zemarmot.net
Liberapay: https://liberapay.com/ZeMarmot/
Patreon: https://patreon.com/zemarmot
Tipeee: https://www.tipeee.com/zemarmot
2018-01-14 17:13:48 UTC (over 6 years ago)
postings
121

Poppler-glib for Windows build

Hi Jehan,

I managed to resolve the dependency on poppler-glib but not poppler-data as yet. In the meantime I updated the packages using pacman to get the recommended version of gtk+-2.0 (V2.24.32 instead of V2.24.31) - big mistake - the dll file is now 3.8 kB instead of the version 2.24.31 file which was 5.7 kB - trying to build GIMP with the V2.24.32 version throws errors. Whilst I have a copy of the V2.24.31 dll I can't find the relevant place to alter the version of the package that the system thinks it has installed. So for the time being I'm stuck.

If it helps anyone else, the steps I followed to get poppler-glib installed (at least to the point where the GIMP build doesn't complain about a missing dependency) were as follows:

Download file poppler-0.44.0.tar.xz from https://poppler.freedesktop.org/releases.html

Extract the contents of the downloaded file and move the contents of the V0.44 folder into folder poppler (rather than leaving them in a sub-folder)

cd poppler

aclocal

automake

./configure --prefix=$PREFIX

make -j4

make install - j4

Hello,
As a general rule, unless I want to fix something in a dependency, I work with the last stable build. Then if there is a problem and I want the easy way out (i.e. still not having to fix the dependency), I would just go back in history, but still keep to stable builds. Also to compile for Windows, I use the tool I built, but this is to cross-compile from Linux to Windows, and for most dependencies, I just install them in a single command from pre-built packages. So I can't really help you. Sorry. Working *on* Windows is just not what I do. Maybe others will be able to help.

This said, maybe you can try to use the same pre-built package for Windows (I use the ones from OpenSUSE repositories). Just uncompress them and use the files in it.

Jehan

2018-01-14 17:40:33 UTC (over 6 years ago)
postings
121

Poppler-glib for Windows build

OK, I finally found the way to make the package manager think that it had V2.24.31 - files gtk+-2.0.pc and gtk+-win32-2.0.pc in folder msys64\mingw64\lib\pkgconfig had to be edited.

That just leaves the problem of how to get poppler-data recognised

Hi Jehan,

I managed to resolve the dependency on poppler-glib but not poppler-data as yet. In the meantime I updated the packages using pacman to get the recommended version of gtk+-2.0 (V2.24.32 instead of V2.24.31) - big mistake - the dll file is now 3.8 kB instead of the version 2.24.31 file which was 5.7 kB - trying to build GIMP with the V2.24.32 version throws errors. Whilst I have a copy of the V2.24.31 dll I can't find the relevant place to alter the version of the package that the system thinks it has installed. So for the time being I'm stuck.

If it helps anyone else, the steps I followed to get poppler-glib installed (at least to the point where the GIMP build doesn't complain about a missing dependency) were as follows:

Download file poppler-0.44.0.tar.xz from https://poppler.freedesktop.org/releases.html

Extract the contents of the downloaded file and move the contents of the V0.44 folder into folder poppler (rather than leaving them in a sub-folder)

cd poppler

aclocal

automake

./configure --prefix=$PREFIX

make -j4

make install - j4

2018-01-15 12:03:24 UTC (over 6 years ago)
postings
121

Poppler-glib for Windows build

In case anyone else has similar problems I managed to get poppler-data recognised using the following steps:

Download file poppler-data-0.4.8.tar.gz from https://poppler.freedesktop.org/

Unzip the file into folder poppler-data

Move the unzipped files back into poppler-data

make install -j4 $PREFIX

Then copy msys64\usr\local\share\pkgconfig\poppler-data.pc to msys64\home\\prefix\lib\pkgconfig\poppler-data.pc

GIMP then build successfully.

There were two fatal errors when I ran GIMP for the first time relating to not finding entry points in libgobject-2.0-0.dll and libgmodule-2.0-0.dll. Copying later (although considerably smaller files) from Partha's 2.9.8/9 installation resolved the problem (thanks Partha - I hope you don't mind)

I have successfully used to GIMP to open a password protected PDF file (one page only) so I am assuming that the poppler code is functional.

OK, I finally found the way to make the package manager think that it had V2.24.31 - files gtk+-2.0.pc and gtk+-win32-2.0.pc in folder msys64\mingw64\lib\pkgconfig had to be edited.

That just leaves the problem of how to get poppler-data recognised