-
Notifications
You must be signed in to change notification settings - Fork 10
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
undefined reference Device.cc #1
Comments
@fourpoint you seem to be missing It may also be a difference in |
Hi @maciek134 ,
As you can see, libusb-1.0-0 is installed:
|
@Pokornz I'll spin up a Ubuntu VM and take a look. Which version do you use? |
Ubuntu version? 18.04.5 LTS |
Was this ever resolved ? would like to use it |
Hi, I can't compile your code. Can you please help?
/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::~Device()': Device.cc:(.text+0x10): undefined reference to
libusb_release_interface'Device.cc:(.text+0x1f): undefined reference to
libusb_close' Device.cc:(.text+0x2b): undefined reference to
libusb_exit'Device.cc:(.text+0x4f): undefined reference to
libusb_attach_kernel_driver' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::m_read()':Device.cc:(.text+0xc4): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::m_write(b6::Packet)':Device.cc:(.text+0x18b): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::m_sendCommand(b6::CMD)':Device.cc:(.text+0x23f): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::stopCharging()':Device.cc:(.text+0x1075): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::Device()':Device.cc:(.text+0x127b): undefined reference to
libusb_init' Device.cc:(.text+0x1295): undefined reference to
libusb_open_device_with_vid_pid'Device.cc:(.text+0x12a8): undefined reference to
libusb_kernel_driver_active' Device.cc:(.text+0x12b8): undefined reference to
libusb_claim_interface'Device.cc:(.text+0x12ff): undefined reference to
libusb_detach_kernel_driver' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::setBuzzers(bool, bool)':Device.cc:(.text+0x1635): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::setCycleTime(int)':Device.cc:(.text+0x17db): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::setTempLimit(int)':Device.cc:(.text+0x195b): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::setCapacityLimit(bool, int)':Device.cc:(.text+0x1b45): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o): In function
b6::Device::setTimeLimit(bool, int)':Device.cc:(.text+0x1d75): undefined reference to
libusb_interrupt_transfer' /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libb6.a(Device.cc.o):Device.cc:(.text+0x2292): more undefined references to
libusb_interrupt_transfer' followcollect2: error: ld returned 1 exit status
CMakeFiles/ChargeGuru.dir/build.make:151: recipe for target 'ChargeGuru' failed
make[2]: *** [ChargeGuru] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ChargeGuru.dir/all' failed
make[1]: *** [CMakeFiles/ChargeGuru.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: