BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / ml-dm / #5744同步于 2009/10/13
该镜像源已超过 30 天没有更新,可能在源站已被删除。
ML_DM机器人发帖

opencv2.0安装调试后提示错误,可能是设置的问题,弄不懂了?

yef279
2009/10/13镜像同步12 回复
如题,装了opencv2.0,vs2005下设置连接cxcore200.lib cv200.lib highgui200.lib 拿了个最简单的例子:发现 错误如下: LINK : fatal error LNK1104: 无法打开文件“cxcore200.lib” 求问各位看看是哪里设置出了问题?
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
finalfantasy机器人#1 · 2009/10/13
你最好按 http://www.opencv.org.cn/index.php/VC_2005_Express%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE 上面步骤安,应该没问题。2.0没装过,1.1装过没问题。 我猜是环境变量的问题
bebekifis机器人#2 · 2009/10/14
path配置好了么? 好了的话看看路径下有没有,估计是你没有重新编译
acfe机器人#3 · 2009/10/15
openCV可以和VC6.0一起装不?一定要和VS2005?
dawnc机器人#4 · 2009/10/15
【 在 acfe 的大作中提到: 】 : openCV可以和VC6.0一起装不?一定要和VS2005? 可以的吧 我的就是vc6.0
yef279机器人#5 · 2009/10/15
PATH配置好,重新生成编译后还是不可以,提示一样错误提示。
awe机器人#6 · 2009/10/16
2.0需要针对VS2005编译,编译后才可以用。 在VS2008下编译OpenCV2.0的详细步骤 http://ncu.dl.sourceforge.net/project/opencvlibrary/opencv-win/2.0/OpenCV-2.0.0a-win32.Readme.Please.txt This is OpenCV 2.0, the installation package for Windows. The major new features: ======================= * the brand-new C++ interface, in addition to the existing OpenCV 1.x C API. * a lot of new functionality, especially in the area of feature detectors and descriptors * SSE2 optimization of many functions * the revised directory structure and the completely new CMake-based build system * completely new documentation, available offline as PDF (included) and online: http://opencv.willowgarage.com/documentation/index.html and a lot more; please, see the ChangeLog. Important installation notes: ============================= 1. The library is better to be installed to a directory _without_ a space in its name, such as the default C:\OpenCV2.0 - otherwise (e.g. if you install it to C:\Program Files\OpenCV2.0) you may get compile errors. This is a limitation of the current build scripts. 2. Due to many technical problems the installation package does not include pre-compiled OpenCV libraries for Visual Studio users. Instead, it includes libraries built with MinGW 4.3.3 TDM-SJLJ. They are good enough to run the C/C++ and Python samples and tests, but for developing your OpenCV-based applications using Visual Studio, Borland IDE etc., or even a different version of MinGW, you need to build the libraries with your compiler using CMake, as explained here: http://opencv.willowgarage.com/wiki/InstallGuide. Here is the procedure at glance: -------------------------------- 1. Download CMake from http://www.cmake.org/cmake/resources/software.html and install it. 2. Run CMake GUI tool and configure OpenCV there: 2.1. select C:\OpenCV2.0 (or the installation directory you chose) as the source directory; 2.2. choose some other directory name for the generated project files, e.g. C:\OpenCV2.0\vs2008, or D:\Work\OpenCV_MinGW etc. 2.3. press Configure button, select your preferrable build environment 2.4. adjust any options at your choice 2.5. press Configure again, then press Generate. 3a. In the case of Visual Studio or any other IDE, open the generated solution/workspace/project ..., e.g. C:\OpenCV2.0\vs2008\OpenCV.sln, build it in Release and Debug configurations. 3b. In the case of command-line Makefiles, enter the destination directory and type "make" (or "nmake" etc.) 4. Add the output directories to the system path, e.g.: C:\OpenCV2.0\vs2008\bin\Debug;C:\OpenCV2.0\vs2008\bin\Release:%PATH% It is safe to add both directories, since the Debug OpenCV DLLs have the "d" suffix, which the Release DLLs do not have. 5. Optionally, add C:\OpenCV2.0\include\opencv to the list of include directories in your IDE settings, and the output library directories (e.g. C:\OpenCV2.0\vs2008\lib\{Debug,Release}) to the list of library paths. 在工程文件中添加需要的库文件 Debug cv200d.lib cvaux200d.lib cxcore200d.lib cxts200d.lib highgui200d.lib ml200d.lib opencv_ffmpeg200d.lib cvhaartraining.lib Release cv200.lib cvaux200.lib cxcore200.lib cxts200.lib highgui200.lib ml200.lib opencv_ffmpeg200.lib cvhaartraining.lib It is important to build both release and debug configurations, and link you code with the proper libraries in each configuration, otherwise various compile-time or run-time errors are possible. Known issues: ============= 1. Python 2.6 bindings for OpenCV are included within the package, but not installed. You can copy the subdirectory opencv/Python2.6/Lib/site-packages into the respective directory of the Python installation. This procedure will be automated in the next OpenCV update. 2. Several (actually, most) SWIG-based Python samples do not work correctly now. The reason is this problem is being investigated and the intermediate update of the OpenCV Python package will be released as soon as the problem is sorted out. 3. The library has not been tested on 64-bit Windows versions. But it is known to have some limitations in the highgui part, such as the lack of FFMPEG and DirectShow support. 4. The library can be built with VS2003.NET, and all the tests pass, but DirectShow support (via videoInput library) is not included. Differences between OpenCV-2.0.0-win32.exe and OpenCV-2.0.0a-win32.exe: ======================================================================= 1. Visual Studio 2003.NET is now supported 2. Corrected bug in matrix routines that could produce incorrect results or even cause runtime errors. 3. A few other minor changes to sync the content with the source package for Unix. 【 在 yef279 的大作中提到: 】 : 如题,装了opencv2.0,vs2005下设置连接cxcore200.lib cv200.lib highgui200.lib : 拿了个最简单的例子:发现 : 错误如下: : ...................
bebekifis机器人#7 · 2009/10/17
【 在 yef279 的大作中提到: 】 : PATH配置好,重新生成编译后还是不可以,提示一样错误提示。 还是检查下吧,基本上没有这个可能,你看看路径下面cxcore200.lib在吗?
robin82机器人#8 · 2009/10/19
得先编译opencv2.0工程 得到库文件 详情见 http://blog.csdn.net/include1224/archive/2009/09/30/4621892.aspx 【 在 yef279 的大作中提到: 】 : 如题,装了opencv2.0,vs2005下设置连接cxcore200.lib cv200.lib highgui200.lib : 拿了个最简单的例子:发现 : 错误如下: : ...................
FeverDevil机器人#9 · 2009/10/26
直接退到1.1去用了 2.0以后工程MS需要CMAKE来创建,不像以前那个可以直接用。所以经常找不到lib 我装2.0就没弄明白……后来换成1.1用了~~~~~~