Closed mikeev261 closed 1 year ago
It's written right there in your log:
0.001453 main (2): + no USB (for USB cameras)
And
libgphoto2_port 0.12.2 iolibs: disk ptpip serial, gcc, no ltdl, no EXIF, no USB, serial without locking
OK, but how does that reconcile with this?
~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:082d Logitech, Inc. HD Pro Webcam C920
Bus 001 Device 007: ID 054c:0c34 Sony Corp. ILCE-7M3 [A7III] in PC Remote mode
Bus 001 Device 003: ID 2c99:0002 Prusa Original Prusa i3 MK3
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Tried the following:
:/usr/local/lib $ export LD_LIBRARY_PATH=/usr/local/lib/libgphoto2_port:$LD_LIBRARY_PATH
:/usr/local/lib $ export LD_LIBRARY_PATH=/usr/local/lib/libgphoto2:$LD_LIBRARY_PATH
:/usr/local/lib $ export LD_LIBRARY_PATH=/usr/local/lib/pkgconfig:$LD_LIBRARY_PATH
:/usr/local/lib $ export LD_LIBRARY_PATH=/usr/local/lib/libgphoto2_port.so:$LD_LIBRARY_PATH
Getting the same result though.
Log:
0.000547 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000720 main (2): gphoto2 2.5.28.1
0.000791 main (2): gphoto2 has been compiled with the following options:
0.000823 main (2): + gcc (C compiler used)
0.000850 main (2): + popt (mandatory, for handling command-line parameters)
0.000876 main (2): + no exif (for displaying EXIF information)
0.000902 main (2): + no cdk (for accessing configuration options)
0.000928 main (2): + no aa (for displaying live previews)
0.000954 main (2): + jpeg (for displaying live previews in JPEG format)
0.000979 main (2): + no readline (for easy navigation in the shell)
0.001009 main (2): libgphoto2 2.5.30.1
0.001044 main (2): libgphoto2 has been compiled with the following options:
0.001077 main (2): + standard camlib set SKIPPING SOME (ax203 canon digigr8 dimagev directory jl2005a jl2005c kodak_dc240 mars pentax ptp2 ricoh_g3 sierra sonix sq905 st2205 topfield tp6801 SKIPPING docupen lumix)
0.001103 main (2): + gcc (C compiler used)
0.001128 main (2): + no ltdl (for portable loading of camlibs)
0.001154 main (2): + no EXIF (for special handling of EXIF files)
0.001248 main (2): libgphoto2_port 0.12.2
0.001297 main (2): libgphoto2_port has been compiled with the following options:
0.001326 main (2): + iolibs: disk ptpip serial
0.001351 main (2): + gcc (C compiler used)
0.001376 main (2): + no ltdl (for portable loading of iolibs)
0.001401 main (2): + no EXIF (for vusb)
0.001425 main (2): + no USB (for USB cameras)
0.001450 main (2): + serial (for serial cameras)
0.001475 main (2): + no resmgr (serial port access and locking)
0.001501 main (2): + no ttylock (serial port locking)
0.001525 main (2): + no lockdev (serial port locking)
0.001551 main (2): CAMLIBS env var not set, using compile-time default instead
0.001576 main (2): IOLIBS env var not set, using compile-time default instead
0.001601 main (2): invoked with following arguments:
0.001627 main (2): --auto-detect
0.001651 main (2): --debug
0.001675 main (2): --debug-logfile=debug2.log
0.001770 load_settings (2): Creating gphoto config directory ('/home/mikeev/.gphoto')
0.001866 verify_settings (2): Can't open settings file '/home/mikeev/.gphoto/settings' for reading.
0.001898 load_settings (2): Loading settings from file '/home/mikeev/.gphoto/settings'.
0.001944 load_settings (2): Can't open settings file '/home/mikeev/.gphoto/settings' for reading.
0.001976 load_settings (2): Creating gphoto config directory ('/home/mikeev/.gphoto')
0.002027 verify_settings (2): Can't open settings file '/home/mikeev/.gphoto/settings' for reading.
0.002056 load_settings (2): Loading settings from file '/home/mikeev/.gphoto/settings'.
0.002096 load_settings (2): Can't open settings file '/home/mikeev/.gphoto/settings' for reading.
0.002828 gp_port_init_localedir (2): localedir has been set to /usr/local/share/locale (compile-time default)
0.002870 gp_port_info_list_load (2): Using ltdl to load io-drivers from '/usr/local/lib/libgphoto2_port/0.12.2'...
0.003183 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/disk'.
0.004118 gp_port_library_list (2): found fstab fstype proc
0.004224 gp_port_library_list (2): found fstab fstype vfat
0.004265 gp_port_library_list (2): found fstab fstype ext4
0.004521 gp_port_library_list (2): found mtab fstype ext4
0.004592 gp_port_library_list (2): found mtab fstype devtmpfs
0.004636 gp_port_library_list (2): found mtab fstype proc
0.004675 gp_port_library_list (2): found mtab fstype sysfs
0.004717 gp_port_library_list (2): found mtab fstype securityfs
0.004759 gp_port_library_list (2): found mtab fstype tmpfs
0.004837 gp_port_library_list (2): found mtab fstype devpts
0.004879 gp_port_library_list (2): found mtab fstype tmpfs
0.004951 gp_port_library_list (2): found mtab fstype tmpfs
0.005026 gp_port_library_list (2): found mtab fstype cgroup2
0.005067 gp_port_library_list (2): found mtab fstype pstore
0.005140 gp_port_library_list (2): found mtab fstype bpf
0.005210 gp_port_library_list (2): found mtab fstype autofs
0.005251 gp_port_library_list (2): found mtab fstype debugfs
0.005320 gp_port_library_list (2): found mtab fstype rpc_pipefs
0.005452 gp_port_library_list (2): found mtab fstype mqueue
0.005494 gp_port_library_list (2): found mtab fstype tracefs
0.005564 gp_port_library_list (2): found mtab fstype fusectl
0.005603 gp_port_library_list (2): found mtab fstype configfs
0.005689 gp_port_library_list (2): found mtab fstype vfat
0.005760 gp_port_library_list (2): found mtab fstype tmpfs
0.005988 foreach_func (2): Loaded '' ('^disk:') from '/usr/local/lib/libgphoto2_port/0.12.2/disk'.
0.006027 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.006794 foreach_func (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.006837 foreach_func (2): Loaded '' ('^ptpip:') from '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.006867 foreach_func (2): Loaded 'IP Connection' ('ip:') from '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.006897 foreach_func (2): Loaded '' ('^ip:') from '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.006927 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.007942 foreach_func (2): Loaded 'Serial Port Device' ('serial:') from '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.007985 foreach_func (2): Loaded '' ('^serial:') from '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.008047 gp_port_info_list_count (2): Counting entries (7 available)...
0.008076 gp_port_info_list_count (2): 3 regular entries available.
0.008102 gp_port_info_list_count (2): Counting entries (7 available)...
0.008128 gp_port_info_list_count (2): 3 regular entries available.
0.008169 gp_port_init_localedir (2): ignoring late call (localedir value NULL)
0.008207 gp_init_localedir (2): localedir has been set to /usr/local/share/locale (compile-time default)
0.008266 unlocked_gp_abilities_list_load_dir(2): Using ltdl to load camera libraries from '/usr/local/lib/libgphoto2/2.5.30.1'...
0.008643 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/ax203'.
0.008689 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/canon'.
0.008718 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/digigr8'.
0.008745 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/dimagev'.
0.008772 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/directory'.
0.008798 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/jl2005a'.
0.008824 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/jl2005c'.
0.008850 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/kodak_dc240'.
0.008876 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/mars'.
0.008904 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/pentax'.
0.008970 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/ptp2'.
0.008999 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/ricoh_g3'.
0.009027 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/sierra'.
0.009054 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/sonix'.
0.009081 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/sq905'.
0.009108 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/st2205'.
0.009135 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/topfield'.
0.009162 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.30.1/tp6801'.
0.009205 unlocked_gp_abilities_list_load_dir(2): Found 18 camera drivers.
0.071368 gp_port_info_list_count (2): Counting entries (7 available)...
0.071448 gp_port_info_list_count (2): 3 regular entries available.
0.071465 gp_port_new (2): Creating new device...
0.071494 gp_port_info_list_get_info (2): Getting info of entry 0 (7 available)...
0.071925 gp_port_set_settings (2): Setting settings...
0.071956 gp_port_info_list_get_info (2): Getting info of entry 1 (7 available)...
0.072254 gp_port_set_settings (2): Setting settings...
0.072276 gp_port_info_list_get_info (2): Getting info of entry 2 (7 available)...
0.072582 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds.
0.072602 gp_port_set_settings (2): Setting settings...
0.072621 gp_port_free (2): Freeing port...
0.072638 gp_port_close (2): Closing port...
0.072664 gp_port_serial_close [unix.c:432](0): Invalid parameters: 'path' is NULL/FALSE.
0.073799 gp_camera_free (2): Freeing camera...
0.073838 gp_port_free (2): Freeing port...
0.073857 gp_filesystem_reset (2): resetting filesystem
0.073871 gp_filesystem_lru_clear (2): Clearing fscache LRU list...
0.073886 gp_filesystem_lru_clear (2): fscache LRU list already empty
0.073901 delete_all_folders (2): Internally deleting all folders from '/'...
0.073916 lookup_folder (2): Lookup folder '/'...
0.073931 lookup_folder (2): Found! / is 0x89da0
0.073946 recurse_delete_folder (2): Recurse delete folder 0x89da0//
0.073961 delete_all_files (2): Delete all files in folder 0x89da0//
:~ $ gphoto2 --version
gphoto2 2.5.28.1
Copyright (c) 2000-2021 Marcus Meissner and others
gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.
This version of gphoto2 is using the following software versions and options:
gphoto2 2.5.28.1 gcc, popt(m), no exif, no cdk, no aa, jpeg, no readline
libgphoto2 2.5.30.1 standard camlibs (SKIPPING docupen lumix), gcc, no ltdl, no EXIF
libgphoto2_port 0.12.2 iolibs: disk ptpip serial, gcc, no ltdl, no EXIF, no USB, serial without locking
:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 046d:082d Logitech, Inc. HD Pro Webcam C920
Bus 001 Device 004: ID 054c:0c34 Sony Corp. ILCE-7M3 [A7III] in PC Remote mode
Bus 001 Device 003: ID 2c99:0002 Prusa Original Prusa i3 MK3
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
BTW, I could just be installing this all wrong. Here's more background as far as what's going on:
libgphoto2:
autoreconf --install --symlink
./configure --prefix=/usr/local
sudo make
sudo make install
gphoto2:
autoreconf -is
./configure PKG_CONFIG_PATH="/usr/local/lib/pkgconfig${PKG_CONFIG_PATH+":${PKG_CONFIG_PATH}"}" --prefix="/usr/local"
sudo make
sudo make install
And with this, I wound up with:
gphoto2 2.5.28.1 gcc, popt(m), no exif, no cdk, no aa, jpeg, no readline
libgphoto2 2.5.30.1 standard camlibs (SKIPPING docupen lumix), gcc, no ltdl, no EXIF
Note the /usr/local/lib locations. The fact that libgphoto2's instructions seem to default to /usr/local
and gphoto2's instructions default to $HOME/.local
was a bit confusing to me. I've tried just using ./configure without arguments (for both packages), ./configure pointing to /usr/local for both (my latest attempt), and tried pointing to $HOME/.local for both (which failed with access errors). I feel the source of my issues probably lies here, but if there is a comprehensive install guide that anyone can recommend I'd be happy to try that.
I thought this was clear. libgphoto2 was built without USB support.
@msmeissn I would make libgphoto2 configure fail if libusb isn't found. There is virtually no use case otherwise.
I thought this was clear. libgphoto2 was built without USB support.
libusb appears to be installed on this system (apt-get install libusb-1.0-0-dev shows it as already installed). And this was the same state when I built libgphoto2, but I tried a rebuild anyway (no help).
it's definitely not built. it say this in two places
it's definitely not built. it say this in two places
I'm out of ideas then. I give up :). Thanks for trying to help.
I managed to get it working. Had to ask ChatGPT to write new documentation... which worked (well sort-of... going to need to open a new issue for the next problem). In case anyone else hits a similar issue, here's the install documentation that ChatGPT wrote:
Please follow the instructions below:
Update the system:
sudo apt update
sudo apt upgrade
Install the required dependencies:
sudo apt install build-essential libusb-dev libjpeg-dev libcurl4-gnutls-dev libltdl-dev libexif-dev
Clone the libgphoto2 repository from GitHub:
cd ~
git clone https://github.com/gphoto/libgphoto2.git
Build and install libgphoto2:
cd libgphoto2
autoreconf --install --symlink
./configure
make
sudo make install
Clone the gphoto2 repository from GitHub:
cd ~
git clone https://github.com/gphoto/gphoto2.git
Build and install gphoto2:
cd gphoto2
autoreconf --install --symlink
./configure
make
sudo make install
Update shared library cache:
sudo ldconfig
Verify the installation:
gphoto2 --version
This command should display the version information for gphoto2.
If you hit permissions issues accessing the camera over USB, do the following:
sudo nano /etc/udev/rules.d/99-usb-permissions.rules
Add the following line to the file, replacing "vendor_id" and "product_id" with the values from your USB device:
SUBSYSTEM=="usb", ATTRS{idVendor}=="vendor_id", ATTRS{idProduct}=="product_id", GROUP="plugdev", MODE="0664"
Add user to the plugdev group: Add your user account to the "plugdev" group using the following command:
sudo usermod -aG plugdev <your_username>
Reload udev rules: To apply the changes made to the udev rules, reload them using the following command:
sudo udevadm control --reload-rules
This got me connected to the camera and can take an image. I can hear the camera snap the shot. But there is a lot of lag between the point in which the image is captured. Will open a new ticket for this. Closing this one...
Referencing the latest issue here just in case it's related (which I doubt):
there is a virtual usb testing builds, or I can envision other build models.
But perhaps configure can be made to hard required --disable-usb in such cases, and hard fail if it does not detect libusb otherwise.
Describe the bug
gphoto2 isn't listing any cameras when --auto-detect is used
I am trying to get this running on the latest release of octopi (Debian linux) running on a raspberry pi.
Name the camera None shown. But lsusb shows my A7iii:
libgphoto2 and gphoto2 version output of: gphoto2 --version
To Reproduce
Debug.log: