linux - Error on building OpenCV (C++) -
linux - Error on building OpenCV (C++) -
building code (below) returns error 'imread' not fellow member of 'cv'
.
i using:
ubuntu 11.04. libcv @ 2.1.0-3ubuntu1 cmake build scheme (with project(foo) , add_executable(foo main.cpp) in it.)main.cpp:
#include <opencv/cv.h> int main(int argc, char **argv) { cv::mat src = cv::imread("frame_original.png", 0); homecoming 0; }`
what need include cv::imread work?
imread part of opencv 2.1: http://opencv.willowgarage.com/documentation/cpp/highgui_reading_and_writing_images_and_video.html?highlight=imread#imread on system? need include? can find documentation tells me header file need opencv utilize specific function?
you should include opencv/highgui.h
.
c++ linux ubuntu opencv
Comments
Post a Comment