Open eeroniemi opened 6 years ago
I meet the same problem with you now.Did you solve it?
@xtxper didn't solve it, still not working.
I find two methods to deal with this error. i> i have insert the "usb-1.0" in three target_link_libraries, modify the CMakeList.txt like this `cmake_minimum_required(VERSION 2.8) project( dji_guidance_usb ) CMAKE_POLICY( SET CMP0015 NEW ) find_package( OpenCV ) if(OpenCV_FOUND) add_definitions(-DHAVE_OPENCV) endif()
add_executable( dji_guidance_usb main.cpp DJI_utility.cpp ) include_directories($(SOURCE_DIR)/../../../include)
if(WIN32) find_library(Guidance_Lib DJI_guidance.lib HINTS $(SOURCE_DIR)/../../../../lib/2013/x86) else() find_library(Guidance_Lib DJI_guidance HINTS $(SOURCE_DIR)/../../../../so/x64) target_link_libraries( dji_guidance_usb pthread usb-1.0) endif()
if(OpenCV_FOUND) target_link_libraries(dji_guidance_usb ${OpenCV_LIBS} ${Guidance_Lib} usb-1.0) else() target_link_libraries( dji_guidance_usb ${Guidance_Lib} usb-1.0) endif()`
ii> use the Makefile to build this project which needs move "libDJI_guidance.so" to this directory.
good lucky!!
It is actually easier to run the Guidance SDK on Ubuntu than it is in Windows (MS Visual Studio) because setting up the shared libraries and environment variables is just movement of necessary files (e.g .so) into the specified folders (e.g /usr/local/bin). Plus the use of the Makefile really simplifies the entire process of pointing to dependencies. If you guys are still facing the problem, please let me know so that I can prepare a lengthy explanation of what I did. I have so far managed to run sample code that uses the Guidance SDK on several machines...x64, x86 and now running on the DJI Manifold TK1 (ARM) processor. I don't know if I will see the responses to this but you can also contact me through jasperhatilima@gmail.com All the best!
sudo apt-get install libusb-1.0-dev
add "usb-1.0" to target_link_libraries in CMakeLists.txt files
target_link_libraries( dji_guidance_usb ${OpenCV_LIBS} ${Guidance_Lib} usb-1.0)
It is actually easier to run the Guidance SDK on Ubuntu than it is in Windows (MS Visual Studio) because setting up the shared libraries and environment variables is just movement of necessary files (e.g .so) into the specified folders (e.g /usr/local/bin). Plus the use of the Makefile really simplifies the entire process of pointing to dependencies. If you guys are still facing the problem, please let me know so that I can prepare a lengthy explanation of what I did. I have so far managed to run sample code that uses the Guidance SDK on several machines...x64, x86 and now running on the DJI Manifold TK1 (ARM) processor. I don't know if I will see the responses to this but you can also contact me through jasperhatilima@gmail.com All the best!
I am trying to run Guidance SDK on DJI Manifold, but uart example not works: it doesn't read anything from serial connection. I followed the DJI guide, enabled uart by Guidance Assistant software and connect with uart cable the uart port of Guidance and uart3 port of Manifold (/dev/ttyTHS2 in Manifold kernel) but no data arrives from Guidance. Any ideas? Were you able to run uart example on DJI Manifold?
I got error while trying to compile Guidance SDK USB example for Linux.
I followed this guide: https://developer.dji.com/guidance-sdk/documentation/quick-start/run-examples.html
System information:
Steps to reproduce: