0
libgphoto2 (2.5.12) 및 gphoto2 (2.5.11)의 최신 버전을 데비안 Jessie에서 작동 시키려고합니다. git에서 소스 파일을 다운로드하고 압축을 풀고 설치 지침을 따랐습니다.libgphoto2 컴파일 중 문제
autoreconf --install --symlink
./configure --prefix=/usr/local
구성은 중요한 문제없이 작동합니다. 내가 주목 한 유일한 사실은 "libusb-1.0 no"가 아니라 "libusb yes"입니다. 나는 libusb-1.0-0 (-dev)을 재설치하려고 시도했지만 아무런 변화가 없었다.
make[4]: Entering directory '/home/max/Downloads/libgphoto2-2.5.12/libgphoto2_port'
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wmissing-declarations -Wmissing-prototypes -module -no-undefined -avoid-version -export-dynamic -export-symbols ./iolib.sym -rpath '/usr/local/lib/libgphoto2_port/0.12.0' -o usb1.la libusb1/usb1_la-libusb1.lo ./libgphoto2_port/libgphoto2_port.la -L/usr/local/lib -lusb-1.0 -lpthread
libtool: link: rm -fr .libs/usb1.ver
libtool: link: echo "{ global:" > .libs/usb1.ver
libtool: link: cat ./iolib.sym | sed -e "s/\(.*\)/\1;/" >> .libs/usb1.ver
libtool: link: echo "local: *; };" >> .libs/usb1.ver
libtool: link: gcc -shared -fPIC -DPIC libusb1/.libs/usb1_la-libusb1.o -Wl,-rpath -Wl,/home/max/Downloads/libgphoto2-2.5.12/libgphoto2_port/libgphoto2_port/.libs ./libgphoto2_port/.libs/libgphoto2_port.so -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libltdl.so -ldl -L/usr/local/lib /usr/local/lib/libusb-1.0.a -ludev -lpthread -g -O2 -pthread -Wl,-soname -Wl,usb1.so -Wl,-version-script -Wl,.libs/usb1.ver -o .libs/usb1.so
/usr/bin/ld: /usr/local/lib/libusb-1.0.a(libusb_1_0_la-core.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libusb-1.0.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:820: recipe for target 'usb1.la' failed
make[4]: *** [usb1.la] Error 1
... 및 정지 할 :
다음은 메이크 출력의 일부이다. 나는 "-fPIC"이 gcc 옵션에 언급되어 있기 때문에 무엇을해야할지 모르겠다.
자세한 정보를 제공해 드릴 수 있으면 알려 주시기 바랍니다.