node-imagemagick-native
node-imagemagick-native copied to clipboard
Build error with imagemagick 6.9.5.10
I am having the following build error on Arch Linux with node 6.3.0 and imagemagick 6.9.5.10
CXX(target) Release/obj.target/imagemagick/src/imagemagick.o
In file included from ../../nan/nan.h:196:0,
from ../src/imagemagick.h:5,
from ../src/imagemagick.cc:9:
../../nan/nan_new.h: In instantiation of ‘typename Nan::imp::Factory<T>::return_t Nan::New(A0) [with T = v8::Integer; A0 = float; typename Nan::imp::Factory<T>::return_t = v8::Local<v8::Integer>]’:
../src/imagemagick.cc:810:93: required from here
../../nan/nan_new.h:208:30: error: call of overloaded ‘New(float&)’ is ambiguous
return imp::Factory<T>::New(arg0);
~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:196,
from ../src/imagemagick.h:5,
from ../src/imagemagick.cc:9:
../../nan/nan_implementation_12_inl.h:162:1: note: candidate: static Nan::imp::IntegerFactory<T>::return_t Nan::imp::IntegerFactory<T>::New(int32_t) [with T = v8::Integer; Nan::imp::IntegerFactory<T>::return_t = v8::Local<v8::Integer>; int32_t = int]
IntegerFactory<T>::New(int32_t value) {
^~~~~~~~~~~~~~~~~
In file included from ../../nan/nan.h:196:0,
from ../src/imagemagick.h:5,
from ../src/imagemagick.cc:9:
../../nan/nan_new.h:114:26: note: candidate: static Nan::imp::IntegerFactory<T>::return_t Nan::imp::IntegerFactory<T>::New(uint32_t) [with T = v8::Integer; Nan::imp::IntegerFactory<T>::return_t = v8::Local<v8::Integer>; uint32_t = unsigned int]
static inline return_t New(uint32_t value);
Any suggestions?
Thanks in advance
Same issue with node 7.0.0 and IM 6.9.6.2 (on Arch)
Will update if I find a resolution, but for now, just: +1