Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install png fails via png fails with the following output #12

Open
vicapow opened this issue Nov 10, 2011 · 10 comments
Open

npm install png fails via png fails with the following output #12

vicapow opened this issue Nov 10, 2011 · 10 comments

Comments

@vicapow
Copy link

vicapow commented Nov 10, 2011

[email protected] install /Users/victorpowell/Documents/examples/node/png/node_modules/png
node-waf configure build

Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /opt/node
Checking for library png : yes
'configure' finished successfully (0.536s)
Waf: Entering directory /Users/victorpowell/Documents/examples/node/png/node_modules/png/build' [1/8] cxx: src/common.cpp -> build/Release/src/common_1.o [2/8] cxx: src/png_encoder.cpp -> build/Release/src/png_encoder_1.o [3/8] cxx: src/png.cpp -> build/Release/src/png_1.o [4/8] cxx: src/fixed_png_stack.cpp -> build/Release/src/fixed_png_stack_1.o ../src/png.cpp: In static member function ‘static v8::Handle<v8::Value> Png::PngEncodeAsync(const v8::Arguments&)’: ../src/png.cpp:206: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’ ../src/png.cpp:206: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’ ../src/fixed_png_stack.cpp: In static member function ‘static v8::Handle<v8::Value> FixedPngStack::PngEncodeAsync(const v8::Arguments&)’: ../src/fixed_png_stack.cpp:263: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’ ../src/fixed_png_stack.cpp:263: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’ Waf: Leaving directory/Users/victorpowell/Documents/examples/node/png/node_modules/png/build'
Build failed:
-> task failed (err #1):
{task: cxx png.cpp -> png_1.o}
-> task failed (err #1):
{task: cxx fixed_png_stack.cpp -> fixed_png_stack_1.o}
npm ERR! error installing [email protected] Error: [email protected] install: node-waf configure build
npm ERR! error installing [email protected] sh "-c" "node-waf configure build" failed with 1
npm ERR! error installing [email protected] at ChildProcess. (/opt/node/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:70:17)
npm ERR! error installing [email protected] at maybeExit (child_process.js:336:16)
npm ERR! error installing [email protected] at Process.onexit (child_process.js:371:5)
npm ERR! [email protected] install: node-waf configure build
npm ERR! sh "-c" "node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the png package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls png
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/opt/node/bin/npm" "install" "png"
npm ERR! cwd /Users/victorpowell/Documents/examples/node/png
npm ERR! node -v v0.5.10
npm ERR! npm -v 1.0.103
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/victorpowell/Documents/examples/node/png/npm-debug.log
npm not ok
victorpowell:png victorpowell$ npm owner ls png
pkrumins [email protected]

@pkrumins
Copy link
Owner

I am not sure why that is happening

@miikka
Copy link
Contributor

miikka commented Nov 20, 2011

I'm having the same issue. I changed the return type of function EIO_PngEncode in all the three implementations to void. This made it compile but I have no idea if that is a sensible thing to do.

@pkrumins
Copy link
Owner

Which node version? We use node 0.4 in Browserling and it all works perfectly.

@miikka
Copy link
Contributor

miikka commented Nov 21, 2011

I'm running node 0.6.1, on OS X Lion. The C++ compiler is i686-apple-darwin11-llvm-g++-4.2 version 4.2.1, the default compiler that comes with Xcode 4.2, if that matters.

@pkrumins
Copy link
Owner

It doesn't work on node 0.6.1. We use node 0.4 at Browserling. There are no plans to migrate to 0.6 any time soon, so I will not be fixing this issue.

@rajanram
Copy link

rajanram commented Dec 6, 2011

I am running 0.4.11 I am having the same Issue and I also trying to use macports for libpng any guide on that too?

@harcek
Copy link

harcek commented Dec 13, 2011

hi @rajanram, do you have the exact errors as mentioned in the issue or they are more like those mentioned here #3. The thing is that the NPM expects png libs (those installed as libpng via mac ports) in different paths as they are deployed - at least it was my case. And then, I had to build it manually via sudo node-waf configure build from the dir of the module. There is more written down within comments of issue#3.

@pkrumins
Copy link
Owner

Someone just patched node-png to work on node 0.6.x!

@rajanram
Copy link

Oh.. Nice thanks very much

Sent from my iPhone

On Dec 15, 2011, at 10:11 AM, Peteris [email protected] wrote:

Someone just patched node-png to work on node 0.6.x!


Reply to this email directly or view it on GitHub:
#12 (comment)

@petermilan
Copy link

Works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants