kylemcdonald / ofxFaceTracker

CLM face tracking addon for openFrameworks based on Jason Saragih's FaceTracker.
http://facetracker.net/
Other
1.39k stars 369 forks source link

Cannot open include file: 'ofxCv.h': No such file or directory Visual Studio #140

Open justonedeveloper opened 7 years ago

justonedeveloper commented 7 years ago

Hello, I try to run the code which is located in example-advanced folder of https://github.com/kylemcdonald/ofxFaceTracker with Visual Studio using openFrameworks plugin. The example's addons.make file contains:

ofxCv
ofxFaceTracker
ofxGui
ofxOpenCv

So I downloaded https://github.com/kylemcdonald/ofxCv/ and placed both ofxCvand ofxFaceTrackerin openFrameworks/addons folder. I got error as shown below:

    Error   C1083   Cannot open include file: 'ofxCv/ContourFinder.h': No such file or directory    openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\ContourFinder.cpp    1   
    Error   C1083   Cannot open include file: 'ETF.h': No such file or directory    openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\CLD\src\ETF.cpp    1   
    Error   C1083   Cannot open include file: 'ofxCv/Distance.h': No such file or directory openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Distance.cpp 1   
    Error   C1083   Cannot open include file: 'ofxCv/Flow.h': No such file or directory openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Flow.cpp 1   
    Error   C1083   Cannot open include file: 'ofxCv/Helpers.h': No such file or directory  openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Helpers.cpp  1   
    Error   C1083   Cannot open include file: 'ofxCv/ObjectFinder.h': No such file or directory openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\ObjectFinder.cpp 1   
    Error   C1083   Cannot open include file: 'ofxCv/Kalman.h': No such file or directory   openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Kalman.cpp   1   
    Error   C1083   Cannot open include file: 'ofxCv/RunningBackground.h': No such file or directory    openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\RunningBackground.cpp    1   
    Error   C1083   Cannot open include file: 'ofxCv/Tracker.h': No such file or directory  openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Tracker.cpp  1   
    Error   C1083   Cannot open include file: 'ofxCv/Utilities.h': No such file or directory    openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Utilities.cpp    1   
    Error   C1083   Cannot open include file: 'ofxCv/Wrappers.h': No such file or directory openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Wrappers.cpp 1   
    Error   C1083   Cannot open include file: 'ETF.h': No such file or directory    openFrameworksLib   C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\CLD\src\fdog.cpp   5   
    Error   C1083   Cannot open include file: 'ofxCv.h': No such file or directory (compiling source file ..\..\..\..\addons\ofxFaceTracker\src\Expression.cpp) openFrameworksLib   c:\users\\openframeworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxfacetracker\src\Expression.h   3   
    Error   C1083   Cannot open include file: 'ofxCv.h': No such file or directory (compiling source file ..\..\..\..\addons\ofxFaceTracker\src\ExpressionClassifier.cpp)   openFrameworksLib   c:\users\\openframeworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxfacetracker\src\ExpressionClassifier.h 3   
    Error   C1083   Cannot open include file: 'ofxCv.h': No such file or directory (compiling source file ..\..\..\..\addons\ofxFaceTracker\src\ofxFaceTracker.cpp) openFrameworksLib   c:\users\\openframeworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxfacetracker\src\ofxFaceTracker.h   19  
    Error   C1083   Cannot open include file: 'ofxCv/Calibration.h': No such file or directory  MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Calibration.cpp  1   
    Error   C1083   Cannot open include file: 'ofxCv/ContourFinder.h': No such file or directory    MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\ContourFinder.cpp    1   
    Error   C1083   Cannot open include file: 'ETF.h': No such file or directory    MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\CLD\src\ETF.cpp    1   
    Error   C1083   Cannot open include file: 'ofxCv/Distance.h': No such file or directory MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Distance.cpp 1   
    Error   C1083   Cannot open include file: 'ofxCv/Flow.h': No such file or directory MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Flow.cpp 1   
    Error   C1083   Cannot open include file: 'ofxCv/Helpers.h': No such file or directory  MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Helpers.cpp  1   
    Error   C1083   Cannot open include file: 'ofxCv/Kalman.h': No such file or directory   MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Kalman.cpp   1   
    Error   C1083   Cannot open include file: 'ofxCv/ObjectFinder.h': No such file or directory MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\ObjectFinder.cpp 1   
    Error   C1083   Cannot open include file: 'ofxCv/RunningBackground.h': No such file or directory    MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\RunningBackground.cpp    1   
    Error   C1083   Cannot open include file: 'ofxCv/Tracker.h': No such file or directory  MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Tracker.cpp  1   
    Error   C1083   Cannot open include file: 'ofxCv/Utilities.h': No such file or directory    MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Utilities.cpp    1   
    Error   C1083   Cannot open include file: 'ofxCv/Wrappers.h': No such file or directory MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\ofxCv\src\Wrappers.cpp 1   
    Error   C1083   Cannot open include file: 'ETF.h': No such file or directory    MyApplication3  C:\Users\\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxCv\libs\CLD\src\fdog.cpp   5   
    Error   C1083   Cannot open include file: 'ofxCv.h': No such file or directory (compiling source file ..\..\..\..\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxFaceTracker\src\Expression.cpp)    MyApplication3  c:\users\\openframeworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxfacetracker\src\Expression.h   3   
    Error   C1083   Cannot open include file: 'ofxCv.h': No such file or directory (compiling source file ..\..\..\..\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxFaceTracker\src\ExpressionClassifier.cpp)  MyApplication3  c:\users\\openframeworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxfacetracker\src\ExpressionClassifier.h 3   
    Error   C1083   Cannot open include file: 'ofxCv.h': No such file or directory (compiling source file ..\..\..\..\openFrameworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxFaceTracker\src\ofxFaceTracker.cpp)    MyApplication3  c:\users\\openframeworks\of_v0.9.0_vs_release\of_v0.9.0_vs_release\addons\ofxfacetracker\src\ofxFaceTracker.h   19  
    Error   C1083   Cannot open include file: 'ofxCv.h': No such file or directory (compiling source file src\main.cpp) MyApplication3  c:\users\\documents\visual studio 2015\projects\myapplication3\src\ofApp.h  4   
    Error   C1083   Cannot open include file: 'ofxCv.h': No such file or directory (compiling source file src\ofApp.cpp)    MyApplication3  c:\users\\documents\visual studio 2015\projects\myapplication3\src\ofApp.h  4

How to solve the problem?Any suggestions?

reedjones commented 4 years ago

I have the same problem

diemildefreude commented 2 years ago

Not sure if this is related or a different problem, but I get this error when I try to build the example-advanced project:

Cannot open include file: 'opencv/cv.h': No such file or directory (compiling source file src\ofApp.cpp) example-advanced C:\Users\selli\openFrameworks\addons\ofxFaceTracker\libs\FaceTracker\include\FaceTracker\IO.h 42

Searching the project in the Solution Explorer doesn't show a "cv.h" file anywhere.

The error is at line 42: #include <opencv/cv.h>

Interestingly, Line 43 has: #include <opencv2/opencv.hpp>

which returns no error as opencv.hpp is indeed found under ofxOpenCv/libs/opencv/include/opencv2

But there's no cv.h file in any of those directories.