Giter Site home page Giter Site logo

Comments (4)

themarpe avatar themarpe commented on July 29, 2024 1

We've discussed with @saching13 regarding this issue (just a bump)
Main issue seems to be that depthai-core was build as static library instead of shared. If you want to use a static library you should specify the -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake to create relocatable code that can be linked into a shared library at the end. (Also clear hunter cache rm -r ~/.hunter between, as -fPIC doesn't properly create a different cache than non -fPIC builds)

from depthai-ros.

Armanfidan avatar Armanfidan commented on July 29, 2024 1

Thank you! I had not realised that I'd built depthai-core as a static library, building it with this option did not work but I built it as a dynamic library and it successfully linked.

from depthai-ros.

saching13 avatar saching13 commented on July 29, 2024

Sorry for the trouble.
Can you share the steps followed here, ROS version and OS here ?

from depthai-ros.

Armanfidan avatar Armanfidan commented on July 29, 2024

Hi again,
The Docker container has ROS Noetic and Ubuntu 20.04 Focal.
With rosdep installed and set up, I followed the following steps:

  • Installed libopencv-dev and python3-vcstool
  • Tried to execute sudo wget -qO- https://raw.githubusercontent.com/luxonis/depthai-ros/noetic-devel/install_dependencies.sh | sudo bash, which resulted in the following:
SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"
Failed to send reload request: No such file or directory
  • This was caused by the command sudo udevadm control --reload-rules (udev doesn't work properly in Docker containers), so I followed the steps outlined by Brandon in luxonis/depthai#295 (comment)
  • This time I got the error in luxonis/depthai-core#121 (comment) (This occurred when building XLink and was caused by the following lines in XLink.cmake:
if(NOT LIBUSB_INCLUDE_DIR OR NOT LIBUSB_LIBRARY)
        message(FATAL_ERROR "libusb is required")
endif()
  • I tried to fix this by setting the variables LIBUSB_LIBRARY and LIBUSB_INCLUDE_DIR in my .bashrc and passing them to cmake when building XLink, but it kept occurring.
  • When I ran sudo apt-get -y install cmake libusb-1.0-0-dev build-essential as outlined in the previous issue thread, this got resolved (But I assume I will run into problems when trying to connect the OAK, because udev is enabled in Docker).
  • Now that the dependencies are installed, I kept following the steps on https://github.com/luxonis/depthai-ros. When I ran catkin_make, I bumped into the issue in #2, which turned out to be because I had not installed depthai-core.
  • When I installed this, I ran the script again and I ran into the issue outlined here. I do not know how to proceed.

from depthai-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.