7 Replies - 38218 Views - Last Post: 10 January 2010 - 03:02 PM Rate Topic: -----

#1 umnoora  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 07-January 10

Cannot open include file: 'cv.h': No such file or directory

Posted 10 January 2010 - 03:26 AM

good afternoon,

i face a problem when i try to testany program from the internet,, I found the below error for 14 times or more to reach 134 error.. i asked my Mentor about it and he can not solve it..

c:\users\toshiba\desktop\testing\trackeye_sourcecode\calibration4pupil.h(9) : fatal error C1083: Cannot open include file: 'cv.h': No such file or directory

could u tell me how to solve it, by steps .. because am bigginer in C++ and I have to know each step..

here is my program
#if !defined(AFX_CALIBRATION4PUPIL_H__58B64560_C866_11D9_938B_88596D6BE953__INCLUDED_)
#define AFX_CALIBRATION4PUPIL_H__58B64560_C866_11D9_938B_88596D6BE953__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Calibration4Pupil.h : header file
//
#include "cv.h"
#include "highgui.h"
#include "IconButton.h"


/////////////////////////////////////////////////////////////////////////////
// Calibration4Pupil dialog

class Calibration4Pupil : public CDialog
{
// Construction
public:
	void DisplaySummary(void);
	int colorSpace;
	int circleAlgorithm;

	IplImage* original_img;
	IplImage* colorSpace_img;
	IplImage* thresholded_img;
	IplImage* edges_img;
	IplImage* final_img;
	Calibration4Pupil(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(Calibration4Pupil)
	enum { IDD = IDD_CALIBRATION4PUPIL };
	CIconButton	m_closePupilCalib;
	CIconButton	m_SaveSettings;
	CComboBox	m_circleAlgorithm;
	CComboBox	m_thresholdType;
	int thresholdingType;
	int	m_thresholdComponent;
	BOOL	m_binaryThreshold;
	int		m_thresholdValue;
	int		m_cannyApertureSize;
	double	m_cannyLower;
	double	m_cannyUpper;
	CString	m_sampleFilename;
	CString	m_sumcolorspace;
	CString	m_sumcomponent;
	CString	m_sumcanny;
	CString	m_sumbinthreshold;
	CString	m_sumbinthresholdvalue;
	CString	m_circleAlg;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(Calibration4Pupil)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(Calibration4Pupil)
	afx_msg void OnSavePupilCalib();
	virtual BOOL OnInitDialog();
	afx_msg void OnClosePupilCalib();
	afx_msg void OnCheck2();
	afx_msg void OnTest();
	afx_msg void OnDeletesampleEye();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CALIBRATION4PUPIL_H__58B64560_C866_11D9_938B_88596D6BE953__INCLUDED_)


This post has been edited by umnoora: 10 January 2010 - 03:42 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Cannot open include file: 'cv.h': No such file or directory

#2 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5345
  • View blog
  • Posts: 27,296
  • Joined: 10-May 07

Re: Cannot open include file: 'cv.h': No such file or directory

Posted 10 January 2010 - 03:28 AM

View Postumnoora, on 10 Jan, 2010 - 04:26 AM, said:

could u tell me how to solve it, by steps .. because am bigginer in C++ and I have to know each step..

The 1st step would be to show us the code you are using, if possible.
Was This Post Helpful? 0
  • +
  • -

#3 umnoora  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 07-January 10

Re: Cannot open include file: 'cv.h': No such file or directory

Posted 10 January 2010 - 04:02 AM

View Postno2pencil, on 10 Jan, 2010 - 02:28 AM, said:

View Postumnoora, on 10 Jan, 2010 - 04:26 AM, said:

could u tell me how to solve it, by steps .. because am bigginer in C++ and I have to know each step..

The 1st step would be to show us the code you are using, if possible.



i attached the code .. :)
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5345
  • View blog
  • Posts: 27,296
  • Joined: 10-May 07

Re: Cannot open include file: 'cv.h': No such file or directory

Posted 10 January 2010 - 04:06 AM

Do these three files exist in the current directory (the same as your code file)

"cv.h", "highgui.h", & "IconButton.h"
Was This Post Helpful? 0
  • +
  • -

#5 optix212  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 27
  • View blog
  • Posts: 509
  • Joined: 10-October 09

Re: Cannot open include file: 'cv.h': No such file or directory

Posted 10 January 2010 - 01:10 PM

It seems as though he copied and pasted. You're not going to get anywhere by copying any pasting code. Although it seems like that is a great way to learn, as many things have been learned through reverse engineering, this is not the case with programming.

Onto the code. There are many problems with it. These being that the header files don't even exist on your computer, there isn't a main() function, and well.. It's just plain wrong lol.

I'm not trying to be mean, but it is the cold hard truth about programming. I used to be like you, and just ask for code, and it got me nowhere for years. Programming is practical, meaning through practice will you only develop the skills to become an efficient programmer.

Is this for a college class, or are you learning solo?

This post has been edited by optix212: 10 January 2010 - 01:13 PM

Was This Post Helpful? 0
  • +
  • -

#6 umnoora  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 07-January 10

Re: Cannot open include file: 'cv.h': No such file or directory

Posted 10 January 2010 - 02:42 PM

View Postoptix212, on 10 Jan, 2010 - 12:10 PM, said:

Is this for a college class, or are you learning solo?


i am a senior student in the college and i am working for my final project. i have to an idea and we should prototype it and program it. with a little help from the teachers. we should to learn every things by our selves, so i am working in my mid-year break to save some time for next semester.
Was This Post Helpful? 0
  • +
  • -

#7 Delta_Echo  Icon User is offline

  • D.I.C Addict

Reputation: 5
  • View blog
  • Posts: 722
  • Joined: 24-October 07

Re: Cannot open include file: 'cv.h': No such file or directory

Posted 10 January 2010 - 02:46 PM

The error is clear, the file that the compiler is looking for does not exist.
What makes you think you even have this file?
Where do you expect it to be?
If you have it check the files actual name.
Was This Post Helpful? 0
  • +
  • -

#8 optix212  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 27
  • View blog
  • Posts: 509
  • Joined: 10-October 09

Re: Cannot open include file: 'cv.h': No such file or directory

Posted 10 January 2010 - 03:02 PM

if this is for college, why are you copying and pasting from the internet? Did your professor allow copyright infringement for your mid term?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1