Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
Modified makefile flags for examples on macOS Monterey ARM Homebrew
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
Hi!
I have a macOS monterey system on an M1 with home-brew.
In order to build the examples, I needed to brew install glew and glfw and then make the following modification
```
diff --git a/example/Makefile b/example/Makefile
index 1f24aea..d440791 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -11,8 +11,8 @@ else
UNAME_S := $(shell uname -s)
GLFW3 := $(shell pkg-config --libs glfw3)
ifeq ($(UNAME_S),Darwin)
- LIBS := $(GLFW3) -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm -lGLEW -L/usr/local/lib
- CFLAGS += -I/usr/local/include
+ LIBS := $(GLFW3) -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm $(shell pkg-config --libs glew)
+ CFLAGS += $(shell pkg-config --cflags glfw3) $(shell pkg-config --cflags glew)
else
LIBS := $(GLFW3) -lGL -lm -lGLU -lGLEW
endif
```
I'm not sure of your workflow. Would you prefer I submit this observation as an issue here or as a pull request? As you can see all I did was move glew to using pkg-config also on darwin.
Thanks!
Contributor guide
Research direction
Start with example/Makefile and compare the Darwin branch with the reported diff. Check the Homebrew pkg-config flags for GLFW and GLEW, then build the examples on macOS Monterey ARM; done means the examples build with those dependencies without manual Makefile edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100