Konfekt/vim-notmuch-addrlookup

Apple silicon homebrew: notmuch.h not found

poetaman opened this issue · 1 comments

Using the vim-plug install instructions give this error:

cc -Wall -O2 -I/opt/homebrew/Cellar/glib/2.66.7/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.66.7/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre/8.44/include -std=c99   -c -o notmuch-addrlookup.o notmuch-addrlookup.c
notmuch-addrlookup.c:9:10: fatal error: 'notmuch.h' file not found
#include <notmuch.h>
         ^~~~~~~~~~~
1 error generated.
make: *** [notmuch-addrlookup.o] Error 1

shell returned 2

The apple silicon homebrew install does not copy include and lib files in the correct folders. Adding them to the CPPFLAGS, and LDFLAGS respectively & then running make solves it.