Open vikrantpogula opened 9 years ago
This seems to be the issue with gyp (nw-gyp or node-gyp). Could you please update build package and retry? Could you please paste the full log? Sorry for late reply.
I got the same error:
node-gyp rebuild --msvs_version=2013
C:\Users\Administrator.PC-20130121VJYE\Desktop\chat-websocket-master\node_module s\pdfium>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\ node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp: name 'os_posix' is not defined while evaluating condition 'os_posix==1' in
third_party\pdfium\pdfium.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
node-gyp rebuild
C:\Users\Administrator.PC-20130121VJYE\Desktop\chat-websocket-master\node_module
s\pdfium>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\
node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:337:16)
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 Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator.PC-20130121VJYE\Desktop\chat-websocket-maste
r\node_modules\pdfium
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! pdfium@0.0.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pdfium@0.0.1 install script.
npm ERR! This is most likely a problem with the pdfium package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pdfium
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "C:\Users\Administrator.PC- 20130121VJYE\Desktop\node-pdfium-master" "--msvs_version=2013" npm ERR! cwd C:\Users\Administrator.PC-20130121VJYE\Desktop\chat-websocket-maste r npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\Administrator.PC-20130121VJYE\Desktop\chat-websocket-maste r\npm-debug.log npm ERR! not ok code 0
@tojocky @litehot i have been able to build this using VS 2013 (--msvs_version=2013), now. I had installed VS2013 ultimate. The synchronous API seems to be working fine. Is there a way to control the quality of the rendered image. Its just very blurry now even for basic <h2>
tags with text.
When printing in regards to windows there are still a few minor issues. Some drivers take in only RAW/TEXT
. BMP seems to be supported in most places, but bitmaps are very large !
@tojocky please feel free to close this issue because building seems to be working fine :+1: thanks for the great work
Could you please provide more details about your test? What printer did you use? Thanks for testing.
raises error like below during installation
Using MSVS2012