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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章