-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPM cannot install node-webcl sucessfully #3
Comments
Which compiler do you use? -- Mike From: mfwei [email protected] Hello, I encounter some compiling errors when installing node-webcl via NPM Error message is as following: ../src/common.h:153:3: error: expected identifier before numeric constant ‹ |
I hit the same error, but I filed the bug under node-webgl by mistake. Details are here: (I was using gcc 4.8) |
I used "gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) " to compile source code. |
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
The text was updated successfully, but these errors were encountered: