当前位置:  开发笔记 > 小程序 > 正文

如何解决依赖OpenCV的GPU程序的编译?

如何解决《如何解决依赖OpenCV的GPU程序的编译?》经验,为你挑选了1个好方法。

如何解决这个编译问题?

1>tmpxft_00001548_00000000-14_buildSURFDescriptorsGPU.ii
1>Compiling...
1>getMatchesGPU.cpp
1>utils.cpp
1>surf.cpp
1>main.cpp
1>C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc\cutil_inline_runtime.h(61) : warning C4005: 'MIN' : macro redefinition
1>        C:\OpenCV2.0\include\opencv\cxtypes.h(205) : see previous definition of 'MIN'
1>C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc\cutil_inline_runtime.h(62) : warning C4005: 'MAX' : macro redefinition
1>        C:\OpenCV2.0\include\opencv\cxtypes.h(209) : see previous definition of 'MAX'
1>.\main.cpp(290) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(290) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(290) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(290) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(291) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(291) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(291) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(291) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(325) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(325) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(325) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>.\main.cpp(325) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>ipoint.cpp
1>integral.cpp
1>C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc\cutil_inline_runtime.h(61) : warning C4005: 'MIN' : macro redefinition
1>        C:\OpenCV2.0\include\opencv\cxtypes.h(205) : see previous definition of 'MIN'
1>C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc\cutil_inline_runtime.h(62) : warning C4005: 'MAX' : macro redefinition
1>        C:\OpenCV2.0\include\opencv\cxtypes.h(209) : see previous definition of 'MAX'
1>helper_funcs.cpp
1>fasthessian.cpp
1>C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc\cutil_inline_runtime.h(61) : warning C4005: 'MIN' : macro redefinition
1>        C:\OpenCV2.0\include\opencv\cxtypes.h(205) : see previous definition of 'MIN'
1>C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc\cutil_inline_runtime.h(62) : warning C4005: 'MAX' : macro redefinition
1>        C:\OpenCV2.0\include\opencv\cxtypes.h(209) : see previous definition of 'MAX'
1>.\fasthessian.cpp(176) : warning C4018: '<' : signed/unsigned mismatch
1>Generating Code...
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'cxcore200d.lib'
1>Build log was saved at "file://c:\SURFGPU-1.0.1\surf.dir\Debug\BuildLog.htm"
1>surf - 1 error(s), 19 warning(s)
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
2>Project not selected to build for this solution configuration 
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========

Alexander Ra.. 5

SO不是调试器,但是这个错误报告基本上告诉你它无法打开'cxcore200d.lib'.那是你的问题.您可能还需要查看19条警告.



1> Alexander Ra..:

SO不是调试器,但是这个错误报告基本上告诉你它无法打开'cxcore200d.lib'.那是你的问题.您可能还需要查看19条警告.

推荐阅读
jerry613
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有