0

我按照基本方向(此参考提供了如何处理丢失的库:https : //sourceforge.net/p/gphoto/mailman/message/33367636/)在 Raspberry Pi 上编译最新的 libgphoto2 和 gphoto2,但是当我尝试查看已安装的内容(gphoto2 -v),我得到了这个:

This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.23         gcc, popt(m), no exif, no cdk, no aa, no jpeg, no readline
libgphoto2      2.5.12         all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0         gcc, ltdl, USB, serial without locking

./configure 和 make 命令可以正常工作。当我执行“sudo make install”时,脚本会继续运行(带有一些重新链接警告),但没有错误。

'sudo make install' 的结尾如下。这可能是什么原因?我不应该看到 libgphoto2 的 2.5.25 吗?

make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/lib/udev'
 /usr/bin/install -c check-ptp-camera '/usr/local/lib/udev'
 /bin/mkdir -p '/usr/local/lib/libgphoto2'
  /bin/bash ../../libtool   --mode=install /usr/bin/install -c print-camera-list '/usr/local/lib/libgphoto2'
libtool: install: /usr/bin/install -c .libs/print-camera-list /usr/local/lib/libgphoto2/print-camera-list
make[3]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging/generic'
make[2]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging/generic'
Making install in rpm
make[2]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging/rpm'
make[3]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging/rpm'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging/rpm'
make[2]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging/rpm'
make[2]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging'
make[3]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging'
make[2]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging'
make[1]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/packaging'
Making install in doc
make[1]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/doc'
Making install in api
make[2]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/doc/api'
Dummy target all-local.
make[3]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/doc/api'
make[3]: Nothing to be done for 'install-exec-am'.
Dummy target install-data-local
Re-run configure with adequate parameters and run make again to build docs.
make[3]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/doc/api'
make[2]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/doc/api'
make[2]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/doc'
make[3]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/doc'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/man/man3'
 /usr/bin/install -c -m 644 libgphoto2.3 libgphoto2_port.3 '/usr/local/share/man/man3'
make[3]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/doc'
make[2]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/doc'
make[1]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/doc'
Making install in gphoto-m4
make[1]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/gphoto-m4'
make[2]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25/gphoto-m4'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/gphoto-m4'
make[1]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25/gphoto-m4'
make[1]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25'
make[2]: Entering directory '/home/pi/Desktop/libgphoto2-2.5.25'
 /bin/mkdir -p '/usr/local/bin'
 /usr/bin/install -c gphoto2-config '/usr/local/bin'
 /bin/mkdir -p '/usr/local/share/doc/libgphoto2'
 /usr/bin/install -c -m 644 AUTHORS COPYING NEWS ABOUT-NLS ChangeLog README.md RELEASE-HOWTO.md README.packaging '/usr/local/share/doc/libgphoto2'
 /bin/mkdir -p '/usr/local/include'
 /bin/mkdir -p '/usr/local/include/gphoto2'
 /usr/bin/install -c -m 644  gphoto2/gphoto2.h gphoto2/gphoto2-abilities-list.h gphoto2/gphoto2-camera.h gphoto2/gphoto2-context.h gphoto2/gphoto2-file.h gphoto2/gphoto2-filesys.h gphoto2/gphoto2-library.h gphoto2/gphoto2-list.h gphoto2/gphoto2-result.h gphoto2/gphoto2-setting.h gphoto2/gphoto2-version.h gphoto2/gphoto2-widget.h '/usr/local/include/gphoto2'
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 libgphoto2.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25'
make[1]: Leaving directory '/home/pi/Desktop/libgphoto2-2.5.25'
4

1 回答 1

0

我在新的 Pi OS 上遇到了同样的问题。

解决方案分为两个步骤。

  1. 设置 PKG_CONFIG_PATH 系统变量

    导出 PKG_CONFIG_PATH=${libdir}/pkgconfig

  2. 将特定于 pi 的 --libdir 选项添加到 ./configure

    ./configure --prefix=/usr --libdir=/usr/lib/arm-linux-gnueabih

于 2021-01-03T17:11:34.600 回答