You are not logged in.

#1 2012-01-26 07:13:22

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Understanding issues compiling libmtp in ArchLinux desktop

Hi All.
I face the following errors when compiling libmtp in my ArchLinux desktop

libtool: link: gcc -march=i686 -mtune=generic -O2 -pipe -Wall -Wmissing-prototypes -Wl,--hash-style=gnu -Wl,--as-needed -o .libs/mtp-connect connect.o delfile.o getfile.o newfolder.o sendfile.o sendtr.o pathutils.o util.o ../src/.libs/libmtp.so
../src/.libs/libmtp.so: undefined reference to `get_usb_device_timeout'
../src/.libs/libmtp.so: undefined reference to `LIBMTP_Detect_Raw_Devices'
../src/.libs/libmtp.so: undefined reference to `get_playlist_extension'
../src/.libs/libmtp.so: undefined reference to `ptp_usb_event_wait'
../src/.libs/libmtp.so: undefined reference to `set_usb_device_timeout'
../src/.libs/libmtp.so: undefined reference to `guess_usb_speed'
../src/.libs/libmtp.so: undefined reference to `configure_usb_device'
../src/.libs/libmtp.so: undefined reference to `dump_usbinfo'
../src/.libs/libmtp.so: undefined reference to `close_device'


However, when I compile it on  my ArchLinux server the compilation was successful.
I am wondering and would like to understand more why is the compilation issue happening.
Why it happens only on my desktop?
Is it due to AUR packages installed?
I would like to understand more on the issue so that I can quickly resolve the issue when it happens.

Offline

#2 2012-01-27 00:22:06

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: Understanding issues compiling libmtp in ArchLinux desktop

Do you have libusb-compat installed? Also, have you tried simply installing libmtp from the official repositories, or libmtp-git from the AUR? If you're simply trying to installing the latest libmtp, libmtp-git from the AUR should work.


D:

Offline

Board footer

Powered by FluxBB