c++ - "initializer_list" file not found -
trying install phash-image node error:
> phash-image@3.1.0 install /users/jong/workspace/mgmtio/phash-image > node-gyp rebuild cxx(target) release/obj.target/phash/phash.o in file included ../phash.cpp:4: in file included /usr/local/cellar/phash/0.9.6_1/include/phash.h:50: /usr/local/include/cimg.h:160:10: fatal error: 'initializer_list' file not found #include <initializer_list> ^ 1 error generated. make: *** [release/obj.target/phash/phash.o] error 1
how fix this? on os x 10.10.3 , installed phash homebrew
found out need add these flags:
[ '-mmacosx-version-min=10.7', '<!@(pkg-config --cflags phash)', '-std=c++11', '-stdlib=libc++' ]
Comments
Post a Comment