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

Identifier 'gluniform1i' is not defined #466

Open
qiuchun opened this issue Aug 17, 2021 · 2 comments
Open

Identifier 'gluniform1i' is not defined #466

qiuchun opened this issue Aug 17, 2021 · 2 comments

Comments

@qiuchun
Copy link

qiuchun commented Aug 17, 2021

I compiled the nanogui library and used it as a third-party library in the project. I also imported include and lib, but the error of undefined identifier "gluniform1i" occurred during generation. How can I solve it? Is it because the nanogui library is not compiled well?

@edin-m
Copy link

edin-m commented Dec 7, 2021

I think you need to define NANOGUI_GLAD in your project setup.

@maziarmzh
Copy link

maziarmzh commented Feb 14, 2022

Hi all,
I had the same problem.
here is the workaround I have found:
step 1:
open the nanogui folder, which you cloned via git in clion or make a visual studio project file using CMake and build and run one of the examples, My choice was example 2. find nanaogui.dll and copy it inside your program build folder/configuration/platform/. mine is c:\test_nanogui\Binary\Debug\Win32
I am using visual studio 2019
step 2:
add these two includes before nanogui/nanogui.h like this:

#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <nanogui/nanogui.h>

I am sure there is a far better solution out there than this one.
I hope this helps
good luck.

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