急win7安装的VS2010下opencv2.4.3调试程序时总是出现error MSB4014 生成意外停止,因为内部故障。如何解决?

急!!win7安装的VS2010下opencv2.4.3调试程序时总是出现error MSB4014 生成意外停止,因为内部故障。怎么解决??
急win7安装的VS2010下opencv2.4.3调试程序时总是出现error MSB4014 生成意外停止,因为内部故障。如何解决?

就运行下面的网上的一个测试例程,总是出现错误error MSB4014 生成意外停止,因为内部故障。有什么好的解决方法吗,求大神不吝赐教啊!!!


#include "stdafx.h"

#include <opencv2/opencv.hpp>
 
using namespace std;
using namespace cv;
 
int main(int argc, char* argv[])
{
    const char* imagename = "lena.jpg";
 
    //从文件中读入图像
    Mat img = imread(imagename);
 
    //如果读入图像失败
    if(img.empty())
    {
        fprintf(stderr, "Can not load image %s\n", imagename);
        return -1;
    }
 
    //显示图像
    imshow("image", img);
 
    //此函数等待按键,按键盘任意键就返回
    waitKey();
 
    return 0;
}
------解决方案--------------------
设置环境变量MSBUILD_EXE_PATH为MSBuild.exe所在目录
------解决方案--------------------
引用:
设置环境变量MSBUILD_EXE_PATH为MSBuild.exe所在目录
急win7安装的VS2010下opencv2.4.3调试程序时总是出现error MSB4014 生成意外停止,因为内部故障。如何解决?