From e4b7f1f37cf59ddf025d609ffcdabe732a6e99ba Mon Sep 17 00:00:00 2001 From: Vedang Manerikar Date: Fri, 2 Jan 2026 16:31:51 +0530 Subject: fix(macos): add poppler and pcre2 to PKG_CONFIG_PATH for Homebrew builds Some macOS users were experiencing build failures where pkg-config could not find poppler, even with Homebrew's poppler package installed. This occurs when Homebrew doesn't properly link the .pc files to the standard pkg-config search path. Fixes #299 --- server/autobuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/autobuild b/server/autobuild index 6166c62..eb5d049 100755 --- a/server/autobuild +++ b/server/autobuild @@ -399,7 +399,7 @@ os_macos() { # explanation has to do with 'keg-only' installs). If you do, # please update: # https://github.com/vedang/pdf-tools/issues/270 - export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$(brew --prefix libffi)/lib/pkgconfig/:$(brew --prefix zlib)/lib/pkgconfig/:$(brew --prefix glib)/lib/pkgconfig/" + export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$(brew --prefix poppler)/lib/pkgconfig/:$(brew --prefix libffi)/lib/pkgconfig/:$(brew --prefix zlib)/lib/pkgconfig/:$(brew --prefix glib)/lib/pkgconfig/:$(brew --prefix pcre2)/lib/pkgconfig/" elif which port >/dev/null 2>&1; then PKGCMD=port PKGARGS=install -- cgit v1.0