Please select Into the mobile phone version | Continue to access the computer ver.
Close
You need to log in before you can reply       Login | Register now

[Help] OSDK Linux sample code build error on Edison board

Author: yipengli 2017-4-20 10:23
1 195
I am trying to compile the sample OSDK code on an Intel Edison board (cmake .), but it failed with the following error:

cat: /etc/lsb-release: No such file or directory
CMake Error at contrib/DJIConfig.cmake:20 (if):
  if given arguments:

    "STREQUAL" "16.04"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:11 (include)

-- Configuring incomplete, errors occurred!


It tries to compile the more advanced features, such as LiDAR detection and precision mission. How can I turn it off or make the build work?

Thanks in advance.



Reply
Replies
yipengli
Found the issue. There is no lsb-release for Yocto, the embedded Linux for Edison. As a result, LSB_VER is not set and the subsequent check failed. A hack fix is to add the following to the contrib/DJIConfig.cmake: set(LSB_VER "14.04")

2017-4-20 13:59
You need to log in before you can reply Login | Register now

Quick Reply Back to top Back to list
Quick Reply Back to top Back to list