luxonis / depthai-core

DepthAI C++ Library
MIT License
235 stars 127 forks source link

[BUG] Where is this file XLink/XLinkTime.h ? #1007

Closed christiangda closed 6 months ago

christiangda commented 6 months ago

Describe the bug

I compile depthai-core (from github main branch) for android, until here everything is Ok, then trying to use it on my Native Android App, I got the following error

  .....app/src/main/cpp/include/depthai/xlink/XLinkStream.hpp:20:10: fatal error: 'XLink/XLinkTime.h' file not found
  #include <XLink/XLinkTime.h>
           ^~~~~~~~~~~~~~~~~~~

Minimal Reproducible Example There is no minimal, sorry, to long to be explained here

Expected behavior Find the file XLink/XLinkTime.h in the repository github.com/luxonis/XLink/tree/master/include/XLink

themarpe commented 6 months ago

@christiangda It is under develop branch - https://github.com/luxonis/XLink/tree/develop/include/XLink

For exact specific commit, see:

hunter_config(
    XLink
    VERSION "luxonis-2021.4.2-xlink-linkid-race-fix"
    URL "https://github.com/luxonis/XLink/archive/e9eb1ef38030176ad70cddd3b545d5e6c509f1e1.tar.gz"
    SHA1 "b1e4ded41cd7b9c37189468e2aaddbb10cbda9f6"
    CMAKE_ARGS
        XLINK_ENABLE_LIBUSB=${DEPTHAI_ENABLE_LIBUSB}
)

under cmake/Hunter/config.cmake