Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
justonedeveloper opened this issue Apr 23, 2017 · 2 comments

Comments

@justonedeveloper
Copy link

justonedeveloper commented Apr 23, 2017

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 ofxCv and ofxFaceTracker in 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
Copy link

I have the same problem

@diemildefreude
Copy link

diemildefreude commented Dec 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants