我下载了OpenCV 2.4解压到C:OpenCV2.4
。增加了一个系统变量OPENCV_DIR=C:OpenCV2.4build
,在PATH中增加了以下的%OPENCV_DIR%x64vc10bin
#include <iostream>
#include <opencvcv.h>
#include <opencvhighgui.h>
int main(){
IplImage *img = cvLoadImage("imagen.jpg");
if(!img){
std::cout << "File not foundn" << std::endl;
}
}
现在从命令行工具,我尝试如下:
cl testCV.cpp /IC:OpenCV2.4buildinclude
C:Program Files (x86)Microsoft Visual Studio 10.0VCINCLUDEintrin.h(26) : fatal error C1083: Cannot open include file: 'ammintrin.h': No such file or directory
我如何用cl.exe编译这个程序?
请安装SP1,这应该可以连接到你:)
也请看看这个不错的博客