blackbeam / poppler-simple

A simple javascript interface to poppler library
Apache License 2.0
37 stars 14 forks source link

Install on OSX #25

Closed msageryd closed 5 years ago

msageryd commented 5 years ago

I'm having trouble building poppler-simple on OSX (10.14, Mojave)

Not sure what's essential information from the build log. Here is the first error:

../src/NodePopplerDocument.cc:34:12: error: no member named 'append' in 'GooList'
    pages->append((void *)p);
    ~~~~~  ^

This is what I've done so far:

brew install poppler brew install python2 brev install pkg-config npm install poppler-simple

msageryd commented 5 years ago

I tried to upgrade from Poppler 0.70 to 0.71, and got a different build error.

../src/NodePopplerPage.h:158:31: error: unknown type name 'GBool'
        TextPage *getTextPage(GBool rawOrder) {
blackbeam commented 5 years ago

Hi.

Looks like GooList::append was removed in popper 0.70.0. Same for GBool in 0.71.0.

I will look into it, so please downgrade to 0.69 until then.

msageryd commented 5 years ago

Thanks for a speedy reply!

It seems like I have to build poppler from source to be able to install an older version. Or do you know of any other means to get hold of older versions?

blackbeam commented 5 years ago

Fixed in v0.5.0