-
Notifications
You must be signed in to change notification settings - Fork 60
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
Fail to compile on Linux (Ubuntu 14.04) #32
Comments
Fixed by renaming None to clObjNone and passing --std=c++11 to gcc. diff --git a/binding.gyp b/binding.gyp
index baf7989..8b6fcd0 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -38,7 +38,10 @@
},
'libraries': ['-framework OpenGL', '-framework OpenCL']
}],
- ['OS=="linux"', {'libraries': ['-lGL', '-lOpenCL']}],
+ ['OS=="linux"', {
+ 'libraries': ['-lGL', '-lOpenCL'],
+ 'cflags': ['-std=c++11']
+ }],
['OS=="win"', {
'variables' :
{
diff --git a/src/common.h b/src/common.h
index 6116d9a..7040154 100644
--- a/src/common.h
+++ b/src/common.h
@@ -150,7 +150,7 @@ struct Baton {
namespace CLObjType {
enum CLObjType {
- None=0,
+ clObjNone=0,
Platform,
Device,
Context,
@@ -193,7 +193,7 @@ public:
}
protected:
- WebCLObject() : _type(CLObjType::None)
+ WebCLObject() : _type(CLObjType::clObjNone)
{} |
I haven¹t tested on Linux but the compiler error seems to be a C++ error. -- Mike From: Thibaud [email protected] Setup:
|
Ah here you go. Thanks! -- Mike From: Thibaud [email protected] Fixed by renaming None to clObjNone and passing --std=c++11 to gcc. diff --git a/binding.gyp b/binding.gyp
protected:
|
Actually, this is a node-webCL bug, and not node-webgl. I cliked on the wrong repo when filling the bug report. |
@mikeseven @thibaudh so this can be closed, yes? |
add libxi-dev to linux dependencies
Setup:
There are two issues:
The text was updated successfully, but these errors were encountered: