opencv246 + visual studio 2010 学习笔记

来源:互联网 发布:科比职业生涯数据 编辑:程序博客网 时间:2024/06/16 12:00

1.  Visual Studio <-link-> Opencv

     include : header files

     lib : compile files (library)

     bin : .dll files (动态链接库)


2. 

1)Project --> right click --> property --> configuration properties --> VC++ Directories --> Executable Directories --> <Edit> --> add(folder) --> (Opencv path/build/x64/v10/bin)

2) (same as above) --> VC++ Directories --> Include Directories --> (Opencv path/include)

3) (same as above) --> VC++ Directories --> Library Directories --> (Opencv path/build/x64/v10/lib)

4) Project --> right click --> property --> configuration properties -->  Linker --> Input --> Additional Dependencies --> add "opencv_***246.lib" (when build solution in release mode) OR add "opencv_***246d.lib " (when build solution in debug mode)


3.  错误 fatal error LNK ***:can not open input file

    问题在于: project property里面的LINKER项中没有适当添加所需files


4. x64对应:1) Visual Studio Standard Bar --> Build --> Configuration Manager --> Active Solution Platform --> New --> Itanium<->x64 --> x64

                       2) Project --> right click --> property --> configuration properties -->  Linker -->  advanced -->Target Machine --> Machine x64


5. IplImage (types_c.h/highgui.hpp) + cvLoadImage + cvShowImage + cvWaitKey

    Mat (core.hpp) + imread + imshow + waitKey

原创粉丝点击