LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-12-2012, 05:37 AM   #1
dibyamohanty02
LQ Newbie
 
Registered: Nov 2012
Location: Kolkata,India
Posts: 5

Rep: Reputation: Disabled
Facing problem while running a Opencv program


While trying to run the program eigenface.c (http://http://www.cognotics.com/open.../part5-src.zip) using OpenCv getting the following error :

eigenface.c:26:19: fatal error: cvaux.h: No such file or directory
compilation terminated.


How to resolve this?
 
Old 12-13-2012, 06:36 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,169

Rep: Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645
/usr/include/opencv/cvaux.h : You can use pkgconfig to add the path.
Like :
gcc -Wall -g eigenface.c -o eigenface `pkg-config --cflags opencv`


Or add a CFLAG : CFLAGS=-I/usr/include/opencv/

etc.

( The package 'opencv-devel' or 'libopencv-dev' is required.)

.

Last edited by knudfl; 12-13-2012 at 07:33 AM.
 
Old 12-14-2012, 04:38 AM   #3
dibyamohanty02
LQ Newbie
 
Registered: Nov 2012
Location: Kolkata,India
Posts: 5

Original Poster
Rep: Reputation: Disabled
Still facing the same problem..
 
Old 12-14-2012, 05:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,169

Rep: Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645Reputation: 2645
# 3
Quote:
Still facing the same problem..
The same problem = "Not finding cvaux.h" !

Did you install *opencv-dev* ? ?

Which OS are you using ? http://linuxsilo.net/docs/smart-questions_en.html
http://www.linuxquestions.org/linux/...Ask_a_Question

A valid link to "part5-src.zip"
http://www.cognotics.com/opencv/serv.../part5-src.zip
http://www.cognotics.com/opencv/servo_2007_series/

eigenface.c : It's c++ code : g++ must be used, not gcc → →
g++ eigenface.c -o eigenface `pkg-config --cflags opencv`
Or better for that old code :
g++41 eigenface.c -o eigenface `pkg-config --cflags opencv`
There a minor bug in the "eigenface.c cpp" file.
The headers cv.h, cvaux.h are found OK.

Works too : g++ eigenface.c -o eigenface -I/usr/include/opencv/
( Except for the bug.)

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to solve errors while compiling opencv program with header file? like g++ `pkg-c prithvi_patel Linux - Newbie 1 04-05-2012 03:38 AM
OpenCV - Pixel format of incoming image is unsupported by OpenCV golmschenk Programming 1 04-01-2011 01:32 PM
Problem linking against OpenCV C++ API Germanchu Linux - Software 14 08-22-2010 08:01 AM
Problem with Running a Program linux_2007_ Linux - General 1 05-21-2007 08:06 PM
problem running program as user FlAWD Linux - General 1 10-15-2003 08:31 AM


All times are GMT -5. The time now is 10:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration