ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Cmake cannot find package for dji onboard sdk file

asked 2016-10-01 13:50:27 -0500

Glen gravatar image

updated 2016-10-01 13:58:32 -0500

Hi

I was using dji onboard SDK for develop and meet problems about include sdk file into my project.

I put several project in one workspace, image description

After i 'catkin_make' it, it shows error,

CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "dji_sdk" with any
  of the following names:

    dji_sdkConfig.cmake
    dji_sdk-config.cmake

  Add the installation prefix of "dji_sdk" to CMAKE_PREFIX_PATH or set
  "dji_sdk_DIR" to a directory containing one of the above files.  If
  "dji_sdk" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  meteorOnboard/fcu/CMakeLists.txt:8 (find_package)


-- Could not find the required component 'dji_sdk'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "dji_sdk" with any
  of the following names:

    dji_sdkConfig.cmake
    dji_sdk-config.cmake

  Add the installation prefix of "dji_sdk" to CMAKE_PREFIX_PATH or set
  "dji_sdk_DIR" to a directory containing one of the above files.  If
  "dji_sdk" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  meteorOnboard/fcu/CMakeLists.txt:8 (find_package)

Any advice appreciated.

Glen

edit retag flag offensive close merge delete

Comments

1

Hi, Glen. I'm having some similar trouble. Did you find any solution to your problem? I'd love to hear about it.

Corusco gravatar image Corusco  ( 2017-01-20 11:13:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-10-31 12:32:29 -0500

paulacb gravatar image

Hi there,

I had the same problem, and I could fix it.

I had this:

*Call Stack (most recent call first):
 foobar/CMakeLists.txt:3 (find_package)*

So I deleted the folder foobar, I guess that the problem was for something that it was active or who knows... (I'm a beginner) When I deleted it ( user@name:~$ rm -R catkin_ws/src/foobar ), then it worked.

In your case says:

*Call Stack (most recent call first):
 meteorOnboard/fcu/CMakeLists.txt:8 (find_package)*

So the problem is in the CMakeLists.txt of the folder fcu.

Also:

*Could not find a package configuration file provided by "dji_sdk" with any...*

Make sure that you install the dji_sdk . Clone it: user@name:~$ git clone https://github.com/dji-sdk/Onboard-SD...

I dont' know if it would help you, actually I'm not really sure how I fix mine ^^'

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-10-01 13:50:27 -0500

Seen: 1,043 times

Last updated: Oct 01 '16