Code Monkey home page Code Monkey logo

Comments (4)

rlabs-oss avatar rlabs-oss commented on July 26, 2024 1

removing the hunter cache and previous build directory worked.

[ 96%] Linking CXX shared library libdepthai-core.so
[ 96%] Built target depthai-core
Scanning dependencies of target depthai-opencv
[ 98%] Building CXX object CMakeFiles/depthai-opencv.dir/src/opencv/ImgFrame.cpp.o
[100%] Linking CXX shared library libdepthai-opencv.so
[100%] Built target depthai-opencv

The problem is after building shared libs, rtabmap is not detecting them - manually defining the install folder
while building rtabmap fixes that.
cmake .. -Ddepthai_DIR="/home/notyou/depthai-core/build/install/lib/cmake/depthai"

from depthai-core.

rlabs-oss avatar rlabs-oss commented on July 26, 2024

Tried this and see "can not be used when making a shared object; recompile with -fPIC.
Attempting to use the OAK-D again with RTAB-Map. The depth-ai compiles in static build mode, rtabmap doesnt find it and cmakes as normal. I did managed to build it earlier in the year but things have changed since then.

from depthai-core.

themarpe avatar themarpe commented on July 26, 2024

@rlabs-oss can you share more details - the steps you've taken after removing the Hunter cache directory as well as any relevant output of the commands that you've executed.

from depthai-core.

themarpe avatar themarpe commented on July 26, 2024

@rlabs-oss correct, this is desired behavior. We've opted for installing to a build local directory by default instead of system directory, to not clutter the system with older versions, etc...

One can also specify the -D CMAKE_INSTALL_PREFIX=/usr/local which will cause the installation to be done in the specified folder. This also requires sudo when executing install target

from depthai-core.

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.