{"issue":{"milestone":null,"user":{"id":1267739,"login":"vedovatti","url":"https://api.github.com/users/vedovatti","avatar_url":"https://secure.gravatar.com/avatar/c6b3a66177d30be301fac8ebcf66fef2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c6b3a66177d30be301fac8ebcf66fef2"},"created_at":"2011-12-16T12:46:34Z","title":"Not possible to compile it","state":"open","updated_at":"2011-12-17T11:21:26Z","labels":[],"id":2579317,"html_url":"https://github.com/andree182/vfs301/issues/4","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Hi Andree. Thanks for working on this driver. I cannot compile it. (just for the record I am not a programmer). So when I compile it i get:\r\ngcc -ggdb `pkg-config --cflags libusb-1.0` `pkg-config --libs libusb-1.0` -o cli proto.c cli.c\r\n/tmp/cchqESW9.o: In function `usb_init':\r\n/home/carlos/Desktop/VFS301/cli/cli.c:52: undefined reference to `libusb_init'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:60: undefined reference to `libusb_open_device_with_vid_pid'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:73: undefined reference to `libusb_kernel_driver_active'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:75: undefined reference to `libusb_detach_kernel_driver'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:81: undefined reference to `libusb_claim_interface'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:88: undefined reference to `libusb_reset_device'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:94: undefined reference to `libusb_control_transfer'\r\n/tmp/cchqESW9.o: In function `usb_deinit':\r\n/home/carlos/Desktop/VFS301/cli/cli.c:110: undefined reference to `libusb_reset_device'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:117: undefined reference to `libusb_release_interface'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:124: undefined reference to `libusb_close'\r\n/home/carlos/Desktop/VFS301/cli/cli.c:130: undefined reference to `libusb_exit'\r\n/tmp/cchqESW9.o: In function `usb_recv':\r\n/home/carlos/Desktop/VFS301/cli/cli.c:161: undefined reference to `libusb_bulk_transfer'\r\n/tmp/cchqESW9.o: In function `usb_send':\r\n/home/carlos/Desktop/VFS301/cli/cli.c:180: undefined reference to `libusb_bulk_transfer'\r\ncollect2: ld returned 1 exit status\r\nmake: *** [cli] Error 1\r\nI have installed the packages libusb1-0, libusb1-0 dev, make and g++. It supposed to compile it without problem. Do you have any suggestion about this?\r\nI am using Ubuntu 11.10 64bit. Another user claimed as well that cannot compile it and is using 64bit. Do you think is problem with the architecture?\r\nThanks","number":4,"url":"https://api.github.com/repos/andree182/vfs301/issues/4","comments":2,"assignee":null},"comment":{"user":{"id":1269468,"login":"mog422","url":"https://api.github.com/users/mog422","avatar_url":"https://secure.gravatar.com/avatar/839e9e57b14cafdbf6e694e9b9e6f7aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"839e9e57b14cafdbf6e694e9b9e6f7aa"},"created_at":"2011-12-17T11:21:26Z","updated_at":"2011-12-17T11:21:26Z","id":3188931,"body":"You must chagne makefile\r\n\tgcc -ggdb `pkg-config --cflags libusb-1.0` `pkg-config --libs libusb-1.0` -o $@ proto.c cli.c\r\n->\r\n\tgcc -ggdb `pkg-config --cflags libusb-1.0` -o $@ proto.c cli.c `pkg-config --libs libusb-1.0`\r\n","url":"https://api.github.com/repos/andree182/vfs301/issues/comments/3188931"},"action":"created"}