Re: [poppler] Build fail on Ubuntu 14.04

2016-09-15 Thread Alex Korobkin
That worked, thanks!

On Thu, Sep 15, 2016 at 4:30 PM, Jason Crain  wrote:

> On 2016-09-15, Alex Korobkin  wrote:
> > poppler-document.cc:1521:25: error: invalid conversion from 'int' to
> > 'GParamFlags' [-fpermissive]
> > G_PARAM_READWRITE));
> ...
> > Does it need a newer version of glib-2.0 since 0.47 release? Or am I
> > missing something other library or reference?
>
> It needs a newer version of glib.  See https://bugs.freedesktop.org/97432.
> Old glib has G_PARAM_READWRITE as a #define and C++ doesn't like that.
>



-- 
-Alex
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


Re: [poppler] Build fail on Ubuntu 14.04

2016-09-15 Thread Jason Crain
On 2016-09-15, Alex Korobkin  wrote:
> poppler-document.cc:1521:25: error: invalid conversion from 'int' to
> 'GParamFlags' [-fpermissive]
> G_PARAM_READWRITE));
...
> Does it need a newer version of glib-2.0 since 0.47 release? Or am I
> missing something other library or reference?

It needs a newer version of glib.  See https://bugs.freedesktop.org/97432.
Old glib has G_PARAM_READWRITE as a #define and C++ doesn't like that.
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler


[poppler] Build fail on Ubuntu 14.04

2016-09-15 Thread Alex Korobkin
Hi all,

I'm trying to build poppler 0.47 on Ubuntu 14.04, and it fails with this
error:

poppler-document.cc: In function 'void
poppler_document_class_init(PopplerDocumentClass*)':
poppler-document.cc:1521:25: error: invalid conversion from 'int' to
'GParamFlags' [-fpermissive]
G_PARAM_READWRITE));
 ^
In file included from /usr/include/glib-2.0/glib-object.h:28:0,
 from poppler.h:22,
 from poppler-document.cc:41:
/usr/include/glib-2.0/gobject/gparamspecs.h:1085:13: error:   initializing
argument 5 of 'GParamSpec* g_param_spec_string(const gchar*, const gchar*,
const gchar*, const gchar*, GParamFlags)' [-fpermissive]
 GParamSpec* g_param_spec_string  (const gchar  *name,
 ^
poppler-document.cc:1573:25: error: invalid conversion from 'int' to
'GParamFlags' [-fpermissive]


Does it need a newer version of glib-2.0 since 0.47 release? Or am I
missing something other library or reference?

Longer output:
http://pastebin.com/wBdmL7GV

-- 
-Alex
___
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler