I am trying to get OAK-D to work in a VC++ (VS2015) application. I downloaded the bin, include , and lib folders from the Release V2.17.4 from the Realeases page here - https://github.com/luxonis/depthai-core/releases. However, I am unable to get the project to compile as dai:: Pipeline is not recognized in spite of having 'using namespace dai". Though dai is being recognized as a namespace dai:: Pipeline is not recognized. Can anyone help out, please? The OS is WIN10.

  • erik replied to this.

    Hi Erik,
    Thanks for your help. I downloaded the project from the link provided by you and did the following.

    1. Opened the project at depthai-core-mscv_fix\msvc and tried to build it. It could not find some include files. I copied the contents of the include folder to depthai-shared and then the 'file not found' errors vanished. However, I got 'CameraBoardSocket': is not a member of 'dai' error.
    2. I started CMake and ran Configure in the CMake UI. After doing configuration I clicked Generate and got an error saying 'Cannot find source file: depthai-core-mscv_fix/shared/depthai-shared/src/datatype/DatatypeEnum.cpp'. I searched the parent folder but this file does not exist in it.
    3. I saw that ALL_BUILD.vcxproj and other prj and sln files had been generated in the build folder by CMake. I opened ALL_BUILD.vcxproj in VS2015, changed the Platform Toolset to V14.0 and tried to build the project but got compile errors saying 'CameraBoardSocket' was not a member of dai

    What am I doing wrong?
    Thanks
    Kishor

    • erik replied to this.

      Hi KishorDurve,
      Could you please open an issue about all of this on depthai-core github repository?
      Thanks, Erik