# Different package version from voxl-cross and Voxl2

Source: https://forum.modalai.com/topic/4907/different-package-version-from-voxl-cross-and-voxl2
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2025-12-05 19:32:42 UTC by remill
Replies: 4 · Views: 443

## remill · 2025-12-05 19:32:42 UTC

Hi,

I am having an issue with compiling a library with voxl-cross and runing it on the Voxl2 board. I did compile on voxl-cross but when I try to run a programme that use the library. I got an error with libusb :

**voxl-tcp-neuro: symbol lookup error: /usr/local/lib/libcaer.so.3: undefined symbol: libusb_set_log_cb**

After a researching on google and asking AI chat bot. I found that the version of libusb on the Voxl2 board is 1.0.21 in contrast to 1.0.27 on voxl-cross. The result is that libusb missing libusb_set_log_cb.

I tried to update the version on Voxl2 but I did not succed because 1.0.21 is the latest version availible on ubuntu 18, but voxl-cross seem to run ubuntu 24.

Is there a way to make it work ?

## Reply by Eric Katzfey (ModalAI staff) · 2025-12-05 21:32:52 UTC

@remill said in [Different package version from voxl\-cross and Voxl2](/post/24554):
> 1.0.27 

Perhaps you can build the desired version of libusb from source and install it? We have used this approach for a variety of other "third party" libraries. Examples are here: https://gitlab.com/voxl-public/voxl-sdk/third-party?page=1

## Reply by remill · 2025-12-10 19:10:35 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

I tried it based on this [project](https://gitlab.com/voxl-public/voxl-sdk/third-party/voxl-jpeg-turbo)

but it need a CMakeList.txt for it to compile. I did build other third party library succesfully, but building libusb from source file does not provide a CMakeList.txt, at least from their [github](https://github.com/libusb/libusb). The only way they sugesst to install is with apt.

Is their a way to build from source without a Cmakelist.txt file ?

## Reply by Eric Katzfey (ModalAI staff) · 2025-12-11 15:26:49 UTC (in reply to remill)

@remill libusb doesn't use cmake. It uses autogen.sh, configure, make, etc. These are standard Linux build tools. If you enter a query such as "How do I build libusb on Linux?" into Google and check AI mode it will provide you with all the steps.

## Reply by remill · 2025-12-15 13:22:38 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 
Thanks Eric, building directly on the Voxl2 platform works.
