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

Can't find nanogui_resources.h #463

Open
M202071895 opened this issue Jan 20, 2021 · 1 comment
Open

Can't find nanogui_resources.h #463

M202071895 opened this issue Jan 20, 2021 · 1 comment

Comments

@M202071895
Copy link

I download all files of the project (nanogui).But I can't find the file "nanogui_resources.h",and the error comes from the file "theme.cpp : #include <nanogui_resources.h>". How do you solve this problem? Thank you!

@sunduk
Copy link

sunduk commented Dec 24, 2022

"nanogui_resources.h" file is automatically generated when you run CMake.
You should run CMake before build this library.
(See Compiling section of this github main page.)

You can see the script in CMakeLists.txt file.

# Create command line for running bin2c cmake script
set(bin2c_cmdline
  -DOUTPUT_C=nanogui_resources.cpp
  -DOUTPUT_H=nanogui_resources.h
  "-DINPUT_FILES=${resources_string}"
  -P "${CMAKE_CURRENT_SOURCE_DIR}/resources/bin2c.cmake")

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

2 participants