OpenCV programming - highgui.h: no such file or directory
I installed OpenCV and am trying the example programs. When I try to compile like in the tutorial it is not finding highgui.h.
I have 64 bit Mint if that helps at all. Any input would be helpful, thanks. |
OpenCV libraries
http://packages.debian.org/sid/libhighgui-dev sudo apt-get install libhighgui-dev It is very easy to find highgui.h : http://packages.debian.org/search?su...ords=highgui.h Just enter highgui.h in "Search" → 'package contents' And the libhighgui-dev file list http://packages.debian.org/sid/amd64...i-dev/filelist /usr/include/opencv/highgui.h .. |
I installed those packages and I am still getting the same errors. I went ahead and navigated to /usr/include/opencv and I see highgui.h - the problem is g++ isn't seeing it.
|
Well, the file(s) can be included like this in your program :
#include <opencv/highgui.h> Or in a Makefile + probably a couple of other methods. .. |
Quote:
I'd prefer zypper rather than... http://opencv.willowgarage.com/wiki/...CV_on_Linux.3F Code:
# zypper install libcv1 libcv-dev libcvaux1 libcvaux-dev libhighgui1 libhighgui-dev Code:
linux-dopx:~ # opencv_ it is better to keep all the information in one place. |
#5, Anisha
Quote:
Will provide /usr/lib(64)/libhighgui.so, /usr/include/opencv/highgui.h, etc. ( ? No highgui.hpp, libhighgui.a in the Suse package ? ) Example finding e.g. highgui.h for Suse : http://rpm.pbone.net/ >> Search > Advanced Search : highgui.h, and tick "OpenSuSE". Regards . |
I use Linux Mint,too.
If you are going to compile any opencv project in C/C++, you should give the `pkg-config --libs --cflags opencv` arguments. It should be like this: g++ `pkg-config --libs --cflags opencv` myProject.cpp -o myProject If you don't mind, better go with an IDE like code::block or Qt, I've posted a tutorial how to connect the OpenCV library with the code::block. This is the link for the code::block : http://hxr99.blogspot.com/2011/12/ho...-block-in.html This is the link for the Qt : http://hxr99.blogspot.com/2011/12/op...ing-image.html There are a few examples too. Hope it will be useful for all LQers. |
All times are GMT -5. The time now is 03:22 PM. |