From eda489265d00ac6d9fb750612e6116d0fda7f233 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Sat, 20 Dec 2025 18:13:12 +0100 Subject: [PATCH] fix(mac): Correct lib_hash include path for system-libs build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The include "../lib_hash/sha2.h" in params.c requires an include path that makes "../lib_hash" resolve to "thirdparty/lib_hash". Changed -I../src/lib_hash (which doesn't exist) to -I../src/thirdparty/lib_hash. With this path, the compiler searches for "../lib_hash/sha2.h" as: ../src/thirdparty/lib_hash/../lib_hash/sha2.h = ../src/thirdparty/lib_hash/sha2.h ✓ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- mac/build.command | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mac/build.command b/mac/build.command index 71f6a128..ee70dc6a 100755 --- a/mac/build.command +++ b/mac/build.command @@ -67,7 +67,9 @@ fi # Set up include paths based on whether we're using system libs or bundled if [[ "$USE_SYSTEM_LIBS" == "true" ]]; then # Use system libraries via pkg-config (for Homebrew compatibility) - BLD_INCLUDE="-I../src/ -I../src/lib_ccx -I../src/lib_hash -I../src/thirdparty" + # Note: -I../src/thirdparty/lib_hash is needed so that "../lib_hash/sha2.h" resolves correctly + # (the .. goes up from lib_hash to thirdparty, then lib_hash/sha2.h finds the file) + BLD_INCLUDE="-I../src/ -I../src/lib_ccx -I../src/thirdparty/lib_hash -I../src/thirdparty" BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors freetype2)" BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors gpac)" BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors libpng)" @@ -75,7 +77,7 @@ if [[ "$USE_SYSTEM_LIBS" == "true" ]]; then BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors libutf8proc)" else # Use bundled libraries (default for standalone builds) - BLD_INCLUDE="-I../src/ -I../src/lib_ccx -I../src/lib_hash -I../src/thirdparty/libpng -I../src/thirdparty -I../src/thirdparty/zlib -I../src/thirdparty/freetype/include $(pkg-config --cflags --silence-errors gpac)" + BLD_INCLUDE="-I../src/ -I../src/lib_ccx -I../src/thirdparty/lib_hash -I../src/thirdparty/libpng -I../src/thirdparty -I../src/thirdparty/zlib -I../src/thirdparty/freetype/include $(pkg-config --cflags --silence-errors gpac)" fi # Add FFmpeg include path for Mac