ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Different package version from voxl-cross and Voxl2

    Ask your questions right here!
    2
    4
    49
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      remill
      last edited by

      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 ?

      Eric KatzfeyE 1 Reply Last reply Reply Quote 0
      • Eric KatzfeyE
        Eric Katzfey ModalAI Team @remill
        last edited by

        @remill said in Different package version from voxl-cross and Voxl2:

        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

        R 1 Reply Last reply Reply Quote 0
        • R
          remill @Eric Katzfey
          last edited by

          @Eric-Katzfey

          I tried it based on this project

          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. The only way they sugesst to install is with apt.

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

          Eric KatzfeyE 1 Reply Last reply Reply Quote 0
          • Eric KatzfeyE
            Eric Katzfey ModalAI Team @remill
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors