Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/doc/index.html
Other
9.08k stars 542 forks source link

File Browser: Depends on GLEW #266

Open bibhas2 opened 3 years ago

bibhas2 commented 3 years ago

Platform: MacOS Big Sur Xcode: Version 12.4

From the example folder I run:

make

I get this error:

file_browser.c:14:10: fatal error: 'GL/glew.h' file not found
#include <GL/glew.h>
         ^~~~~~~~~~~

It appears that I need to have bunch of other things installed before I can use and build with Nuklear. I don't see them mentioned in README.md.

Countermeasure

I installed these packages using brew.

brew install glew
brew install glfw3
brew install pkg-config

After this build worked smoothly.

I don't know what I did is correct or not. But it wll help if all the dependencies are mentioned somewhere in README.

RageshAntony commented 2 years ago

Same error here in M1 Mac Big Sur. Header not found error coming only in build , not in Editor (mapped them correctly ) !!!!!

RobLoach commented 2 years ago

I believe the File Browser could do with a re-work to be more backend abstract. Right now it's its own implementation, using GLEW.