安装OpenCv 2.4.2与Cuda在Visual studio 9 2008:构建中的错误 [英] Install OpenCv 2.4.2 with Cuda on Visual studio 9 2008: errors in build

查看:218
本文介绍了安装OpenCv 2.4.2与Cuda在Visual studio 9 2008:构建中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在visual studio 9 2008上安装OpenCv 2.4.2并启用cuda。

I have been trying to install OpenCv 2.4.2 with cuda enabled on visual studio 9 2008.

这些是以下规格:

OpenCv版本:2.4.2

操作系统:Windows 7 64位\\ b $ b Cmake版本:2.8.9

显卡:NVIDIA GeForce GTX 550 Ti

Cuda版本:4.2

OpenCv version: 2.4.2
OS: Windows 7 64 bit
Cmake version: 2.8.9
Graphics card: NVIDIA GeForce GTX 550 Ti
Cuda version: 4.2

我从 OpenCV 并已正确遵循所有说明。

I downloaded the opencv from OpenCV and have followed all the instructions correctly.

这是CMake配置的结果:

This is the result of the CMake configuration:


GUI:
QT 4.x:NO Win32 UI:YES
OpenGL支持:NO


Media I / O:employ ZLib:build(ver 1.2 .6)
JPEG:build(ver
62)
PNG:build(ver 1.5.9)
TIFF:build(ver 42 -
4.0.1)
JPEG 2000:build(ver 1.900.1)
OpenEXR:NO

视频I / O:
FFMPEG:YES(预编译的二进制文件) :YES(ver 53.61.100 cybo format:YES(ver53.32.100Úutil:YES(ver
51.35.100)swscale:YES(ver 2.1.100)
gentoo-style:YESERO OpenNI:NOERO OpenNI PrimeSensor Modules:NO MALE PvAPI:NO⑶
DirectShow:YES 80+ XIMEA:NO

GUI:
QT 4.x: NO Win32 UI: YES
OpenGL support: NO

Media I/O:
ZLib: build (ver 1.2.6)
JPEG: build (ver 62)
PNG: build (ver 1.5.9)
TIFF: build (ver 42 - 4.0.1)
JPEG 2000: build (ver 1.900.1)
OpenEXR: NO
Video I/O:
FFMPEG: YES (prebuilt binaries)
codec: YES(ver 53.61.100
format: YES (ver 53.32.100
util: YES(ver 51.35.100)
swscale: YES (ver 2.1.100)
gentoo-style:YES
OpenNI: NO
OpenNI PrimeSensor Modules: NO
PvAPI: NO
DirectShow: YES
XIMEA: NO

其他第三方库使用IPP:NO
使用TBB:NO
使用
Cuda:YES )使用Eigen:NO


Other third-party libraries Use IPP: NO
Use TBB: NO
Use Cuda: YES (ver 4.2)
Use Eigen: NO

NVIDIA CUDA:(ver 4.2)
使用CUFFT:YES
使用CUBLAS:NO
raft NVIDIA GPU arch:11 12 13 20 21 30 NVIDIA PTX archs:11
12 13 20 21 30_HTML NVIDIA GPU功能:11 12 13 20 20 30 20


Python:
译员:NO⑶
文件:
建立文件:NO
Sphinx: NOÚPdfLaTeX compiler:NO royalty测试和样品:
测试:
YES
性能测试:YES
例子:NO⑶
安装路径:C:/ opencv / Builds / install advertisers cvconfig.h位于:C:/ opencv /Builds└
-------------- -------------------------------------------------- -
¥b $ b配置已完成的副本

NVIDIA CUDA: (ver 4.2)
Use CUFFT: YES
Use CUBLAS: NO
NVIDIA GPU arch: 11 12 13 20 21 30
NVIDIA PTX archs: 11 12 13 20 21 30
NVIDIA GPU features: 11 12 13 20 20 30 20

Python:
Interpreter: NO
Documentation:
Build Documentation: NO
Sphinx: NO
PdfLaTeX compiler: NO
Tests and samples:
Tests: YES
Performance tests: YES
Examples: NO
Install path: C:/opencv/Builds/install
cvconfig.h is in: C:/opencv/Builds
-----------------------------------------------------------------
Configuring done
Generating done

现在如果我构建解决方案构建失败,它给我一个错误。以下是很多错误:

Now if i Build the solution the build fails and it gives me an error. These are a few errors from a lot of them:


错误8致命错误LNK1104:无法打开文件
'.... \lib\Debug\opencv_gpu242d.lib'opencv_stitchingvisions错误9
致命错误LNK1104:无法打开文件
'... \lib\Debug \opencv_gpu242d.lib'opencv_videostabapers错误10
致命错误LNK1104:无法打开文件
'... \lib\Debug\opencv_gpu242d.lib'opencv_test_stitching royalty错误
13致命错误LNK1104:无法打开文件
'... \lib\Debug\opencv_gpu242d.lib'opencv_perf_stitching

Error 8 fatal error LNK1104: cannot open file '....\lib\Debug\opencv_gpu242d.lib' opencv_stitching
Error 9 fatal error LNK1104: cannot open file '....\lib\Debug\opencv_gpu242d.lib' opencv_videostab
Error 10 fatal error LNK1104: cannot open file '....\lib\Debug\opencv_gpu242d.lib' opencv_test_stitching
Error 13 fatal error LNK1104: cannot open file '....\lib\Debug\opencv_gpu242d.lib' opencv_perf_stitching

请帮我解决这个问题。

推荐答案

我不知道是什么问题。我尝试安装在不同的计算机,它的工作方式像一个魅力。所以我重新安装操作系统,它工作!

I did not know what the problem was. I tried installing the same in a different computer and it worked like a charm. So i re installed the OS and it worked!!

这篇关于安装OpenCv 2.4.2与Cuda在Visual studio 9 2008:构建中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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