简体   繁体   English

openCV C ++ x64 vc14二进制文件

[英]openCV c++ x64 vc14 binary?

I am playing with openCV in C++. 我在玩C ++中的openCV。 I happened to install VS2015 on my PC so I guess I will need a vc14 build of it. 我碰巧在自己的PC上安装了VS2015,所以我想我将需要它的vc14版本。 However, the official package does not come with it but vc10-vc12. 但是,官方软件包不是vc10-vc12随附的。

I first used the vc12 files as they passed project building, but some errors pop out when the deconstructor comes in (namely, deconstructing vector< KeyPoints >). 我首先使用了vc12文件,这些文件通过了项目构建,但是当析构函数进入时会弹出一些错误(即,解构vector <KeyPoints>)。 Then I built the binary myself. 然后我自己构建了二进制文件。 The building went through, but when the binary is put in the project, the compiler keeps producing error of "unresolved external symbol". 编译通过,但是将二进制文件放入项目中时,编译器将不断产生“未解析的外部符号”错误。 I wonder if I can download the x64 vc14 build somewhere so I can skip the pain? 我想知道是否可以在某个地方下载x64 vc14版本,这样我就可以避免痛苦吗?

Your project should be built with the same platform toolset with the OpenCV libraries. 您的项目应使用与OpenCV库相同的平台工具集构建。 You can set 你可以设定

Configuration Properties -> General : Platform Toolset

property to v12 for your project so that you can use v12 libraries of OpenCV even with Visual Studio 2015. 项目的v12属性,以便即使在Visual Studio 2015中也可以使用OpenCV的v12库。

I have also recently downloaded OpenCV 3.0 and in the directory : 我最近还下载了OpenCV 3.0并在以下目录中:

opencv\\build\\x64\\vc12\\staticlib

You can find v12 prebuilt static libraries. 您可以找到v12预先构建的静态库。 Unless you neeed to use the most recent updates in the c++ standard, that will suffice to you. 除非您需要使用c ++标准中的最新更新,否则就足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM