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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值