日期:2014-05-17 浏览次数:20944 次
1. 从http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.3/下载OpenCV2.4.3;
2. 将OpenCV-2.4.3.exe放到D:\soft\OpenCV2.4.3文件夹下,解压到当前文件夹下,生成一个opencv文件夹;
3. 下载并安装CMake:http://www.cmake.org/cmake/resources/software.html
4. 从http://www.python.org/ 下载python-2.7.3.msi安装到D:\Python27目录下,
5. 从http://www.python.org/ 下载Python-2.7.3.tar放到D:\soft\Python文件夹下,解压缩到当前文件夹下,生成一个Python-2.7.3文件夹;
6. 用vs2008打开D:\soft\Python\Python-2.7.3\PCbuild文件夹下的pcbuild.sln工程,选中Solutionpcbuild,点击右键,选择Properties,分别在Release和Debug下设置,Common Properties-->Startup Project-->选中Singlestartup project下的python;接着选中Configuration Properties-->Configuration,仅勾选python和pythoncore;
7. 分别在Debug和Release下依次进行,选中make_buildinfo工程,rebuild,接着选中make_versioninfo工程,rebuild,选中Solution pcbuild,rebuild,会在D:\soft\Python\Python-2.7.3\PCbuild文件夹下生成python27.lib、python27_d.lib、python27.dll、python27_d.dll;
8. &nbs