blackbeam / poppler-simple

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

Compilation Error while installing poppler-simple to OSX Mavericks #2

Closed sbrinkmann closed 10 years ago

sbrinkmann commented 10 years ago

When I try to install poppler-simple I get the following compilation error. Before I was able to get to this step I've installed the latest version of xcode

$ npm install poppler-simple
npm http GET https://registry.npmjs.org/poppler-simple
npm http 304 https://registry.npmjs.org/poppler-simple

> poppler-simple@0.1.4 preinstall /Users/sbrinkmann/Projects/dachshund/apps/node_modules/poppler-simple
> (node-gyp configure) || (exit 0)

> poppler-simple@0.1.4 install /Users/sbrinkmann/Projects/dachshund/apps/node_modules/poppler-simple
> (node-gyp rebuild) || (exit 0)

  CXX(target) Release/obj.target/poppler/src/poppler.o
In file included from ../src/poppler.cc:2:
../src/NodePopplerDocument.h:4:10: fatal error: 'GlobalParams.h' file not found
#include <GlobalParams.h>
         ^
1 error generated.
make: *** [Release/obj.target/poppler/src/poppler.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sbrinkmann/Projects/dachshund/apps/node_modules/poppler-simple
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
blackbeam commented 10 years ago

You should install version 0.1.5 from npm (was just pushed). Related issue: https://github.com/TooTallNate/node-gyp/issues/152 And anoter one: http://stackoverflow.com/questions/10252422/can-i-create-a-memory-mapped-file-in-c-objective-c-on-ios