cmake - How to build DJI OnBoard SDK samples on RPi? -


i've got dji m100 , raspberry pi connected serial according onboard sdk quickstart guide.

however i've not done lot of c/c++ stuff before , not sure how build samples provide. did apt-get install cmake since wasn't installed in raspbian distribution using.

i messed around bit , ran cmake cmakelists.txt , started doing things , output:

-- c compiler identification gnu 4.9.2 -- cxx compiler identification gnu 4.9.2 -- check working c compiler: /usr/bin/cc -- check working c compiler: /usr/bin/cc -- works -- detecting c compiler abi info -- detecting c compiler abi info - done -- check working cxx compiler: /usr/bin/c++ -- check working cxx compiler: /usr/bin/c++ -- works -- detecting cxx compiler abi info -- detecting cxx compiler abi info - done -- found git: /usr/bin/git (found version "2.1.4") cat: /etc/lsb-release: no such file or directory cmake error @ cmakelists.txt:70 (if): if given arguments:  "strequal" "16.04" unknown arguments specified -- configuring incomplete, errors occurred! see "/home/pi/onboard-sdk-3.1/sample/linux/blocking/cmakefiles/cmakeoutput.log". 

any ideas? can figure out coding part, getting environment set holding me up.

thanks in advance!

the error message isn't in c++ compiler, fails when cmake trying deduce needs compiled. that's why error isn't in .cpp file in cmakelists.txt line 70.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -