Skip to content

Commit eda4892

Browse files
cfsmp3claude
andcommitted
fix(mac): Correct lib_hash include path for system-libs build
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 <[email protected]>
1 parent 6838666 commit eda4892

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mac/build.command

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,17 @@ fi
6767
# Set up include paths based on whether we're using system libs or bundled
6868
if [[ "$USE_SYSTEM_LIBS" == "true" ]]; then
6969
# Use system libraries via pkg-config (for Homebrew compatibility)
70-
BLD_INCLUDE="-I../src/ -I../src/lib_ccx -I../src/lib_hash -I../src/thirdparty"
70+
# Note: -I../src/thirdparty/lib_hash is needed so that "../lib_hash/sha2.h" resolves correctly
71+
# (the .. goes up from lib_hash to thirdparty, then lib_hash/sha2.h finds the file)
72+
BLD_INCLUDE="-I../src/ -I../src/lib_ccx -I../src/thirdparty/lib_hash -I../src/thirdparty"
7173
BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors freetype2)"
7274
BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors gpac)"
7375
BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors libpng)"
7476
BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors libprotobuf-c)"
7577
BLD_INCLUDE="$BLD_INCLUDE $(pkg-config --cflags --silence-errors libutf8proc)"
7678
else
7779
# Use bundled libraries (default for standalone builds)
78-
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)"
80+
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)"
7981
fi
8082

8183
# Add FFmpeg include path for Mac

0 commit comments

Comments
 (0)