Ask Your Question

taogashi's profile - activity

2013-10-26 02:54:12 -0500 answered a question problems cross compiling OpenCV with FFMpeg for ARM Linux

seems questions asked here could hardly be answered for long... I followed the tutorial to finish the cross compilation on my 12.04, but have even no idea how to cross compile a basic example with openCV... /*********************/

include <cxcore.hpp>

include <cv.hpp>

include <highgui.hpp>

include <iostream>

using namespace cv; using namespace std;

int main(void) { Mat orig_image; Mat gray_image;

orig_image = imread("marker.jpg", IMREAD_COLOR);

    cout << "failed to open orig_image!" << std::endl;
    return -1;

cvtColor(orig_image, gray_image, CV_BGRA2GRAY);

imwrite("GRAY_IMG.jpg", gray_image);
namedWindow( "Display window", WINDOW_AUTOSIZE );
imshow( "Display window", gray_image );

return 0;

} /********************/ i tried arm-linux-gnueabi-g++-4.6 -l/<my directory="">opencv- -L/<my directory="">opencv- -lcv -lcxcore -lhighgui -lpthread -lrt -o basename $i .cpp $i; it just output : marker_detect.cpp:1:22: fatal error: cxcore.hpp: No such file or directory so depressed

2013-10-26 01:46:37 -0500 received badge  Critic (source)