From 4cb58346615460e932c67a199af3690c9c9b6f73 Mon Sep 17 00:00:00 2001 From: Tyler Hagen <54131126+tyler-hagen@users.noreply.github.com> Date: Thu, 7 Aug 2025 09:40:20 -0500 Subject: [PATCH] Update macos local development dependencies (#1268) * Add needed homebrew formulae and corresponding compiler settings for macos to run api * coderabbitai feedback * Don't set CPLUS_INCLUDE_PATH de-novo --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8981d86b..4bddc9c9 100644 --- a/README.md +++ b/README.md @@ -297,7 +297,7 @@ In macOS, install dependencies: ```sh $ brew update # Update the package list -$ brew install golang gcc pkg-config libheif dlib jpeg # For API +$ brew install golang gcc pkg-config libheif dlib jpeg libmagic imagemagick # For API $ brew install reflex sqlite3 # For API optional tools ``` @@ -332,9 +332,11 @@ Then run the following commands: # Optional: Set the compiler environment in Debian/Ubuntu $ source ./scripts/set_compiler_env.sh # Set the compiler environment with `homebrew` -$ export CPLUS_INCLUDE_PATH="$(brew --prefix)/opt/jpeg/include:$(brew --prefix)/opt/dlib/include" -$ export LD_LIBRARY_PATH="$(brew --prefix)/opt/jpeg/lib:$(brew --prefix)/opt/dlib/lib" -$ export LIBRARY_PATH="$(brew --prefix)/opt/jpeg/lib:$(brew --prefix)/opt/dlib/lib" +$ export CPLUS_INCLUDE_PATH="$(brew --prefix)/opt/jpeg/include:$(brew --prefix)/opt/dlib/include:${CPLUS_INCLUDE_PATH:-}" +$ export C_INCLUDE_PATH="$(brew --prefix)/opt/libmagic/include:${C_INCLUDE_PATH:-}" +$ export DYLD_LIBRARY_PATH="$(brew --prefix)/opt/jpeg/lib:$(brew --prefix)/opt/dlib/lib:$(brew --prefix)/opt/libmagic/lib:${DYLD_LIBRARY_PATH:-}" +$ export LIBRARY_PATH="$(brew --prefix)/opt/jpeg/lib:$(brew --prefix)/opt/dlib/lib:$(brew --prefix)/opt/libmagic/lib:${LIBRARY_PATH:-}" +$ export CGO_CFLAGS_ALLOW=-Xpreprocessor # Start API server $ cd ./api $ go run .