Skip to content

Commit 5715d6d

Browse files
cfsmp3claude
andcommitted
build(linux): Suppress find error when GPAC is not installed
Redirect stderr to /dev/null for the GPAC source file search to avoid showing "No such file or directory" error when GPAC is not installed. The build continues to work correctly in both cases. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 6fdfde0 commit 5715d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BLD_INCLUDE="-I../src -I /usr/include/leptonica/ -I /usr/include/tesseract/ -I..
4040
SRC_LIBPNG="$(find ../src/thirdparty/libpng/ -name '*.c')"
4141
SRC_ZLIB="$(find ../src/thirdparty/zlib/ -name '*.c')"
4242
SRC_CCX="$(find ../src/lib_ccx/ -name '*.c')"
43-
SRC_GPAC="$(find /usr/include/gpac/ -name '*.c')"
43+
SRC_GPAC="$(find /usr/include/gpac/ -name '*.c' 2>/dev/null)"
4444
SRC_HASH="$(find ../src/thirdparty/lib_hash/ -name '*.c')"
4545
SRC_UTF8PROC="../src/thirdparty/utf8proc/utf8proc.c"
4646
SRC_FREETYPE="../src/thirdparty/freetype/autofit/autofit.c

0 commit comments

Comments
 (0)