I\'m trying to build a project that depends on SDL2 library. I\'ve installed and linked it using homebrew:
> ls /usr/local/lib | grep SDL2 libSDL2-2.0.0.d
I fixed the issue by adding /usr/local/lib to my $LIBRARY_PATH:
/usr/local/lib
$LIBRARY_PATH
For bash, in ~/.bash_profile:
~/.bash_profile
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/lib"
And for fish shell, in ~/.config/fish/config.fish:
~/.config/fish/config.fish
set -g -x LIBRARY_PATH $LIBRARY_PATH /usr/local/lib