vs2017 msvc2对应的是msvc11还是msvc12

注意本教程配置环境:win7 32位
如果只配置vs2013+opencv2.4.11,参考
【具体步骤】
一、准备配置
下载并安装vs2013
下载并安装Qt5.5.1
下载并安装opencv2.4.11
下载qt-vs-addin-opensource-1.2.5
二、开始配置
1、 安装qt-vs-addin-opensource-1.2.5。安装成功后vs2013的菜单栏上会多出一个Qt5的选项
2、 选择QT5-&Qt Options,将Qt下msvc2013的路径添加进来
3、 将opencv\build\x86\vc12\bin文件添加到系统环境变量中
选中系统变量中的Path点击编辑将opencv的安装目录下的bin文件路径添加到环境变量中。我的目录是D:\StudyProgram\OpenCV2_4_11\opencv\build\x86\vc12\bin
(注意: 添加完环境变量之后需要重启电脑才能生效。)
下面进行一次性永久配置
新建一个C++|Win32控制台应用程序项目
视图|其他窗口|属性管理器
在debug上右键,选择添加新项目属性表,命名为opencv2411_debug
双击opencv2411_debug,设置属性。
属性页面中C/C++-&常规,选择附加包含目录添加Qt下的Include文件路径,我的是D:\StudyProgram\QT5_5_1\5.5\msvc2013\include
4.添加Opencv和Qt的库文件具体操作如下:
选择VC++目录添加可执行文件目录、包含目录、库目录
(注意:opencv库文件最好选择x86使用x64版本在编译时可能会提示错误。vs2012对应VC11,vs2010对应vc10,vs2013对应vc12。)
可执行文件: D:\StudyProgram\OpenCV2_4_11\opencv\build\x86\vc12\bin
& &包含目录: D:\StudyProgram\ OpenCV2_4_11\opencv\build\include
&&&&&&&&&& &D:\StudyProgram\OpenCV2_4_11\opencv\build\include\opencv
&&&&&&&&&& &D:\StudyProgram\OpenCV2_4_11\opencv\build\include\opencv2
& &库目录:
D:\StudyProgram\OpenCV2_4_11\opencv\build\x86\vc12\lib
&&&&&&&&&&&&&&&&&&&&&&& D:\StudyProgram\QT5_5_1\5.5\msvc2013\lib
5.选择链接器-&输入|附加依赖项。注意,后面加d的是Debug版本的文件没加d的是Release版本的文件。
Debug版本文件:(复制粘贴如下内容即可)
qtmaind.lib
Qt5Cored.lib
Qt5Guid.lib
Qt5Widgetsd.lib
Qt5Sqld.lib
opencv_ml2411d.lib
opencv_calib3d2411d.lib
opencv_contrib2411d.lib
opencv_core2411d.lib
opencv_features2d2411d.lib
opencv_flann2411d.lib
opencv_gpu2411d.lib
opencv_highgui2411d.lib
opencv_imgproc2411d.lib
opencv_legacy2411d.lib
opencv_objdetect2411d.lib
opencv_ts2411d.lib
opencv_video2411d.lib
opencv_nonfree2411d.lib
opencv_ocl2411d.lib
opencv_photo2411d.lib
opencv_stitching2411d.lib
opencv_superres2411d.lib
opencv_videostab2411d.lib
6.在release模式下,按第2步建立opencv2411_release,双击后重复第5步
Release版本文件:(复制粘贴如下内容即可)
qtmain.lib
Qt5Core.lib
Qt5Gui.lib
Qt5Widgets.lib
Qt5Sql.lib
opencv_ml2411.lib
opencv_calib3d2411.lib
opencv_contrib2411.lib
opencv_core2411.lib
opencv_features2d2411.lib
opencv_flann2411.lib
opencv_gpu2411.lib
opencv_highgui2411.lib
opencv_imgproc2411.lib
opencv_legacy2411.lib
opencv_objdetect2411.lib
opencv_ts2411.lib
opencv_video2411.lib
opencv_nonfree2411.lib
opencv_ocl2411.lib
opencv_photo2411.lib
opencv_stitching2411.lib
opencv_superres2411.lib
opencv_videostab2411.lib
&&&&&&&&&&&&& 这些文件中关于Opencv的文件位于(目录中的2411表示版本号):
D:\StudyProgram\OpenCV2_4_11\opencv\build\x86\vc12\lib。
关于Qt的文件位于:
D:\StudyProgram\QT5_5_1\5.5\msvc2013\lib
7.在你的项目文件夹下,你会发现两个项目属性表
把他们保存到不易删除的地方,以后新建项目,直接添加相应的项目属性表即可,无需再次配置。
【测试程序】
&opencv2\highgui\highgui.hpp&
srcImage = imread("C:/Users/a/Desktop/1.jpg");
&&& namedWindow("你很优秀",0);
&&& imshow("你很优秀",
srcImage);
&&& waitKey(0);
&&& return 1;
阅读(...) 评论()13854人阅读
基础复习(13)
如何确定VS编译器版本
_MSC_VER是MSVC编译器的内置宏,定义了编译器的版本,_MSC_VER 值对应版本关系
MSVC++ 11.0 _MSC_VER = 1700 (Visual Studio 2012)&
MSVC++ 10.0 _MSC_VER = 1600 (Visual Studio 2010)
MSVC++ 9.0 _MSC_VER = 1500& (Visual Studio 2008)&
MSVC++ 8.0 _MSC_VER = 1400& (Visual Studio 2005)&
MSVC++ 7.1 _MSC_VER = 1310& (Visual Studio 2003)
MSVC++ 7.0 _MSC_VER = 1300 (Visual Studio 2002)
MSVC++ 6.0 _MSC_VER = 1200&
MSVC++ 5.0 _MSC_VER = 1100
#if (_MSC_VER == 1300)& //vc7
#import &acax16ENU.tlb& no_implementation raw_interfaces_only named_guids
#elif (_MSC_VER == 1200)& //vc6
#import &acad.tlb& no_implementation raw_interfaces_only named_guids
#elif (_MSC_VER == 1400) //vc8
#import &acax17ENU.tlb& no_implementation raw_interfaces_only named_guids
#elif (_MSC_VER == 1500) //vc9
#import &acax18ENU.tlb& no_implementation raw_interfaces_only named_guids
在程序中加入_MSC_VER宏可以根据编译器版本让编译器选择性地编译一段程序。例如一个版本编译器产生的lib文件可能不能被另一个版
本的编译器调用,那么在开发应用程序的时候,在该程序的lib调用库中放入多个版本编译器产生的lib文件。在程序中加入_MSC_VER宏
,编译器就能够在调用的时根据其版本自动选择可以链接的lib库版本,如下所示。
#if _MSC_VER &= 1400 // for vc8, or vc9
#ifdef _DEBUG
#pragma comment( lib, &SomeLib-vc8-d.lib& )
#pragma comment( lib, &SomeLib-vc8-r.lib& )
#else if _MSC_VER &= 1310 // for vc71
#ifdef _DEBUG
#pragma comment( lib, &SomeLib-vc71-d.lib& )
#pragma comment( lib, &SomeLib-vc71-r.lib& )
#else if _MSC_VER &=1200 // for vc6
#ifdef _DEBUG
#pragma comment( lib, &SomeLib-vc6-d.lib& )
#pragma comment( lib, &SomeLib-vc6-r.lib& )
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
(1)(1)(1)(1)(2)(1)(1)(1)(1)(3)(1)(2)(1)(1)(2)(5)(2)(3)(6)(2)(5)(1)(3)(9)(5)
(window.slotbydup = window.slotbydup || []).push({
id: '4740881',
container: s,
size: '200,200',
display: 'inlay-fix'3537人阅读
博主最近用vlfeat库做课题,网上搜索使用方法,一大片都会告诉你说:run(/vl_setup) 然后就好啦哈哈哈哈哈哈~~~~~~~~~~~~~~
But!理想很丰满,现实很骨感,当博主在官网下载了vlfeat并按照如下操作之后:
MATLAB却出现了如下错误:
Invalid MEX-file 'D:\codingtool\library\vlfeat\toolbox\mex\mexw64\vl_version.mexw64': 找不到指定的模块
我就知道没这么简单啊摔(╯‵□′)╯︵┻━┻问题的关键是我进入mex\mexw64\明明能找到这个模块的!为什么MATLAB不可以!你是有多笨!!(博主的工科男票竟然让博主重新解压再来一次操作就好了呢~~博主考虑要不要换个男票了= =)于是博主痛定思痛,准备用vs先编译一下vlfeat再看看效果,没想到意外的成功了!好嗨森·~~下面就是完整的流程啦~
Step 1 准备工作要做好~
准备好vs2012(其他版本也可以,只要保证与MATLAB里的一致就好)、vlfeat包http://www.vlfeat.org/index.html、MATLAB R2014b(其他版本应该也可以了啦~)
Step 2 &VS2012编译vlfeat
1. &打开VS2012 x64 Native Tools Command Prompt,在命令行中依次输入如下图所示的命令:
看到上面的版本号11.00.50727.1了木有宝宝们?记住它哈~
2. &在vlfeat/make/nmake_helper.mak文件中加入vs2012参数(你是其他版本就找到其他版本对应的地方,看看有没有你这个版本号,有的话就不用改了,么有就加上),如下图,在VL_MSVC
= 11.0的那里面已经有“11.00.50727.1”了,所以博主不用再加。如果你是vs2013,就找VL_MSVC = 12.0的,添上你的版本号就好啦。或者再没有就直接在圈红的那个位置自己写上~
3. &打开VS2012
x64 Native Tools Command Prompt(一般在开始菜单 vs对应文件夹下面就有),定位到/vlfeat-0.9.20目录下,为了防止有小盆友不知道怎么定位到,先贴图说明哈,宝宝们要改的就是cd后面改成自己放vlfeat的位置~
4. &定位到之后输入如下命令:
然后宝宝们就静静的等着它编译完成吧~完成之后并不会有说successful。。。命令提示还是静静的回到了初始状态就说明没问题啦:
4步完成后,将会在/vlfeat-0.9.20/bin目录下,新增一个win64目录,里面会有生成的vl.dll、vl.lib和一些test执行文件,后面MATLAB就能用这些啦。
&在MATLAB中完成最终配置
<span style="color:#. &首先打开MATLAB,输入语句:run('D:/codingtool/library/vlfeat-0.9.20/toolbox/vl_setup');将vlfeat路径添加进来。注意D:/codingtool/library是需要宝宝们改成自己放vlfeat的路径哒~
&切换MATLAB路径到vlfeat文件夹里面,直接在下图的红色横线那里选到就行:
3. &找到toolbox下面的vl_compile.m并直接运行之,然后静候成功啦~
<span style="color:#. &等他运行完成后可以在MATLAB里输入vl_version
verbose。配置成功的话就是下面的效果啦~
终于成功了好嗨森是不是~~~~~~博主还要嘱咐一句,为了以后能一打开MATLAB就能麻溜儿的用起来vlfeat,宝宝们还要多做一步:把刚才的run('D:/codingtool/library/vlfeat-0.9.20/toolbox/vl_setup');语句保存成一个叫做startup.m的m文件,放在你的MATLAB打开时的那个路径下(好像叫做启动路径吧),博主一打开MATLAB是这样的路径,所以你看startup就被我放在这里了。
然后就万事大吉啦~感谢观看喵,如果有帮到宝宝我很开熏~如果米有,那就遗憾啦T T
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:14203次
排名:千里之外
评论:30条
(window.slotbydup = window.slotbydup || []).push({
id: '4740887',
container: s,
size: '250,250',
display: 'inlay-fix'3225人阅读
OpenCV(11)
第一步:下载opencv-2.4.9
第二步:运行opencv-2.4.9,我的目录为:F:\Program Files\opencv
第三步:环境配置
控制面板---&系统----&高级系统设置---&环境变量
然后设置path路径
最后确认:
至此环境配置已经结束
打开VS2012
文件---&新建项目
然后一些设置:
Debug右键属性
运行可能会出错:
之前在vs2012下编译一个opencv程序时,一直出现msvcp120d.dll文件丢失的提示信息,最初会在网上找dll下载,将其拖入系统文件夹再进行regsvr32命令操作,结果都没有解决错误,甚至在添加完成后再编译还会出现应用程序无法正常启动0xc000007b的错误。问题产生的主要原因是vs2012编译了一个用vs2013生成的dll,是在选择第三方库时选择vc版本时出现的问题,一定要多加注意。
vc8 = Visual Studio 2005vc9 = Visual Studio 2008vc10 = Visual Studio 2010vc11 = Visual Studio 2012vc12 = Visual Studio 2013
MSVCP80.DLL is from Visual Studio 2005MSVCP90.DLL is from Visual Studio 2008MSVCP100.DLL is from Visual Studio 2010MSVCP110.DLL is from Visual Studio 2012MSVCP120.DLL is from Visual Studio 2013
#include&opencv2/opencv.hpp&
int main()
img = imread(&../LENA.png&);
if (img.empty())
fprintf(stderr,&Error:load image failed.&);
return -1;
namedWindow(&image&,CV_WINDOW_AUTOSIZE);
imshow(&image&,img);
waitKey();
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:179148次
积分:3204
积分:3204
排名:第11141名
原创:135篇
转载:96篇
(window.slotbydup = window.slotbydup || []).push({
id: '4740881',
container: s,
size: '200,200',
display: 'inlay-fix'Oracle Developer Tools for Visual Studio
Oracle Developer Tools for Visual Studio
The Oracle Developer Tools for Visual Studio (ODT) is a tightly integrated &Add-in& for Microsoft Visual Studio. ODT is free and supports Visual Studio 2017, Visual Studio 2015, and earlier.
ODT 12.2.0.1.0 today!
Integration with Visual Studio: Use Server Explorer with Visual Studio 2017, Visual Studio 2015 or earlier versions to browse your Oracle schema and launch one of the many integrated Oracle designers and wizards to create and alter schema objects.
Schema Compare Tools: New! View differences between two schemas and generate a diff script that can modify a target schema to match the source schema. Compare live database instances and/or an Oracle Database Project Version 2 containing a set of SQL scripts representing a schema.
Dependencies and References Viewer: New! Inspect relationships amongst Oracle schema objects. For example, view all Oracle schema objects that are required by a particular PL/SQL package.
MSI Installer:&The smaller MSI installer for ODT is available for Visual Studio 2017&and Visual Studio 2015
Multitenant Container Database Administration Features: Developers using Oracle Database 12c can easily and quickly create, clone, plug or unplug pluggable databases for use during development and testing.
Entity Framework Designers and Wizards: Use Visual Studio's Entity Designer for Database First and Model First object-relational mapping. (&Code First& is also supported).
Automatic .NET Code Generation: Use the Visual Studio Datasources Window, the Dataset Designer, and the TableAdapter Configuration Wizard to drag and drop and automatically generate .NET code.
Easy ASP.NET Web Development: If you're an ASP.NET web developer, ODT makes it easy to generate ASP.NET web applications with minimal coding required.
Powerful Application Tuning Tools: Use Oracle Performance Analyzer to tune your .NET application's use of Oracle Database via a single click of a button. The database is then monitored under load and recommendations are made, such as modifications to SQL or adding an index on a table. You can also tune Ad-hoc SQL statements in Query Window with SQL Tuning Advisor.
SQL Script Lifecycle with Source Control Integration: Generate SQL scripts for Oracle schema objects that your .NET application uses, manage them in an Oracle Database Project, check them into source control, edit the scripts in the Oracle SQL Editor, and execute them with a built in SQL*Plus execution engine.
PL/SQL Editor and Debugger: The fully integrated PL/SQL Editor and Debugger allows you to leverage all of your favorite Visual Studio debugging features from within PL/SQL code. You can even seamlessly step from your .NET code into your PL/SQL stored procedure code and back out again!
NET Stored Procedure Deployment: The .NET Deployment Wizard makes it easy to deploy
into Oracle Database.
Integrated Online Help System: The integrated context sensitive online help, including the Oracle SQL and PL/SQL Users Guides puts the Oracle documentation at your fingertips.
Manage Users, Roles and Privileges: Create Users and Roles using graphical designers. Assign privileges to the roles and assign roles to users. View the Users and Roles in Server Explorer.
Oracle Advanced Queuing (AQ) Designers: Create, modify and administer your Queues and Queue Tables.
User-Defined Types (UDTs): Create UDTs in Oracle with multiple new designers. A powerful UDT Custom Class code generation wizard makes using UDTs from .NET code easy and fast.
Import Table Wizard: This wizard makes it easy to import tables and their data from Oracle databases, or from external datasources such as Microsoft SQL Server, Microsoft Access and Excel spreadsheets.
Data Editing, Stored Procedure Testing, Adhoc SQL Execution: When testing your .NET application you can use the Oracle Data Window to insert and update Oracle data. There's also a testbed for testing stored procedures and an Oracle Query Window for executing any SQL statement you choose.
(PDF) New!
Watch Video Demonstrations:
Guided Walkthroughs:
Older Content:
About Oracle
Top Actions
Key Topics
Integrated Cloud Applications & Platform Services

我要回帖

更多关于 msvc2015 vs 的文章

 

随机推荐