I've been having some trouble properly setting up the SDK to use in visual studio for c++ development.
I am using Visual Studio 2019 and running debug mode.
Although I've managed to get the RGB stream from the device, I keep getting thrown this asserts:
https://stackoverflow.com/questions/35310117/debug-assertion-failed-expression-acrt-first-block-header
It's probably got something to do with not having correct DLL files…
What I did at first is just downloaded the latest release from here: luxonis/depthai-core
Then just linked the include directiories and library directiories in visual studio and put the dll files (depthai-cored.dll and libusb-1.0d.dll) where my exe file is.
Then I also tried to get the library as is described in the github under "Non-CMake integration", so making a dynamic library with the cmake command and then install command. I'm guessing I need to somehow make it specify to build for visual studio 2019 or else it's just gonna build it for VS2022. I'm not too familiar with cmake and library building process so I would love if anyone could help clear up what am I doing wrong.