Skip to content

Instantly share code, notes, and snippets.

@johntron
Last active December 3, 2023 22:01
Show Gist options
  • Save johntron/08ed144168b05f25de50e88edc2ef59c to your computer and use it in GitHub Desktop.
Save johntron/08ed144168b05f25de50e88edc2ef59c to your computer and use it in GitHub Desktop.
Build libgphoto2 and gphoto2
curl -OL https://github.com/gphoto/libgphoto2/releases/download/v2.5.31/libgphoto2-2.5.31.tar.gz
tar -xzf libgphoto2-2.5.31.tar.gz
cd libgphoto2-2.5.31/
sudo apt install libtool libusb-dev
./configure --prefix=/usr/local
make
sudo make install
ls -al /usr/local/lib/libgphoto2
curl -OL https://github.com/gphoto/gphoto2/releases/download/v2.5.28/gphoto2-2.5.28.tar.gz
tar -xzf gphoto2-2.5.28.tar.gz
cd gphoto2-2.5.28/
sudo apt install libpopt-devel libexif-dev
./configure --prefix=/usr/local
make
sudo make install
sudo ldconfig
gphoto2 -v
gphoto2 --auto-detect
sudo gphoto2 --capture-preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment