如何在Win32上安装OpenCV 2.0 [英] How to install OpenCV 2.0 on win32

查看:108
本文介绍了如何在Win32上安装OpenCV 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Win32上安装OpenCV.我目前尚未安装.我下载了OpenCV-2.0.0a-win32.exe并运行了它.我现在该怎么办?没有.lib的,什么都没有.

I need to install OpenCV on Win32. I do not have it installed currently. I downloaded OpenCV-2.0.0a-win32.exe and ran it. What the heck do I do now? There are no .lib's and whatnot.

我在 http://opencv.willowgarage.com/上找到了一些使用cmake构建发行版的说明. wiki/InstallGuide .我下载了最新最出色的cmake,并尝试按照说明进行操作,但是我在猜测.没事.

I found some instructions for building the release using cmake at http://opencv.willowgarage.com/wiki/InstallGuide . I downloaded the latest and greatest cmake, and tried to follow the instructions, but I was guessing. No joy.

当我执行配置"时,我指定了VC ++ 9,但是cmake构建了VC ++ 6 dsw文件.没有vcproj.无论如何,我将dsw转换为vc ++ 9 vcproj,只是看它是否可以工作.没有.它编译了许多文件,但是许多失败,因为找不到omp.h.当然,它不存在于任何地方.生成日志说:工具从执行自定义生成步骤"中返回了错误代码.

I specified VC++9 when I did the "configure," but cmake built a VC++ 6 dsw file. No vcproj. I converted the dsw into a vc++9 vcproj anyway, just to see if it would work. Nope. It compiled lots of files, but many failed because it could not find omp.h. Sure enough, it's not there, anywhere. The build log said, 'A tool returned an error code from "Performing Custom Build Step".'

我迷路了.

理想情况下,我想找到一个完整的安装程序,其中包含为Win32 vc ++ 2008预先构建的所有文件.否则,我需要甚至可以遵循的说明.简短的句子和小的单词,但很多.

Ideally, I would like to find a full installation with all the files pre-built for Win32 vc++ 2008. Failing that, I need instructions that even I can follow. Short sentences and small words, but lots of them.

请帮助!

更新:我试图只构建CXCORE.它抱怨说,无法打开文件'VCOMPD.lib'."再次是OMP.

UPDATE: I tried to build just CXCORE. It complained, "cannot open file 'VCOMPD.lib'" There's that OMP again.

推荐答案

对于2.0版,您必须从源代码构建项目.

For version 2.0, you must build the project from source.

这是您需要的:

  1. OpenCV安装程序.
  2. CMake. 这是CMake安装程序.
  3. 说明使用CMake 来安装OpenCV-2.0.01-win32.如果您使用的是 vc ++ Express 版本,则这些说明需要额外的步骤.在这种情况下,运行CMake GUI时必须 un -检查 ENABLE_OPENMP.
  4. 设置应用程序项目的说明.(感谢mloskot提供了这个发现.)
  1. The OpenCV installer.
  2. CMake. Here's the CMake installer.
  3. Instructions for using CMake to install OpenCV-2.0.01-win32. Those instructions need an extra step if you are using a vc++ Express edition. In that case you must un-check ENABLE_OPENMP when running the CMake GUI.
  4. Instructions for setting up an application project. (Thanks to mloskot for this find.)

这篇关于如何在Win32上安装OpenCV 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆