Coder Social home page Coder Social logo

Comments (6)

EricShaw95 avatar EricShaw95 commented on September 26, 2024

I meet the same problem with you now.Did you solve it?

from guidance-sdk.

eeroniemi avatar eeroniemi commented on September 26, 2024

@xtxper didn't solve it, still not working.

from guidance-sdk.

Hockery avatar Hockery commented on September 26, 2024

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()
#dji_guidance_usb
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!!

from guidance-sdk.

hatilima avatar hatilima commented on September 26, 2024

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 [email protected]
All the best!

from guidance-sdk.

ploverpang avatar ploverpang commented on September 26, 2024

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)

from guidance-sdk.

gvnnbrtln avatar gvnnbrtln commented on September 26, 2024

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 [email protected]
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?

from guidance-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.