From Me, 3 Months ago, written in Bash.
  1. sudo make install
  2. Making install in src
  3. make[1]: Entering directory '/home/nikunj/Downloads/Packages/libmtp-1.1.15/src'
  4. make[2]: Entering directory '/home/nikunj/Downloads/Packages/libmtp-1.1.15/src'
  5.  /bin/mkdir -p '/usr/lib'
  6.  /bin/bash ../libtool   --mode=install /usr/bin/install -c   libmtp.la '/usr/lib'
  7. libtool: install: /usr/bin/install -c .libs/libmtp.so.9.4.0 /usr/lib/libmtp.so.9.4.0
  8. libtool: install: (cd /usr/lib && { ln -s -f libmtp.so.9.4.0 libmtp.so.9 || { rm -f libmtp.so.9 && ln -s libmtp.so.9.4.0 libmtp.so.9; }; })
  9. libtool: install: (cd /usr/lib && { ln -s -f libmtp.so.9.4.0 libmtp.so || { rm -f libmtp.so && ln -s libmtp.so.9.4.0 libmtp.so; }; })
  10. libtool: install: /usr/bin/install -c .libs/libmtp.lai /usr/lib/libmtp.la
  11. libtool: install: /usr/bin/install -c .libs/libmtp.a /usr/lib/libmtp.a
  12. libtool: install: chmod 644 /usr/lib/libmtp.a
  13. libtool: install: ranlib /usr/lib/libmtp.a
  14. libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/lib
  15. ----------------------------------------------------------------------
  16. Libraries have been installed in:
  17.    /usr/lib
  18.  
  19. If you ever happen to want to link against installed libraries
  20. in a given directory, LIBDIR, you must either use libtool, and
  21. specify the full pathname of the library, or use the '-LLIBDIR'
  22. flag during linking and do at least one of the following:
  23.    - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
  24.      during execution
  25.    - add LIBDIR to the 'LD_RUN_PATH' environment variable
  26.      during linking
  27.    - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
  28.    - have your system administrator add LIBDIR to '/etc/ld.so.conf'
  29.  
  30. See any operating system documentation about shared libraries for
  31. more information, such as the ld(1) and ld.so(8) manual pages.
  32. ----------------------------------------------------------------------
  33.  /bin/mkdir -p '/usr/include'
  34.  /usr/bin/install -c -m 644 libmtp.h '/usr/include'
  35. make[2]: Leaving directory '/home/nikunj/Downloads/Packages/libmtp-1.1.15/src'
  36. make[1]: Leaving directory '/home/nikunj/Downloads/Packages/libmtp-1.1.15/src'
  37. Making install in examples
  38. make[1]: Entering directory '/home/nikunj/Downloads/Packages/libmtp-1.1.15/examples'
  39. /bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Wall -Wmissing-prototypes   -o mtp-connect connect.o delfile.o getfile.o newfolder.o sendfile.o sendtr.o pathutils.o util.o ../src/libmtp.la
  40. libtool: link: gcc -g -O2 -Wall -Wmissing-prototypes -o .libs/mtp-connect connect.o delfile.o getfile.o newfolder.o sendfile.o sendtr.o pathutils.o util.o  ../src/.libs/libmtp.so
  41. ../src/.libs/libmtp.so: undefined reference to `usb_get_driver_np'
  42. ../src/.libs/libmtp.so: undefined reference to `usb_find_busses'
  43. ../src/.libs/libmtp.so: undefined reference to `usb_release_interface'
  44. ../src/.libs/libmtp.so: undefined reference to `usb_reset'
  45. ../src/.libs/libmtp.so: undefined reference to `usb_clear_halt'
  46. ../src/.libs/libmtp.so: undefined reference to `usb_find_devices'
  47. ../src/.libs/libmtp.so: undefined reference to `usb_set_configuration'
  48. ../src/.libs/libmtp.so: undefined reference to `usb_close'
  49. ../src/.libs/libmtp.so: undefined reference to `usb_device'
  50. ../src/.libs/libmtp.so: undefined reference to `usb_resetep'
  51. ../src/.libs/libmtp.so: undefined reference to `usb_control_msg'
  52. ../src/.libs/libmtp.so: undefined reference to `usb_bulk_write'
  53. ../src/.libs/libmtp.so: undefined reference to `usb_bulk_read'
  54. ../src/.libs/libmtp.so: undefined reference to `usb_init'
  55. ../src/.libs/libmtp.so: undefined reference to `usb_set_debug'
  56. ../src/.libs/libmtp.so: undefined reference to `usb_open'
  57. ../src/.libs/libmtp.so: undefined reference to `usb_claim_interface'
  58. ../src/.libs/libmtp.so: undefined reference to `usb_get_string_simple'
  59. ../src/.libs/libmtp.so: undefined reference to `usb_detach_kernel_driver_np'
  60. ../src/.libs/libmtp.so: undefined reference to `usb_get_descriptor'
  61. ../src/.libs/libmtp.so: undefined reference to `usb_get_busses'
  62. collect2: error: ld returned 1 exit status
  63. Makefile:506: recipe for target 'mtp-connect' failed
  64. make[1]: *** [mtp-connect] Error 1
  65. make[1]: Leaving directory '/home/nikunj/Downloads/Packages/libmtp-1.1.15/examples'
  66. Makefile:526: recipe for target 'install-recursive' failed
  67. make: *** [install-recursive] Error 1
  68.  
captcha