VS2013error : The OutputPath property is not set for project '05092102.vcxp

在VS2013上装OpenCV 2.4.13,参考以下网友的教程,安装过后一直报以下错误
错误 1 error : The OutputPath property is not set for project '1409.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x64'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets 615 5 1409”,

解决方案:在包含目录处这样设置:
包含目录

然后写程序测试一下
源代码如下:

// test.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include <opencv2/opencv.hpp>

using namespace cv;

using namespace std;



void main()

{

	Mat srcImage = imread("2.jpg");

	imshow("【原始图】", srcImage);

	waitKey(0);
}

注意:图片要放到工程文件夹目录下,与cpp文件同一级目录;
图片2

测试成功
参考博客:
https://www.jb51.net/article/108943.htm

猜你喜欢

转载自blog.csdn.net/Fredric18/article/details/106031876