Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error #1

Closed
speedfreak01 opened this issue Oct 28, 2014 · 2 comments
Closed

Compile Error #1

speedfreak01 opened this issue Oct 28, 2014 · 2 comments

Comments

@speedfreak01
Copy link

First off let me say a big thanks for publishing this. Just got the RGB k95 today, and was disappointed with the lack of linux drivers.. but with anything linux.. its pretty much expected.

When attempting to make the binary file, i get the following output / errors.

rm -rf bin
mkdir bin
gcc -o bin/ckb-daemon -lusb-1.0 -std=c99 -O2 src/ckb-daemon/main.c
/tmp/ccZHmmup.o: In function usbdequeue': main.c:(.text+0x223): undefined reference tolibusb_control_transfer'
/tmp/ccZHmmup.o: In function usbcmp': main.c:(.text+0x9c0): undefined reference tolibusb_get_port_numbers'
main.c:(.text+0x9d8): undefined reference to libusb_get_port_numbers' /tmp/ccZHmmup.o: In functionopenusb':
main.c:(.text+0xa63): undefined reference to libusb_get_device_descriptor' main.c:(.text+0xbba): undefined reference tolibusb_open'
main.c:(.text+0xbef): undefined reference to libusb_set_auto_detach_kernel_driver' main.c:(.text+0xbfd): undefined reference tolibusb_claim_interface'
main.c:(.text+0xc25): undefined reference to libusb_release_interface' main.c:(.text+0xc54): undefined reference tolibusb_get_string_descriptor_ascii'
main.c:(.text+0xc79): undefined reference to libusb_get_string_descriptor_ascii' main.c:(.text+0xd67): undefined reference tolibusb_release_interface'
main.c:(.text+0xd70): undefined reference to libusb_close' /tmp/ccZHmmup.o: In functioncloseusb':
main.c:(.text+0xe6e): undefined reference to libusb_release_interface' main.c:(.text+0xe77): undefined reference tolibusb_close'
/tmp/ccZHmmup.o: In function quit': main.c:(.text+0x167a): undefined reference tolibusb_exit'
/tmp/ccZHmmup.o: In function main': main.c:(.text.startup+0x20): undefined reference tolibusb_init'
main.c:(.text.startup+0x30): undefined reference to libusb_init' main.c:(.text.startup+0x44): undefined reference tolibusb_set_debug'
main.c:(.text.startup+0x92): undefined reference to libusb_get_device_list' main.c:(.text.startup+0xcc): undefined reference tolibusb_free_device_list'
main.c:(.text.startup+0x103): undefined reference to libusb_hotplug_register_callback' main.c:(.text.startup+0x171): undefined reference tolibusb_handle_events_timeout_completed'
collect2: error: ld returned 1 exit status
make: *** [build] Error 1

Seems to die on building the daemon.
Checked that libusb is installed, standard version and dev..

Any ideas what might be causing this? im on ubuntu 14.04 if that makes any difference.

Appreciate the work.

@ccMSC
Copy link
Owner

ccMSC commented Oct 28, 2014

Whoops, looks like I wrote the makefile in the wrong order. Try downloading it again and see if it works now.

@speedfreak01
Copy link
Author

Thanks for the response, compiled fine this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants