node-webcl
node-webcl copied to clipboard
compilation for Mac OS X broken
I'm getting an error when compiling:
Checking for library OpenCL : not found /usr/local/lib/node_modules/node-webcl/wscript:34: error: the configuration failed (see '/usr/local/lib/node_modules/node-webcl/build/config.log')
config.log ends in:
Checking for library OpenCL ==>
int main() { return 0; }
<== [1/2] ESC[32mcxx: build/.conf_check_0/test.cpp -> build/.conf_check_0/testbuild/Release/test_1.o ESC[0m['/Developer/usr/bin/g++', '-g', '../test.cpp', '-c', '-o', 'Release/test_1.o'] [2/2] ESC[33mcxx_link: build/.conf_check_0/testbuild/Release/test_1.o -> build/.conf_check_0/testbuild/Release/testprog ESC[0mld: library not found for -lOpenCL collect2: ld returned 1 exit status ['/Developer/usr/bin/g++', 'Release/test_1.o', '-o', '/usr/local/lib/node_modules/node-webcl/build/.conf_check_0/testbuild/Release/testprog', '-lOpenCL'] command returned 'Build failed: -> task failed (err #1): \n\t{task: cxx_link test_1.o -> testprog}'not found
& FWIW node -v v0.6.1
System Version: Mac OS X 10.7.2 (11C74)
I don't own a mac, so I can't address this issue. If someone fixes it, please send me a pull request.
OK, I'm on Leopard, and with a few changes in the Makefile (setting clang instead of g++), I've gotten up to:
clang: error: invalid deployment target for -stdlib=libc++ (requires Mac OS X 10.7 or later)
(I had to replace -std=gnu++0x
with -std=c++0x -stdlib=libc++
, otherwise it wasn't finding <cstdint>
.
Bah! I guess it's Linux in emulator then.