Onboard-SDK icon indicating copy to clipboard operation
Onboard-SDK copied to clipboard

fatal error: dji_linux_environment.hpp: No such file or directory [DJI OSDK ROS 4.1.0]

Open ykn96 opened this issue 3 years ago • 4 comments

Hello, while trying to catkin_make for DJI OSDK ROS , i encountered this problem of :

fatal error: dji_linux_environment.hpp: No such file or directory

I have already installed DJI OSDK 4.1.0 successfully. I have also copied the dji_linux_environment.hpp and dji_linux_environment.cpp file to where the samples are located, but to no avail.

ykn96 avatar Jan 11 '22 08:01 ykn96

Agent comment from DJI SDK in Zendesk ticket #59075:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

dji-dev avatar Jan 11 '22 08:01 dji-dev

Agent comment from kyle.cai in Zendesk ticket #59075:

Dear developer ,

Thank you for contacting DJI.

Which OSDK Linux version are you using?Please install the OSDK(linux) master branch and then compile the OSDK-ROS master branch. If the error still exist, please provide the complete temminal logs.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

°°°

dji-dev avatar Jan 11 '22 10:01 dji-dev

I am using both OSDK 4.1.0 and OSDK ROS 4.1.0 the normal compilation is ok.

I want to create my own ROS executable. I have copied the dji_linux_environment.hpp and dji_linux_environment.cpp into the same folder as the samples.

In file included from /media/dji/80GBstore/djisdk/catkin_ws/src/Onboard-SDK-ROS/src/dji_osdk_ros/samples/KN_target_tracker.cpp:33:0:
/media/dji/80GBstore/djisdk/catkin_ws/src/Onboard-SDK-ROS/src/dji_osdk_ros/samples/dji_linux_helpers.hpp:36:37: fatal error: dji_linux_environment.hpp: No such file or directory
compilation terminated.
Onboard-SDK-ROS/src/dji_osdk_ros/samples/CMakeFiles/KN_target_tracker.dir/build.make:75: recipe for target 'Onboard-SDK-ROS/src/dji_osdk_ros/samples/CMakeFiles/KN_target_tracker.dir/KN_target_tracker.cpp.o' failed
make[2]: *** [Onboard-SDK-ROS/src/dji_osdk_ros/samples/CMakeFiles/KN_target_tracker.dir/KN_target_tracker.cpp.o] Error 1
CMakeFiles/Makefile2:5600: recipe for target 'Onboard-SDK-ROS/src/dji_osdk_ros/samples/CMakeFiles/KN_target_tracker.dir/all' failed
make[1]: *** [Onboard-SDK-ROS/src/dji_osdk_ros/samples/CMakeFiles/KN_target_tracker.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j6 -l6" failed

Here are my includes

#include "dji_vehicle.hpp"
#include "std_msgs/String.h"
#include "dji_linux_environment.hpp"
#include "dji_linux_helpers.hpp"

#include <ros/ros.h>
#include <dji_osdk_ros/common_type.h>
#include <dji_osdk_ros/GimbalAction.h>
#include <dji_osdk_ros/CameraEV.h>
#include <dji_osdk_ros/CameraShutterSpeed.h>
#include <dji_osdk_ros/CameraAperture.h>
#include <dji_osdk_ros/CameraISO.h>
#include <dji_osdk_ros/CameraFocusPoint.h>
#include <dji_osdk_ros/CameraTapZoomPoint.h>
#include <dji_osdk_ros/CameraSetZoomPara.h>
#include <dji_osdk_ros/CameraZoomCtrl.h>
#include <dji_osdk_ros/CameraStartShootBurstPhoto.h>
#include <dji_osdk_ros/CameraStartShootAEBPhoto.h>
#include <dji_osdk_ros/CameraStartShootSinglePhoto.h>
#include <dji_osdk_ros/CameraStartShootIntervalPhoto.h>
#include <dji_osdk_ros/CameraStopShootPhoto.h>
#include <dji_osdk_ros/CameraRecordVideoAction.h>

ykn96 avatar Jan 14 '22 03:01 ykn96

Was this ever resolved? I am having the same problem occur to me also.

MasterVols avatar Feb 01 '23 22:02 MasterVols