Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
libgphoto2 Rust Bindings
gphoto2-sys crate provides declarations and linkage for the
libgphoto2 C library. Following
*-sys package conventions, the
gphoto2-sys crate does not define higher-level abstractions
over the native
libgphoto2 library functions.
In order to use the
gphoto2-sys crate, you must have a Unix system with the
installed where it can be found by
On Debian-based Linux distributions, install the
sudo apt-get install libgphoto2-dev
On OS X, install
libgphoto2 with Homebrew:
brew install libgphoto2
gphoto2-sys as a dependency in
[dependencies] gphoto2-sys = "0.1.2"
gphoto2_sys crate and use the functions as they're defined in the native
library. See the
libgphoto2 API documention for more usage
extern crate gphoto2_sys as gphoto2;
OS X Usage
OS X opens cameras automatically when connected, which prevents other applications from opening the camera device. When attempting to open a camera that is already opened by the operating system, you will get an error message like the following:
Could not claim the USB device
To fix this, you have to kill the
PTPCamera process after connecting a camera to your system:
Each camera is opened with a separate instance of the
PTPCamera application. If you have several
cameras connected, you may want to kill individual
PTPCamera processes instead of using
gphoto2-sys does nothing more than export symbols from the native
libgphoto2 library, the
best source for help is the information already available for the native
Copyright © 2015 David Cuddeback
Distributed under the MIT License.
Note: By using this crate, your executable will link to the
libgphoto2 C library, which is
licensed under the LGPL version 2.1.