Jump to content

make errors compiling dfu-programmer-0.5.4 in ubuntu


lester
Go to solution Solved by lester,

Recommended Posts

When attempting to compile dfu-programer-0.5.4 on Ubuntu, getting many errors when "making".

./configure no problem.

Any help much apprerciated.

make all-recursive
make[1]: Entering directory `DuckEncoder_2_6_3/dfu-programmer-0.5.4'
Making all in src
make[2]: Entering directory `DuckEncoder_2_6_3/dfu-programmer-0.5.4/src'
gcc -Wall -g -O2 -I/usr/include/libusb-1.0 -lusb-1.0 -o dfu-programmer main.o arguments.o atmel.o commands.o dfu.o intel_hex.o util.o
main.o: In function `main':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/main.c:58: undefined reference to `libusb_init'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/main.c:108: undefined reference to `libusb_release_interface'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/main.c:121: undefined reference to `libusb_close'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/main.c:131: undefined reference to `libusb_exit'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/main.c:79: undefined reference to `libusb_set_debug'
dfu.o: In function `dfu_transfer_out':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:836: undefined reference to `libusb_control_transfer'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:836: undefined reference to `libusb_control_transfer'
dfu.o: In function `dfu_transfer_in':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:863: undefined reference to `libusb_control_transfer'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:863: undefined reference to `libusb_control_transfer'
dfu.o: In function `dfu_transfer_out':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:836: undefined reference to `libusb_control_transfer'
dfu.o:DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:863: more undefined references to `libusb_control_transfer' follow
dfu.o: In function `dfu_device_init':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:388: undefined reference to `libusb_get_device_list'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:394: undefined reference to `libusb_get_device_descriptor'
dfu.o: In function `dfu_find_interface':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:677: undefined reference to `libusb_get_config_descriptor'
dfu.o: In function `dfu_device_init':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:415: undefined reference to `libusb_open'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:417: undefined reference to `libusb_set_configuration'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:445: undefined reference to `libusb_close'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:451: undefined reference to `libusb_free_device_list'
dfu.o: In function `dfu_find_interface':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:716: undefined reference to `libusb_free_config_descriptor'
dfu.o: In function `dfu_device_init':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:419: undefined reference to `libusb_claim_interface'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:436: undefined reference to `libusb_release_interface'
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:426: undefined reference to `libusb_free_device_list'
dfu.o: In function `dfu_make_idle':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:814: undefined reference to `libusb_reset_device'
dfu.o: In function `dfu_device_init':
DuckEncoder_2_6_3/dfu-programmer-0.5.4/src/dfu.c:431: undefined reference to `libusb_free_device_list'
collect2: error: ld returned 1 exit status
make[2]: *** [dfu-programmer] Error 1
make[2]: Leaving directory `DuckEncoder_2_6_3/dfu-programmer-0.5.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `DuckEncoder_2_6_3/dfu-programmer-0.5.4'
make: *** [all] Error 2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...