node-webcl icon indicating copy to clipboard operation
node-webcl copied to clipboard

Errors building on Linux

Open codedivine opened this issue 12 years ago • 1 comments

Trying to install on Linux (Ubuntu 11.04 AMD64). Node version 0.6.17 (downloaded from node website).

Did "npm install webcl".

Got the following errors:

make: Entering directory `/home/rahul/node_modules/webcl/src/wrapper/src'
g++ -MM -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I -I../include -fPIC -pipe -Wall -std=gnu++0x samplerwrapper.cpp > .deps/samplerwrapper.dep samplerwrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory compilation terminated.

Suggestions?

codedivine avatar May 13 '12 20:05 codedivine

Similar error here, on same platform (AMD64, Ubuntu 11.04). This is on Node 0.8.3.

Results of npm install:

npm http GET https://registry.npmjs.org/webcl
npm http 304 https://registry.npmjs.org/webcl

> [email protected] install /home/vox/projects/animus/node_modules/webcl
> node-waf clean ; node-waf configure build

Nothing to clean (project not configured)
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 /usr/local 
Checking for library OpenCL              : yes 
'configure' finished successfully (0.148s)
Waf: Entering directory `/home/vox/projects/animus/node_modules/webcl/build'
[ 1/12] wrapper: src/wrapper/src/programwrapper.cpp src/wrapper/src/clwrappercommon.cpp src/wrapper/src/platformwrapper.cpp src/wrapper/src/clwrappercommon_internal.h src/wrapper/src/Makefile src/wrapper/src/commandqueuewrapper.cpp src/wrapper/src/memoryobjectwrapper.cpp src/wrapper/src/kernelwrapper.cpp src/wrapper/src/eventwrapper.cpp src/wrapper/src/devicewrapper.cpp src/wrapper/src/contextwrapper.cpp src/wrapper/src/samplerwrapper.cpp src/wrapper/include/instance_registry.h src/wrapper/include/platformwrapper.h src/wrapper/include/commandqueuewrapper.h src/wrapper/include/programwrapper.h src/wrapper/include/contextwrapper.h src/wrapper/include/eventwrapper.h src/wrapper/include/clwrappercommon.h src/wrapper/include/samplerwrapper.h src/wrapper/include/kernelwrapper.h src/wrapper/include/memoryobjectwrapper.h src/wrapper/include/clwrappertypes.h src/wrapper/include/devicewrapper.h
make: Entering directory `/home/vox/projects/animus/node_modules/webcl/src/wrapper/src'
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     samplerwrapper.cpp > .deps/samplerwrapper.dep
samplerwrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     programwrapper.cpp > .deps/programwrapper.dep
programwrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     platformwrapper.cpp > .deps/platformwrapper.dep
platformwrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     memoryobjectwrapper.cpp > .deps/memoryobjectwrapper.dep
memoryobjectwrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     kernelwrapper.cpp > .deps/kernelwrapper.dep
kernelwrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     eventwrapper.cpp > .deps/eventwrapper.dep
eventwrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     devicewrapper.cpp > .deps/devicewrapper.dep
devicewrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     contextwrapper.cpp > .deps/contextwrapper.dep
contextwrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     commandqueuewrapper.cpp > .deps/commandqueuewrapper.dep
commandqueuewrapper.cpp:35:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ -MM  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     clwrappercommon.cpp > .deps/clwrappercommon.dep
clwrappercommon.cpp:41:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
g++ clwrappercommon.cpp  -DCL_WRAPPER_CL_VERSION_SUPPORT=110 -I  -I../include  -fPIC -pipe -Wall -std=gnu++0x     -c -o .build/clwrappercommon.o
clwrappercommon.cpp:41:29: fatal error: clwrappercommon.h: No such file or directory
compilation terminated.
make: *** [.build/clwrappercommon.o] Error 1
make: Leaving directory `/home/vox/projects/animus/node_modules/webcl/src/wrapper/src'
Waf: Leaving directory `/home/vox/projects/animus/node_modules/webcl/build'
Build failed:  -> task failed (err #2): 
    {task: wrapper programwrapper.cpp,clwrappercommon.cpp,platformwrapper.cpp,clwrappercommon_internal.h,Makefile,commandqueuewrapper.cpp,memoryobjectwrapper.cpp,kernelwrapper.cpp,eventwrapper.cpp,devicewrapper.cpp,contextwrapper.cpp,samplerwrapper.cpp,instance_registry.h,platformwrapper.h,commandqueuewrapper.h,programwrapper.h,contextwrapper.h,eventwrapper.h,clwrappercommon.h,samplerwrapper.h,kernelwrapper.h,memoryobjectwrapper.h,clwrappertypes.h,devicewrapper.h -> }
npm ERR! [email protected] install: `node-waf clean ; node-waf configure build`
npm ERR! `sh "-c" "node-waf clean ; 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 webcl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf clean ; node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls webcl
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.38-13-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "webcl"
npm ERR! cwd /home/vox/projects/animus
npm ERR! node -v v0.8.3
npm ERR! npm -v 1.1.32
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node-waf clean ; node-waf configure build`
npm ERR! message `sh "-c" "node-waf clean ; node-waf configure build"` failed with 1
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/vox/projects/animus/npm-debug.log
npm ERR! not ok code 0

It would be really nice if this module worked :(

mappum avatar Jul 25 '12 01:07 mappum