Getting an old Canon scanner working on a new Mac with an agent's help

My Canon imageCLASS still prints on macOS, but Canon’s scan software didn’t support it and Image Capture didn’t see it. The open-source SANE project’s pixma backend does support the model, so the agent helped me build it from source. The interesting part was the reader task: SANE can read scan data in a forked process or a thread, and upstream’s release notes say the multi-process path doesn’t work with libusb on macOS, so the build asks for pthreads and checks it got them. We packaged it as a repeatable script (pinned release, checksum check, pixma only, installs into the home folder, no sudo, safe to re-run) plus a small scan command that finds the device and saves timestamped files, with a clear hint when the printer isn’t in scan mode. Tests use a fake scanimage; a macOS CI job builds it on a clean runner. It’s public and MIT licensed. #buildinpublic

Repo: GitHub - globe-teck/sane-pixma-macos: Canon PIXMA scanning on macOS: build the open-source SANE pixma backend natively, no vendor drivers · GitHub

AI Researcher & Founder at Globe Teck