RPi: Fix jpeglib include path (symlink src/jpeglib -> jpeglib)

The setup.py has broken include_dirs that reference 'jpeglib/cjpeglib'
but the source files are in 'src/jpeglib/cjpeglib'. Create a symlink
to fix the include path resolution.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Aaron D. Lee
2026-01-10 22:30:59 -05:00
parent 28cb9bb9b3
commit 27c5b08d41

View File

@@ -351,6 +351,9 @@ else
cd jpeglib cd jpeglib
CJPEGLIB="src/jpeglib/cjpeglib" CJPEGLIB="src/jpeglib/cjpeglib"
# Fix broken include paths in setup.py (uses jpeglib/ but files are in src/jpeglib/)
ln -s src/jpeglib jpeglib
# Download libjpeg headers (not included in repo either) # Download libjpeg headers (not included in repo either)
echo " Downloading libjpeg 6b headers..." echo " Downloading libjpeg 6b headers..."
curl -sL "https://www.ijg.org/files/jpegsrc.v6b.tar.gz" | tar -xzf - curl -sL "https://www.ijg.org/files/jpegsrc.v6b.tar.gz" | tar -xzf -