JoeyDeVries / LearnOpenGL

Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
https://learnopengl.com
Other
11.06k stars 2.8k forks source link

macOS Mojave (10.15): Missing `libIrrXML.dylib` #147

Open KevinVitale opened 4 years ago

KevinVitale commented 4 years ago

In order for me to be able to run the demos, I had to add a link to libIrrXML.dylib within the lib directory.

After installing assimp via Homebrew, I linked the library like so:

$ cd LearnOpenGL
$ ln -s /usr/local/lib/libIrrXML.dylib lib/ 

Otherwise, I would get the following error for all demos:

$ ./1.getting_started__1.1.hello_window
dyld: Library not loaded: @rpath/libIrrXML.dylib
  Referenced from: /usr/local/opt/assimp/lib/libassimp.5.dylib
  Reason: image not found
[1]    93973 abort      ./1.getting_started__1.1.hello_window
KevinVitale commented 4 years ago

I'm happy to close this issue myself; I felt it necessary to post this issue for others trying to run the code on macOS.

JoeyDeVries commented 4 years ago

Thank you @KevinVitale, I'm fine keeping it open so it may be easier for others (having similar issues) to find.