2017-03-12 13 views
0

私はlibgphoto2(2.5.12)とgphoto2(2.5.11)の最新バージョンをDebian 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オプションで言及されているので、何をすべきか分かりません。

さらに詳しい情報がありましたら、お知らせください。

答えて

0

libusb1の新しいバージョンを手動でコンパイルしてインストールすることで、この問題を解決しました。 hereからダウンロードし、指示に従って説明したとおりに設定、作成、インストールしてください。少なくとも私のために働いた。