nanogui icon indicating copy to clipboard operation
nanogui copied to clipboard

Can't find nanogui_resources.h

Open M202071895 opened this issue 4 years ago • 1 comments

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!

M202071895 avatar Jan 20 '21 12:01 M202071895

"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")

sunduk avatar Dec 24 '22 11:12 sunduk