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

error: glUniform was not declared in this scope #8

Open
zoldaten opened this issue Sep 19, 2022 · 0 comments
Open

error: glUniform was not declared in this scope #8

zoldaten opened this issue Sep 19, 2022 · 0 comments

Comments

@zoldaten
Copy link

tried build it on ubuntu 20.04 and got this:

[ 95%] Building CXX object CMakeFiles/VimeoDepthViewer.dir/src/MainWindow.cpp.o
In file included from /home/al/depth-viewer/ext/nanogui/include/nanogui/glcanvas.h:22:0,
                 from /home/al/depth-viewer/src/VideoView.h:3,
                 from /home/al/depth-viewer/src/VideoWindow.h:6,
                 from /home/al/depth-viewer/src/MainWindow.h:37,
                 from /home/al/depth-viewer/src/MainWindow.cpp:1:
/home/al/depth-viewer/ext/nanogui/include/nanogui/glutil.h: In member function void nanogui::GLShader::setUniform(const string&, bool, bool):
/home/al/depth-viewer/ext/nanogui/include/nanogui/glutil.h:249:9: error: glUniform was not declared in this scope
         glUniform1i(uniform(name, warn), (int)value);
         ^~~~~~~~~~~
/home/al/depth-viewer/ext/nanogui/include/nanogui/glutil.h:249:9: note: suggested alternative: uniform
         glUniform1i(uniform(name, warn), (int)value);
         ^~~~~~~~~~~
         uniform

is there any fast fix ?

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

1 participant