vs2008安装opencv2.4.6

最近安装opencv2.4.6,发现犯了一个很愚蠢的错误,在此记录一下。

opencv的头文件包含应该位于build文件夹内,而我误将opencv文件夹下的include包含了进去,造成无法找到头文件的错误。

工程在debug模式下应该包含的lib库为以下几个:

opencv_calib3d246d.lib
opencv_contrib246d.lib
opencv_core246d.lib
opencv_features2d246d.lib
opencv_flann246d.lib
opencv_gpu246d.lib
opencv_highgui246d.lib
opencv_imgproc246d.lib
opencv_legacy246d.lib
opencv_ml246d.lib
opencv_nonfree246d.lib
opencv_objdetect246d.lib
opencv_photo246d.lib
opencv_stitching246d.lib
opencv_superres246d.lib
opencv_ts246d.lib
opencv_video246d.lib
opencv_videostab246d.lib

release模式下去掉相应的d即可

你可能感兴趣的:(vs2008安装opencv2.4.6)