umdlife / psdk_ros2

This repository is a ROS 2 wrapper for the DJI PSDK libraries.

Home Page:https://umdlife.github.io/psdk_ros2/documentation/Introduction.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attempting to build the master branch of the repo leads to a linker error

Yamboy1 opened this issue · comments

Tell us about your environment

  • Ubuntu version: Ubuntu 22.04
  • Docker Version:
  • ROS/ROS2 version: Humble
  • Commit hash: c567189

Steps to reproduce issue

Follow the getting started instructions: https://umdlife.github.io/psdk_ros2/documentation/GettingStarted.html

Expected behavior

The build complete's successfully

Actual behavior

The build fails on a linker error:

/usr/bin/ld: libpsdk_wrapper_libs.so: undefined reference to `DjiFlightController_Deinit'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/psdk_wrapper_node.dir/build.make:247: bin/psdk_wrapper_node] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/psdk_wrapper_node.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< psdk_wrapper [2min 25s, exited with code 2]
                                      
Summary: 1 package finished [3min 55s]
  1 package failed: psdk_wrapper
  1 package had stderr output: psdk_wrapper

Additional information

We have previous version of the repository cloned from 72cac88 which works perfectly fine

Are you willing to make a PR? If yes, add the PR link here.

I'll have a look, but I'm not sure if I'm skilled enough with C++ to figure out the issue

Problem solved, we've been using v3.8 at work, and this is an incompatibility between building for 3.5 and then linking to 3.8

Hey @Yamboy1, soon we will release a version compatible with PSDK v3.8. Stay tuned