gphoto 折腾记(二)

今天上午成功编译安装了libgphoto-2.5.23一个午觉睡醒,现在该磨刀霍霍向猪羊了.这次的猪羊是gphoto-2.5.23,也就是可执行端程序.
从之前的链接里下载了压缩包,解开以后.在里面找到了configure.跟他寻求一下帮助看.

–with-libphoto2=PREFIX where to find libgphoto2, “no” or “auto”

嗯???这个好像挺重要的,之前安装的lib放在/usr/local/lib/libgphoto2/2.5.23/下,这回算是派上用场了,configure加上参数
–with-libgphoto2=/usr/local/lib/libgphoto2/2.5.23/
来,开始configure…翻车

checking for popt.h… no
configure: error:
Cannot autodetect popt.h
Set POPT_CFLAGS and POPT_LIBS correctly.

啥?又缺货…哎,你真是麻烦

sudo apt-get install libpopt-dev

好了,继续…嗯?老子方向盘呢?这回倒是很顺利结束的时候除了两个我不知道也不感兴趣的以外,别的都yes了,只是有一个事…

checking for libgphoto2 to use… /usr/local/lib/libgphoto2/2.5.23/
checking for libgphoto2.la file in /usr/local/lib/libgphoto2/2.5.23/… wild guess that something is in /usr/local/lib/libgphoto2/2.5.23/
configure: WARNING:
Warning:
libtool file libgphoto2.la could not be found.
We may be linking against the WRONG library.

这是什么情况?是没找到libphoto2么?一翻折腾之后,命令改成

–with-libgphoto2=/usr/local/

通过编译…但是总觉得哪儿不对有木有??

gphoto2 2.5.23
Copyright © 2000-2019 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.23 gcc, popt(m), exif, no cdk, no aa, jpeg, no readline
libgphoto2 2.5.9 all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0 gcc, ltdl, no USB, serial without locking

为啥还是2.5.9的libgphoto?难道是链接到系统自带的了嘛?好吧…搜索apt安装库
…然后卸载掉系统自带的libgphoto2-6,libgphoto2-l10n,libgphoto-port12.

gphoto2 2.5.23
Copyright © 2000-2019 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.23 gcc, popt(m), exif, no cdk, no aa, jpeg, no readline
libgphoto2 2.5.23 all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0 iolibs: disk ptpip serial, gcc, ltdl, no USB, serial without locking

这回美滋滋了…希望刚才删掉apt那几个libgphoto不会有啥副作用…来,找台相机过来试试…等等,先确认下相机支持不支持…

gphoto2 --list-cameras | grep RX
“Sony Alpha-RX10M4 (Control)”
“Sony DSC-RX0 (MTP)”
“Sony DSC-RX0 (PC Control)”
“Sony DSC-RX1 (PTP mode)”
“Sony DSC-RX100 (PTP mode)”
“Sony DSC-RX100M2”
“Sony DSC-RX100M4”
“Sony DSC-RX100M5 (Control)”
“Sony DSC-RX100M5A (MTP)”
“Sony DSC-RX100M5A (PC Control)”
“Sony DSC-RX100M6 (MTP)”
“Sony DSC-RX100M6 (PC Control)”
“Sony DSC-RX10M3 (Control)”

哈哈哈哈,都有了,很好.可以愉快玩耍了.来人,把朕的RX0拿来…咦?没反应的…
什么情况?..折腾了一翻,发现没有USB???这…先MARK下来
回过头重新编译libgphoto

./configure --with-camlibs=all
make -j4
sudo make install

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值