luxonis / depthai-core

DepthAI C++ Library
MIT License
238 stars 128 forks source link

namespace "dai" has no member "Pipeline" C++ ERROR #385

Open MrTitusZ opened 2 years ago

MrTitusZ commented 2 years ago

I have downloaded and extracted depthai-core-v2.14.1-win64.zip. I created a new c++ project in Visual Studio. I right clicked on the project, then Properties -> VC++ Directories and Include Directories -> Edit and then added the extracted depthai include path. When I try to run the example C++ code from the getting started page: https://docs.luxonis.com/en/latest/pages/tutorials/getting-started-with-poe/, I get the namespace "dai" has no member "Pipeline" error. How can I import the depthai library properly in Visual Studio?

themarpe commented 2 years ago

Hi @MrTitusZ

Follow the steps outlined in: https://github.com/luxonis/depthai-core#non-cmake-integration-visual-studio-xcode-codeblocks- But skip the building, and just point the include directories to relevant directories in the prebuilt win64 package

Also, feel free to post the error log or a snippet of it here, for easier debugging.