Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] error failing to build the package for ROS noetic #549

Open
ChehabiMed opened this issue Jun 21, 2024 · 1 comment
Open

[BUG] error failing to build the package for ROS noetic #549

ChehabiMed opened this issue Jun 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ChehabiMed
Copy link

Describe the bug
I'm using Ubuntu 20.04 and Ros noetic, i tried to build the depthai-ros for noetic but get an error failing to build, here are the details:

_______________________________________________________________________________
Errors     << depthai_bridge:make /home/kiira/catkin_ws/logs/depthai_bridge/build.make.000.log
/usr/bin/ld: /opt/ros/noetic/lib/x86_64-linux-gnu/cmake/depthai/dependencies/lib/libspdlog.a(spdlog.cpp.o): relocation R_X86_64_TPOFF32 against `_ZGVZN6spdlog7details2os9thread_idEvE3tid' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /opt/ros/noetic/lib/x86_64-linux-gnu/libdepthai-core.a(CalibrationHandler.cpp.o): relocation R_X86_64_PC32 against symbol `_ZGVZN3dai7Logging11getInstanceEvE7logging' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/depthai_bridge.dir/build.make:284: /home/kiira/catkin_ws/devel/.private/depthai_bridge/lib/libdepthai_bridge.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:249: CMakeFiles/depthai_bridge.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
cd /home/kiira/catkin_ws/build/depthai_bridge; catkin build --get-env depthai_bridge | catkin env -si  /usr/bin/make --jobserver-auth=3,4; cd -

...............................................................................
Failed     << depthai_bridge:make                  [ Exited with code 2 ]      
Failed    <<< depthai_bridge                       [ 43.4 seconds ]            
Abandoned <<< depthai-ros                          [ Unrelated job failed ]    
Abandoned <<< depthai_examples                     [ Unrelated job failed ]    
Abandoned <<< depthai_ros_driver                   [ Unrelated job failed ]    
Abandoned <<< viso2                                [ Unrelated job failed ]    
_____________________

i tried the solutions in the issue section but didn't success.

@ChehabiMed ChehabiMed added the bug Something isn't working label Jun 21, 2024
@ChehabiMed ChehabiMed changed the title [BUG] { error failing to build the package for ROS noetic} [BUG] error failing to build the package for ROS noetic Jun 21, 2024
@Serafadam
Copy link
Collaborator

Hi, this is related to #540, you should be able to build if you run sudo apt update && sudo apt upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants