Skip to content

NPM cannot install node-webcl sucessfully #3

@mfwei

Description

@mfwei

Hello,

I encounter some compiling errors when installing node-webcl via NPM (1.4.28).
Operating system on my computer is Ubuntu 14.04 with Kernel 3.13.0-32-generic.
Cloud anyone help me? Thank you very much.

Error message is as following:

../src/common.h:153:3: error: expected identifier before numeric constant
None=0,
^
../src/common.h:153:3: error: expected ‘}’ before numeric constant
../src/common.h:153:3: error: expected unqualified-id before numeric constant
In file included from ../src/webcl.h:30:0,
from ../src/bindings.cc:27:
../src/common.h:184:36: error: ‘CLObjType’ has not been declared
WebCLObject* findCLObj(void* clid, CLObjType::CLObjType type);
^
../src/common.h:184:57: error: expected ‘,’ or ‘...’ before ‘type’
WebCLObject* findCLObj(void* clid, CLObjType::CLObjType type);
^
../src/common.h:189:10: error: ‘CLObjType’ does not name a type
inline CLObjType::CLObjType getType() const { return _type; }
^
../src/common.h:217:3: error: ‘CLObjType’ does not name a type
CLObjType::CLObjType _type;
^
../src/common.h: In member function ‘const char* WebCLObject::getCLObjName() const’:
../src/common.h:192:12: error: ‘_type’ was not declared in this scope
return _type<CLObjType::MAX_WEBCL_TYPES ? CLObjType::CLObjName[_type] : "\0";
^
../src/common.h:192:18: error: ‘CLObjType’ has not been declared
return _type<CLObjType::MAX_WEBCL_TYPES ? CLObjType::CLObjName[_type] : "\0";
^
../src/common.h:192:47: error: ‘CLObjType’ has not been declared
return _type<CLObjType::MAX_WEBCL_TYPES ? CLObjType::CLObjName[_type] : "\0";
^
../src/common.h: In constructor ‘WebCLObject::WebCLObject()’:
../src/common.h:196:19: error: class ‘WebCLObject’ does not have any field named ‘_type’
WebCLObject() : _type(CLObjType::None)
^
../src/common.h:196:25: error: ‘CLObjType’ has not been declared
WebCLObject() : _type(CLObjType::None)
^
In file included from /usr/include/X11/Xlib.h:44:0,
from /usr/include/GL/glx.h:30,
from ../src/common.h:74,
from ../src/webcl.h:30,
from ../src/bindings.cc:27:
../src/common.h:196:36: error: expected unqualified-id before numeric constant
WebCLObject() : _type(CLObjType::None)
^
In file included from ../src/webcl.h:30:0,
from ../src/bindings.cc:27:
../src/common.h: At global scope:
../src/common.h:223:1: error: expected declaration before ‘}’ token
} // namespace webcl
^
../src/common.h:166:20: warning: ‘webcl::CLObjName’ defined but not used [-Wunused-variable]
static const char* CLObjName[] = {
^
make: *** [Release/obj.target/webcl/src/bindings.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions