Imgui: library not found for -lglfw3

Created on 21 Feb 2017  路  4Comments  路  Source: ocornut/imgui

I can get the opengl3_example working, but I would also like to get the apple_example working so I can step through with a debugger.

When I build I get:

ld: library not found for -lglfw3
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I do have glfw-3.2.1 installed.

In an attempt to fix:

I added

/usr/local/Cellar/glfw/3.2.1/lib
to the Library Search Paths.

And I added OpenGL.framework and libglfw3.dylib to Linked Frameworks and Libraries.

But I still hit the error. Damn I hate Xcode.

backenbinding

Most helpful comment

Closed as solved per #1044

All 4 comments

I encountered this same issue. There's a very easy fix.

In the project navigator, in the Frameworks group, you should see a reference to libglfw3.dylib. Click on it, and in the right panel (Utility navigator?) change the name to libglfw.3.dylib.

I guess GLFW added a dot before the 3 at some point.

I created a Pull Request to fix this: #1044

@petmac Perfect. Your solution fixed it, it's all working fine now. Thank you! 馃槂

Closed as solved per #1044

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkanakis picture mkanakis  路  3Comments

BlackWatersInc picture BlackWatersInc  路  3Comments

bizehao picture bizehao  路  3Comments

ocornut picture ocornut  路  3Comments

the-lay picture the-lay  路  3Comments