在Windows 7 64位的OpenCV 2.4错误 [英] opencv 2.4 error in windows 7 64 bit
问题描述
我使用$ C $个cblocks在我的Windows 7 64位和我用MinGW的为我的默认C / C ++编译器。
I am using CodeBlocks in my windows 7 64 bit and I use MinGw for my default c/c++ compiler.
前几天我需要使用OpenCV的,以后我奋斗了很多错误,我得到unsolveable错误是这样的:
Few days ago I need to use OpenCV, after I struggle a lot of error, I get unsolveable error like this :
样品code:
#include "cv.h"
#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" );
}
我相信我的链接和放大器;目录设置是否正确。所以,请帮我:)我打算放弃:(
I believe my linked & directory setting is correct. So please help me :) I am about to give up :(
推荐答案
假设你正在做的一切都在code和图像是否正确,这可能是一个问题,由于不兼容的OpenCV的二进制文件。
Assuming that you are doing everything correct in the code and the image, this can be a problem due to incompatible opencv binaries.
请看看一个类似的安装编译,看看它是否工作。我在我的安装,这是固定的通过再次编译的二进制文件也有类似的问题。
Please have a look at a similar installation to compile and see if it works. I had a similar problem in my installation, which was fixed by compiling the binaries again.
这篇关于在Windows 7 64位的OpenCV 2.4错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!