Ask Your Question

Revision history [back]

One way of compiling:- 1)chmod +x FILENAME.CPP 2)g++ -ggdb pkg-config --cflags opencv -o basename FILENAME.cpp .cpp FILENAME.CPP pkg-config --libs opencv 3)./FILENAME

And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h

SAMPLE CODE:

#include <highgui.h>

int main( int argc,char** argv)
{
    IplImage* img = cvLoadImage(argv[1]);
    cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
    cvShowImage("example1",img);
    cvWaitKey(0);
    cvReleaseImage( &img);
    cvDestroyWindow("example1");
}

AGAIN if problem still persists,here's a way of installing opencv

LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/

LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780

Hope this helps you :)

One way of compiling:- 1)chmod +x FILENAME.CPP 2)g++ FILENAME.CPP

g++ -ggdb pkg-config `pkg-config --cflags opencvopencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP `pkg-config --libs opencv
 -o basename FILENAME.cpp .cpp FILENAME.CPP pkg-config --libs opencv
3)./FILENAME

2)./FILENAME

And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h

SAMPLE CODE:

#include <highgui.h>

int main( int argc,char** argv)
{
    IplImage* img = cvLoadImage(argv[1]);
    cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
    cvShowImage("example1",img);
    cvWaitKey(0);
    cvReleaseImage( &img);
    cvDestroyWindow("example1");
}

AGAIN if problem still persists,here's a way of installing opencv

LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/

LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780

Hope this helps you :)

One way of compiling:- 1)chmod +x FILENAME.CPP

2)

g++ -ggdb `pkg-config --cflags opencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP `pkg-config --libs opencv

2)./FILENAME

And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h

SAMPLE CODE:

#include <highgui.h>

int main( int argc,char** argv)
{
    IplImage* img = cvLoadImage(argv[1]);
    cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
    cvShowImage("example1",img);
    cvWaitKey(0);
    cvReleaseImage( &img);
    cvDestroyWindow("example1");
}

AGAIN if problem still persists,here's a way of installing opencv

LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/

LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780

Hope this helps you :)

One way of compiling:- 1)chmod +x FILENAME.CPP

2)

g++ -ggdb `pkg-config --cflags opencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP `pkg-config --libs opencv
opencv'

2)./FILENAME

And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h

SAMPLE CODE:

#include <highgui.h>

int main( int argc,char** argv)
{
    IplImage* img = cvLoadImage(argv[1]);
    cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
    cvShowImage("example1",img);
    cvWaitKey(0);
    cvReleaseImage( &img);
    cvDestroyWindow("example1");
}

AGAIN if problem still persists,here's a way of installing opencv

LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/

LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780

Hope this helps you :)

One way of compiling:- 1)chmod +x FILENAME.CPP

2)

g++ -ggdb `pkg-config --cflags opencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP `pkg-config --libs opencv'

2)./FILENAME3)./FILENAME image.Ext

And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h

SAMPLE CODE:

#include <highgui.h>

int main( int argc,char** argv)
{
    IplImage* img = cvLoadImage(argv[1]);
    cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
    cvShowImage("example1",img);
    cvWaitKey(0);
    cvReleaseImage( &img);
    cvDestroyWindow("example1");
}

AGAIN if problem still persists,here's a way of installing opencv

LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/

LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780

Hope this helps you :)

One way of compiling:- 1)chmod +x FILENAME.CPPFILENAME.cpp

2)

g++ -ggdb `pkg-config --cflags opencv` -o `basename FILENAME.cpp .cpp` FILENAME.CPP FILENAME.cpp `pkg-config --libs opencv'

3)./FILENAME image.Ext

And now for the CV_WINDOW_AUTOSIZE error: include the hihgui.h(or highgui.hpp for c++),then cv.h

SAMPLE CODE:

#include <highgui.h>

int main( int argc,char** argv)
{
    IplImage* img = cvLoadImage(argv[1]);
    cvNamedWindow("example1" ,CV_WINDOW_AUTOSIZE);
    cvShowImage("example1",img);
    cvWaitKey(0);
    cvReleaseImage( &img);
    cvDestroyWindow("example1");
}

AGAIN if problem still persists,here's a way of installing opencv

LINK 1: http://abhishek4273.wordpress.com/2014/02/05/install-opencv/

LINK 2:http://answers.opencv.org/question/21275/make-errors-when-building-opencv-under-ubuntu/#27780

Hope this helps you :)