mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user