inference icon indicating copy to clipboard operation
inference copied to clipboard

Fix Jetson 6.2.0 builds: Compile GDAL 3.8.5 from source for rasterio compatibility

Open alexnorell opened this issue 1 month ago • 0 comments

Problem

Jetson 6.2.0 Docker builds are failing with:

ERROR: GDAL >= 3.5 is required for rasterio. Please upgrade GDAL.
INFO:root:GDAL API version obtained from gdal-config: 3.4.1

Root Cause

  • Jetpack r36.4.0 ships with GDAL 3.4.1
  • rasterio 1.4.x requires GDAL >= 3.5
  • This creates an incompatibility

Solution

Compile GDAL 3.8.5 from source instead of downgrading rasterio.

This provides a forward-compatible solution that:

  • ✅ Meets rasterio 1.4.0's requirements (GDAL >= 3.5)
  • ✅ Keeps packages up to date
  • ✅ Provides better long-term maintainability

Implementation

  • Compile GDAL 3.8.5 in builder stage
  • Install all required GDAL dependencies
  • Copy GDAL libraries, headers, and data to runtime stage
  • Set proper environment variables (GDAL_CONFIG, GDAL_DATA, LD_LIBRARY_PATH)

Testing

Will be tested via GitHub Actions Depot build on merge.

Related

Fixes all recent Jetson 6.2.0 workflow failures on main branch.

alexnorell avatar Nov 07 '25 17:11 alexnorell