Open juniorxsound opened 6 years ago
Is there plan to add Linux Support? Or if anyone has built this on Linux, then any suggestions on how to resolve following build errors. I tried building on Ubuntu 18.04.01 and got following errors
In file included from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glcanvas.h:22:0, from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/src/VideoView.h:3, from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/src/VideoWindow.h:6, from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/src/MainWindow.h:37, from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/src/MainWindow.cpp:1: /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h: In member function ‘void nanogui::GLShader::setUniform(const string&, bool, bool)’: /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:249:9: error: ‘glUniform1i’ was not declared in this scope glUniform1i(uniform(name, warn), (int)value); ^~~~~~~~~~~ /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:249:9: note: suggested alternative: ‘uniform’ glUniform1i(uniform(name, warn), (int)value); ^~~~~~~~~~~ uniform /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h: In member function ‘void nanogui::GLShader::setUniform(const string&, T, bool)’: /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:255:9: error: there are no arguments to ‘glUniform1i’ that depend on a template parameter, so a declaration of ‘glUniform1i’ must be available [-fpermissive] glUniform1i(uniform(name, warn), (int) value); ^~~~~~~~~~~ /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:255:9: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h: In member function ‘void nanogui::GLShader::setUniform(const string&, T, bool)’: /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:261:9: error: there are no arguments to ‘glUniform1f’ that depend on a template parameter, so a declaration of ‘glUniform1f’ must be available [-fpermissive] glUniform1f(uniform(name, warn), (float) value);
Is there plan to add Linux Support? Or if anyone has built this on Linux, then any suggestions on how to resolve following build errors. I tried building on Ubuntu 18.04.01 and got following errors
In file included from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glcanvas.h:22:0, from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/src/VideoView.h:3, from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/src/VideoWindow.h:6, from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/src/MainWindow.h:37, from /home/kunal/workspace/Vimeo/vimeo-depth-viewer/src/MainWindow.cpp:1: /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h: In member function ‘void nanogui::GLShader::setUniform(const string&, bool, bool)’: /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:249:9: error: ‘glUniform1i’ was not declared in this scope glUniform1i(uniform(name, warn), (int)value); ^~~~~~~~~~~ /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:249:9: note: suggested alternative: ‘uniform’ glUniform1i(uniform(name, warn), (int)value); ^~~~~~~~~~~ uniform /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h: In member function ‘void nanogui::GLShader::setUniform(const string&, T, bool)’: /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:255:9: error: there are no arguments to ‘glUniform1i’ that depend on a template parameter, so a declaration of ‘glUniform1i’ must be available [-fpermissive] glUniform1i(uniform(name, warn), (int) value); ^~~~~~~~~~~ /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:255:9: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h: In member function ‘void nanogui::GLShader::setUniform(const string&, T, bool)’: /home/kunal/workspace/Vimeo/vimeo-depth-viewer/ext/nanogui/include/nanogui/glutil.h:261:9: error: there are no arguments to ‘glUniform1f’ that depend on a template parameter, so a declaration of ‘glUniform1f’ must be available [-fpermissive] glUniform1f(uniform(name, warn), (float) value);
Same problem. Still looking for solution. If I compile the nanogui directly, there is no error.