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

libusb error when buidling cltool and Examples #622

Closed
andrewjlock opened this issue May 17, 2024 · 2 comments
Closed

libusb error when buidling cltool and Examples #622

andrewjlock opened this issue May 17, 2024 · 2 comments

Comments

@andrewjlock
Copy link

andrewjlock commented May 17, 2024

I am trying to run some IMX-5 units (and hopefully soon some IG-2-IMX-5s) on Raspberry Pis (model 5) running Ubuntu 24.04 server.

I can build the parent SDK library successfully. But when I try and build the cltool or ExampleProjects libraries I get errors relating to libusb such as:

undefined reference to `libusb_init'
undefined reference to `libusb_close'
undefined reference to `libusb_exit'

As far as I can tell, I have followed the Ubuntu-latest continuous integration workflow exactly, and installed the required dependencies. I plan to run the sensors with ROS , but wanted to check integration with the CL tool first. I have tried in vein to include the libusb package in the CL tool CMakeLists.txt - but I admit I am not particularly experienced in building complex C++ projects.

Do you have any advice how to get this running? Thanks.

@andrewpriddis
Copy link
Contributor

You need to pull the submodules. libusb is one of them. git submodule update --init --recursive

@andrewjlock
Copy link
Author

Ah, thank you very much for the prompt response. This has resolved it.

I had overlooked submodules, thinking the issue was with the system libusb installation.

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