Skip to content
This repository was archived by the owner on Dec 2, 2019. It is now read-only.
This repository was archived by the owner on Dec 2, 2019. It is now read-only.

Examples won't compile on macOS because it doesn't have pkg-config by default. #916

Description

@ordnl

In examples/Makefile, GLFW3 is linked through pkg-config

GLFW3 := $(shell pkg-config --libs glfw3)

Unfortunately macOS does not have pkg-config by default, so GLFW3 is not linked, causing a compilation error.

This can be fixed by changing:

LIBS := $(GLFW3) -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm -lGLEW -L/usr/local/lib

to:

LIBS := -lglfw -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm -lGLEW -L/usr/local/lib

This happened on my macOS High Sierra (10.13.6)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions