Closed andrewyguo closed 3 weeks ago
can you run
ldd /home/ykguo/.local/lib/libgphoto2/2.5.30/ptp2.so
and see if they are missing libraries or symbols.
if you built this on another machine than this, this might happen.
also you built using libusb0, which is deprecated ... install libusb-1-dev or so to build with libusb 1 (but this is not the cause for ptp2 load failure)
Thanks for your reply @msmeissn.
Here is the result:
$ ldd /home/ykguo/.local/lib/libgphoto2/2.5.30/ptp2.so
linux-vdso.so.1 (0x00007ffd7e1d6000)
libgphoto2.so.6 => /home/ykguo/.local/lib/libgphoto2.so.6 (0x000075bcef784000)
libgphoto2_port.so.12 => /home/ykguo/.local/lib/libgphoto2_port.so.12 (0x000075bcef777000)
libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x000075bcef581000)
libiconv.so.2 => not found
libjpeg.so.9 => not found
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000075bcef496000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000075bcef200000)
libltdl.so.7 => /lib/x86_64-linux-gnu/libltdl.so.7 (0x000075bcef48b000)
libexif.so.12 => /lib/x86_64-linux-gnu/libexif.so.12 (0x000075bcef43e000)
libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x000075bceee00000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x000075bcef420000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x000075bcef1ce000)
/lib64/ld-linux-x86-64.so.2 (0x000075bcef924000)
libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x000075bced000000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x000075bcecc00000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000075bcef1a0000)
@msmeissn, based on the information above, I went ahead and installed libjpeg
and libiconv
.
wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
tar -xzvf libiconv-1.16.tar.gz
cd libiconv-1.16
./configure --prefix=$HOME/.local
make
make install
And then for libjpeg:
wget http://www.ijg.org/files/jpegsrc.v9e.tar.gz
tar -xzvf jpegsrc.v9e.tar.gz
cd jpeg-9e
./configure --prefix=$HOME/.local
make
make install
Now, this is the result:
$ gphoto2 --list-cameras | wc -l
2630
Thanks for your help!
great to hear it worked
Describe the bug Running
gphoto --list-cameras
only returns 327 cameras.Here is the log file I have from running
gphoto2 --list-cameras --debug --debug-logfile=debug_list_cameras.log
:I am confused because it says:
0.000875 foreach_func (2): Found '/home/ykguo/.local/lib/libgphoto2/2.5.30/ptp2'.
And then a few lines later:
0.017614 gp_abilities_list_load_dir (2): Failed to load '/home/ykguo/.local/lib/libgphoto2/2.5.30/ptp2': file not found.
What could be causing this and how do I fix this?
Name the camera I don't think this issue is specific to my camera. I am using the Sony A7iv.
libgphoto2 and gphoto2 version