C++ sample app errors: report cannot open source file: all the header files

cpp

#1

Severity Code Description Project File Line Suppression State
Error (active) E1696 cannot open source file “opencv2/highgui/highgui.hpp” video-demo c:\xxx\source\repos\video\video-demo.cpp 6
Error (active) E1696 cannot open source file “opencv2/imgproc/imgproc.hpp” video-demo c:\xxx\source\repos\video\video-demo.cpp 7
Error (active) E1696 cannot open source file “boost/filesystem.hpp” video-demo c:\xxx\source\repos\video\video-demo.cpp 8
Error (active) E1696 cannot open source file “boost/timer/timer.hpp” video-demo c:\xxx\source\repos\video\video-demo.cpp 9
Error (active) E1696 cannot open source file “boost/program_options.hpp” video-demo c:\xxx\source\repos\video\video-demo.cpp 10
Error (active) E1696 cannot open source file “AFaceListener.hpp” video-demo c:\xxx\source\repos\video\video-demo.cpp 16
Error (active) E1696 cannot open source file “PlottingImageListener.hpp” video-demo c:\xxx\source\repos\video\video-demo.cpp 17
Error (active) E1696 cannot open source file “StatusListener.hpp” video-demo c:\xxx\source\repos\video\video-demo.cpp 18


#2

are those files all included in the installer? Also, only partial of the files showed in the project header files, some of them are not. But even for the ones showed in the project header files, I still cannot open them and actually cannot find them anywhere on my computer by search their names.


#3

the boost and opencv libraries are 3rd party dependencies of the sample, and should be installed via Nuget.

The files like AFaceListener.hpp, PlottingImageListener.hpp and StatusListener.hpp are in the cpp-sdk-samples repo: https://github.com/Affectiva/cpp-sdk-samples/tree/emotion-sdk/common

Make sure that directory is on your include path.