Skip to content
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

Open
mfwei opened this issue Feb 2, 2015 · 3 comments
Open

NPM cannot install node-webcl sucessfully #3

mfwei opened this issue Feb 2, 2015 · 3 comments

Comments

@mfwei
Copy link

mfwei commented Feb 2, 2015

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

@mikeseven
Copy link
Owner

Which compiler do you use?

-- Mike

From: mfwei [email protected]
Reply-To: mikeseven/node-webcl
<reply+000c582c676d5d76d586b74d55a3f929e978518c35e969c592cf0000000110e703e89
[email protected]>
Date: Monday, February 2, 2015 at 1:22 AM
To: mikeseven/node-webcl [email protected]
Subject: [node-webcl] NPM cannot install node-webcl sucessfully (#3)

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


Reply to this email directly or view it on GitHub
#3 .

@thibaudh
Copy link

thibaudh commented Feb 3, 2015

I hit the same error, but I filed the bug under node-webgl by mistake. Details are here:
mikeseven/node-webgl#32

(I was using gcc 4.8)

@mfwei
Copy link
Author

mfwei commented Feb 5, 2015

I used "gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) " to compile source code.
Luckily, the problem have been solved due to "thibaudh"'s advice.
Thank you all.(both milkeseven and thibaudh) :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants