1 | initial version |
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... /*********************/
using namespace cv; using namespace std;
int main(void) { Mat orig_image; Mat gray_image;
orig_image = imread("marker.jpg", IMREAD_COLOR);
if(!orig_image.data)
{
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 );
waitKey(0);
return 0;
}
/********************/
i tried arm-linux-gnueabi-g++-4.6 -l/<my directory="">opencv-2.4.6.1/include/opencv/ -L/<my directory="">opencv-2.4.6.1/platforms/linux/build_arm/lib/ -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