Windows 7 での OpenCV ライブラリ使用につまづいている
だれかたすけて.
環境
- Windows 7 Pro (64 ビット版)
- Visual Studio 2008 Pro
- CMake 2.8.0(cmake-2.8.0-win32-x86.exe)
- OpenCV 2.0.0a(cvcap_ffmpeg.cpp を編集)
- 途中追加
行動
dir /s /b vcomp*
D:\>dir /s /b vcomp* D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\1041\vcomp90ui.dll D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\1041\vcomp90ui.dll D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\ia64\1033\vcomp90ui.dll D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\vcomp.lib D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\vcompd.lib D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64\vcomp.lib D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64\vcompd.lib D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\ia64\vcomp.lib D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\ia64\vcompd.lib D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\amd64\Microsoft.VC90.OpenMP\vcomp90.dll D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\Debug_NonRedist\amd64\Microsoft.VC90.DebugOpenMP\vcomp90d.dll D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\Debug_NonRedist\x86\Microsoft.VC90.DebugOpenMP\vcomp90d.dll D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.OPENMP\vcomp90.dll
main.cpp
#include <opencv/highgui.h> #ifdef _DEBUG #pragma comment( lib, "cv200d.lib" ) #pragma comment( lib, "cxcore200d.lib" ) #pragma comment( lib, "highgui200d.lib" ) #else #pragma comment( lib, "cv200.lib" ) #pragma comment( lib, "cxcore200.lib" ) #pragma comment( lib, "highgui200.lib" ) #endif int main( int argc, char argv ) { cv::Mat image; image = cv::imread( "e:/data/image/lena.png" ); cv::namedWindow( "view", CV_WINDOW_AUTOSIZE ); cv::imshow( "view", image ); cv::waitKey(); return 0; }