Code Monkey home page Code Monkey logo

Comments (4)

whoenig avatar whoenig commented on August 22, 2024 1

Looks like you are missing the git submodules. Try git submodule init and git submodule update.

from crazyflie_ros.

Williamrjw avatar Williamrjw commented on August 22, 2024

Looks like you are missing the git submodules. Try git submodule init and git submodule update.

I tried that, but a new problem occurred.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
USB_LIB
    linked by target "crazyflie_cpp" in directory /root/crazyflie_ws/src/crazyflie_ros/crazyflie_cpp

-- Configuring incomplete, errors occurred!
See also "/root/crazyflie_ws/build/CMakeFiles/CMakeOutput.log".
See also "/root/crazyflie_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

By the way, I am trying to implement this project in docker, and I see that this error seems to be related to USB, so I am considering whether it can be implemented in docker. My code to generate the container

docker run -it --name testusb --privileged -v /dev/bus/usb:/dev/bus/usb 【IMAGE】 /bin/bash

I want to know if this error is related to docker, if it doesn't matter, I sincerely hope you can tell me the solution, if it is related to the characteristics of docker, then I will try other methods, thank you very much!

from crazyflie_ros.

Williamrjw avatar Williamrjw commented on August 22, 2024

Looks like you are missing the git submodules. Try git submodule init and git submodule update.

I tried that, but a new problem occurred.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
USB_LIB
    linked by target "crazyflie_cpp" in directory /root/crazyflie_ws/src/crazyflie_ros/crazyflie_cpp

-- Configuring incomplete, errors occurred!
See also "/root/crazyflie_ws/build/CMakeFiles/CMakeOutput.log".
See also "/root/crazyflie_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

By the way, I am trying to implement this project in docker, and I see that this error seems to be related to USB, so I am considering whether it can be implemented in docker. My code to generate the container

docker run -it --name testusb --privileged -v /dev/bus/usb:/dev/bus/usb 【IMAGE】 /bin/bash

I want to know if this error is related to docker, if it doesn't matter, I sincerely hope you can tell me the solution, if it is related to the characteristics of docker, then I will try other methods, thank you very much!

I used

apt install libusb-1.0-0-dev

catkin_make successfully.
Thank you for your reading this issue

from crazyflie_ros.

whoenig avatar whoenig commented on August 22, 2024

Thanks for the update!

from crazyflie_ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.