Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long time. Go back and choose Release. Similarly, right click INSTALL. And choose Build. Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV\ So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.

Second

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description

Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager: Change the Active solution platform. Click on Win32, Select <new...&gt;. use="" the="" settings="" below="" and="" click="" ok.<="" p="">

image description

Fourth

For Release:

View -> Other Windows -> Property Manager Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib opencv_video243.lib

opencv_videostab243.lib

For Debug:

View -> Other Windows -> Property Manager Double click Debug | x64 1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long time. Go back and choose Release. Similarly, right click INSTALL. And choose Build. Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV\ So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.

Second

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description

Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager: Change the Active solution platform. Click on Win32, Select <new...&gt;. use="" the="" settings="" below="" and="" click="" ok.<="" p="">

New.... Use the settings below and click OK.

image description

Fourth

For Release:

View -> Other Windows -> Property Manager Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib opencv_video243.lib

opencv_videostab243.lib

For Debug:

View -> Other Windows -> Property Manager Double click Debug | x64 1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long time. Go period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build. .

Close Visual Studio 2012.

Copy C:\MyOpenCV\install C:\MyOpenCV\install folder to C:\OpenCV\ C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.

Second

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description

Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager: Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description

Fourth

For Release:

View -> Other Windows -> Property Manager Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib

For Debug:

View -> Other Windows -> Property Manager Double click Debug | x64 1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.

Second

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description

Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager: Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description

Fourth

For Release:

View -> Other Windows -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib

For Debug:

View -> Other Windows -> Property Manager

Double click Debug | x64 1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

Using OpenCV 2.43 in Vsiual Studio 2012


First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.


Second

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description


Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Fourth

For Release:

View -> Other Windows -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib


For Debug:

View -> Other Windows -> Property Manager

Double click Debug | x64 1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

Using OpenCV 2.43 in Vsiual Studio 2012


First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.


Second

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description


Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Fourth

For Release:

View -> Other Windows -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib


For Debug:

View -> Other Windows -> Property Manager

Double click Debug | x64 1.

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

Note: This is a tutorial for using OpenCV 2.43 and OpenCV 2.44 in Vsiual Studio 2012. If you use old OpenCV 2.43, please skip over the part for OpenCV 2.44.

Using OpenCV 2.44 in Vsiual Studio 2012


First

Open Windows Explorer. Click on Computer. Click on System properties.

image description

Click on Advanced system settings.

image description

Go to Advanced. Click on Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\build\x64\vc11\bin

image description


Second

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Third

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  • Linker -> Input -> Additional Dependencies

opencv_calib3d244.lib

opencv_contrib244.lib

opencv_core244.lib

opencv_features2d244.lib

opencv_flann244.lib

opencv_gpu244.lib

opencv_haartraining_engine.lib

opencv_highgui244.lib

opencv_imgproc244.lib

opencv_legacy244.lib

opencv_ml244.lib

opencv_nonfree244.lib

opencv_objdetect244.lib

opencv_photo244.lib

opencv_stitching244.lib

opencv_ts244.lib

opencv_video244.lib

opencv_videostab244.lib


For Debug:

View -> Other Windows -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d244d.lib

opencv_contrib244d.lib

opencv_core244d.lib

opencv_features2d244d.lib

opencv_flann244d.lib

opencv_gpu244d.lib

opencv_haartraining_engined.lib

opencv_highgui244d.lib

opencv_imgproc244d.lib

opencv_legacy244d.lib

opencv_ml244d.lib

opencv_nonfree244d.lib

opencv_objdetect244d.lib

opencv_photo244d.lib

opencv_stitching244d.lib

opencv_ts244d.lib

opencv_video244d.lib

opencv_videostab244d.lib

Note the file names has extra "d" which means debug



Using OpenCV 2.43 in Vsiual Studio 2012

Since OpenCV 2.43 does not work well with Visual Studio 2012, we need use CMake first.


First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.


Second

Open Windows Explorer. Click on Computer. Click on System properties.

image description

Click on Advanced system settings.

image description

Go to Advanced. Click on Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image descriptionimage description


Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Fourth

For Release:

View -> Other Windows -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib


For Debug:

View -> Other Windows -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

Note: This is a tutorial for using OpenCV 2.43 and OpenCV 2.44 in Vsiual Studio 2012. If you use old OpenCV 2.43, please skip over the part for OpenCV 2.44.

Using OpenCV 2.44 in Vsiual Studio 2012


First

Open Windows Explorer. Click on Computer. Click on System properties.

image description

Click on Advanced system settings.

image description

Go to Advanced. Click on Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\build\x64\vc11\bin

image description


Second

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Third

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  • Linker -> Input -> Additional Dependencies

opencv_calib3d244.lib

opencv_contrib244.lib

opencv_core244.lib

opencv_features2d244.lib

opencv_flann244.lib

opencv_gpu244.lib

opencv_haartraining_engine.lib

opencv_highgui244.lib

opencv_imgproc244.lib

opencv_legacy244.lib

opencv_ml244.lib

opencv_nonfree244.lib

opencv_objdetect244.lib

opencv_photo244.lib

opencv_stitching244.lib

opencv_ts244.lib

opencv_video244.lib

opencv_videostab244.lib


For Debug:

View -> Other Windows -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d244d.lib

opencv_contrib244d.lib

opencv_core244d.lib

opencv_features2d244d.lib

opencv_flann244d.lib

opencv_gpu244d.lib

opencv_haartraining_engined.lib

opencv_highgui244d.lib

opencv_imgproc244d.lib

opencv_legacy244d.lib

opencv_ml244d.lib

opencv_nonfree244d.lib

opencv_objdetect244d.lib

opencv_photo244d.lib

opencv_stitching244d.lib

opencv_ts244d.lib

opencv_video244d.lib

opencv_videostab244d.lib

Note the file names has extra "d" which means debug



Using OpenCV 2.43 in Vsiual Studio 2012

Since OpenCV 2.43 does not work well with Visual Studio 2012, we need use CMake first.


First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.


Second

Open Windows Explorer. Click on Computer. Click on System properties.

image description

Click on Advanced system settings.

image description

Go to Advanced. Click on Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description


Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Fourth

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib


For Debug:

View -> Other Windows -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

Note: This is a tutorial for using OpenCV 2.43 2.44 and OpenCV 2.44 2.43 in Vsiual Studio 2012. If you use old OpenCV 2.43, please skip over the part for OpenCV 2.44.

Using

If you use old OpenCV 2.44 in Vsiual Studio 2012


First

Open Windows Explorer. Click on Computer. Click on System properties.

image description

Click on Advanced system settings.

image description

Go to Advanced. Click on Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\build\x64\vc11\bin

image description


Second

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Third

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  • Linker -> Input -> Additional Dependencies

opencv_calib3d244.lib

opencv_contrib244.lib

opencv_core244.lib

opencv_features2d244.lib

opencv_flann244.lib

opencv_gpu244.lib

opencv_haartraining_engine.lib

opencv_highgui244.lib

opencv_imgproc244.lib

opencv_legacy244.lib

opencv_ml244.lib

opencv_nonfree244.lib

opencv_objdetect244.lib

opencv_photo244.lib

opencv_stitching244.lib

opencv_ts244.lib

opencv_video244.lib

opencv_videostab244.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d244d.lib

opencv_contrib244d.lib

opencv_core244d.lib

opencv_features2d244d.lib

opencv_flann244d.lib

opencv_gpu244d.lib

opencv_haartraining_engined.lib

opencv_highgui244d.lib

opencv_imgproc244d.lib

opencv_legacy244d.lib

opencv_ml244d.lib

opencv_nonfree244d.lib

opencv_objdetect244d.lib

opencv_photo244d.lib

opencv_stitching244d.lib

opencv_ts244d.lib

opencv_video244d.lib

opencv_videostab244d.lib

Note the file names has extra "d" which means debug



Using OpenCV 2.43 in Vsiual Studio 2012

Since 2.43, since OpenCV 2.43 does not work well with Visual Studio 2012, we need use CMake first.first. But if you use latest OpenCV 2.44, things become easy.

Using OpenCV 2.44 in Vsiual Studio 2012


First

Open Windows Explorer. Click on Computer. Click on System properties.

image description

Click on Advanced system settings.

image description

Go to Advanced. Click on Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\build\x64\vc11\bin

image description


Second

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Third

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  • Linker -> Input -> Additional Dependencies

opencv_calib3d244.lib

opencv_contrib244.lib

opencv_core244.lib

opencv_features2d244.lib

opencv_flann244.lib

opencv_gpu244.lib

opencv_haartraining_engine.lib

opencv_highgui244.lib

opencv_imgproc244.lib

opencv_legacy244.lib

opencv_ml244.lib

opencv_nonfree244.lib

opencv_objdetect244.lib

opencv_photo244.lib

opencv_stitching244.lib

opencv_ts244.lib

opencv_video244.lib

opencv_videostab244.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d244d.lib

opencv_contrib244d.lib

opencv_core244d.lib

opencv_features2d244d.lib

opencv_flann244d.lib

opencv_gpu244d.lib

opencv_haartraining_engined.lib

opencv_highgui244d.lib

opencv_imgproc244d.lib

opencv_legacy244d.lib

opencv_ml244d.lib

opencv_nonfree244d.lib

opencv_objdetect244d.lib

opencv_photo244d.lib

opencv_stitching244d.lib

opencv_ts244d.lib

opencv_video244d.lib

opencv_videostab244d.lib

Note the file names has extra "d" which means debug



Using OpenCV 2.43 in Vsiual Studio 2012


First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.


Second

Open Windows Explorer. Click on Computer. Click on System properties.

image description

Click on Advanced system settings.

image description

Go to Advanced. Click on Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description


Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Fourth

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

Note: This is a tutorial for using OpenCV 2.44 and OpenCV 2.43 in Vsiual Studio 2012. If you use old OpenCV 2.43, please skip over the part for OpenCV 2.44.

If you use old OpenCV 2.43, since OpenCV 2.43 does not work well with Visual Studio 2012, we need use CMake first. But if you use latest OpenCV 2.44, things become easy.

Using OpenCV 2.44 in Vsiual Studio 2012


First

Open Windows Explorer. Click on Computer. Click on and then System properties.

image description

Click on image description

Choose Advanced system settings.

image description

Go to Advanced. image description

Click on Environment Variables...

image descriptionimage description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\build\x64\vc11\bin

image descriptionimage description

image description


Second

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Third

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  • Linker -> Input -> Additional Dependencies

opencv_calib3d244.lib

opencv_contrib244.lib

opencv_core244.lib

opencv_features2d244.lib

opencv_flann244.lib

opencv_gpu244.lib

opencv_haartraining_engine.lib

opencv_highgui244.lib

opencv_imgproc244.lib

opencv_legacy244.lib

opencv_ml244.lib

opencv_nonfree244.lib

opencv_objdetect244.lib

opencv_photo244.lib

opencv_stitching244.lib

opencv_ts244.lib

opencv_video244.lib

opencv_videostab244.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d244d.lib

opencv_contrib244d.lib

opencv_core244d.lib

opencv_features2d244d.lib

opencv_flann244d.lib

opencv_gpu244d.lib

opencv_haartraining_engined.lib

opencv_highgui244d.lib

opencv_imgproc244d.lib

opencv_legacy244d.lib

opencv_ml244d.lib

opencv_nonfree244d.lib

opencv_objdetect244d.lib

opencv_photo244d.lib

opencv_stitching244d.lib

opencv_ts244d.lib

opencv_video244d.lib

opencv_videostab244d.lib

Note the file names has extra "d" which means debug



Using OpenCV 2.43 in Vsiual Studio 2012


First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.


Second

Open Windows Explorer. Click on Computer. Click on and then System properties.

image description

Click on image description

Choose Advanced system settings.

image description

Go to Advanced. image description

Click on Environment Variables...

image descriptionimage description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image descriptionimage description

image description


Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Fourth

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

Note: This is a tutorial for using OpenCV 2.44 and OpenCV 2.43 in Vsiual Studio 2012. If you use old OpenCV 2.43, please skip over the part for OpenCV 2.44.

If you use old OpenCV 2.43, since OpenCV 2.43 does not work well with Visual Studio 2012, we need use CMake first. But if you use latest OpenCV 2.44, things become easy.

Using OpenCV 2.44 in Vsiual Studio 2012


First

Open Windows Explorer. Click on Computer and then System properties.

image description

Choose Advanced system settings.

image description

Click Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\build\x64\vc11\bin

image description

image descriptionimage description


Second

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Third

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  • Linker -> Input -> Additional Dependencies

opencv_calib3d244.lib

opencv_contrib244.lib

opencv_core244.lib

opencv_features2d244.lib

opencv_flann244.lib

opencv_gpu244.lib

opencv_haartraining_engine.lib

opencv_highgui244.lib

opencv_imgproc244.lib

opencv_legacy244.lib

opencv_ml244.lib

opencv_nonfree244.lib

opencv_objdetect244.lib

opencv_photo244.lib

opencv_stitching244.lib

opencv_ts244.lib

opencv_video244.lib

opencv_videostab244.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d244d.lib

opencv_contrib244d.lib

opencv_core244d.lib

opencv_features2d244d.lib

opencv_flann244d.lib

opencv_gpu244d.lib

opencv_haartraining_engined.lib

opencv_highgui244d.lib

opencv_imgproc244d.lib

opencv_legacy244d.lib

opencv_ml244d.lib

opencv_nonfree244d.lib

opencv_objdetect244d.lib

opencv_photo244d.lib

opencv_stitching244d.lib

opencv_ts244d.lib

opencv_video244d.lib

opencv_videostab244d.lib

Note the file names has extra "d" which means debug



Using OpenCV 2.43 in Vsiual Studio 2012


First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.


Second

Open Windows Explorer. Click on Computer and then System properties.

image description

Choose Advanced system settings.

image description

Click Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description

image description


Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Fourth

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug

Note: This is a tutorial for using OpenCV 2.44 and OpenCV 2.43 in Vsiual Studio 2012. If you use old OpenCV 2.43, please skip over the part for OpenCV 2.44.

If you use old OpenCV 2.43, since OpenCV 2.43 does not work well with Visual Studio 2012, we need use CMake first. But if you use latest OpenCV 2.44, things become easy.

Using OpenCV 2.44 in Vsiual Studio 2012


First

Open Windows Explorer. Click on Computer and then System properties.

image description

Choose Advanced system settings.

image description

Click Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\build\x64\vc11\bin

image description

image description


Second

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Third

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  • Linker -> Input -> Additional Dependencies

opencv_calib3d244.lib

opencv_contrib244.lib

opencv_core244.lib

opencv_features2d244.lib

opencv_flann244.lib

opencv_gpu244.lib

opencv_haartraining_engine.lib

opencv_highgui244.lib

opencv_imgproc244.lib

opencv_legacy244.lib

opencv_ml244.lib

opencv_nonfree244.lib

opencv_objdetect244.lib

opencv_photo244.lib

opencv_stitching244.lib

opencv_ts244.lib

opencv_video244.lib

opencv_videostab244.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc11\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d244d.lib

opencv_contrib244d.lib

opencv_core244d.lib

opencv_features2d244d.lib

opencv_flann244d.lib

opencv_gpu244d.lib

opencv_haartraining_engined.lib

opencv_highgui244d.lib

opencv_imgproc244d.lib

opencv_legacy244d.lib

opencv_ml244d.lib

opencv_nonfree244d.lib

opencv_objdetect244d.lib

opencv_photo244d.lib

opencv_stitching244d.lib

opencv_ts244d.lib

opencv_video244d.lib

opencv_videostab244d.lib

Note the file names has extra "d" which means debug



Using OpenCV 2.43 in Vsiual Studio 2012


First

Download CMake. Open CMake and use settings below. Then click Configure.

image description

Choose Visual Studio 11 Win64. Click Finish.

image description

After a while, click Configure again. Wait a moment and then click Generate.

Close CMake and go to C:\MyOpenCV, open OpenCV.sln.

Choose Debug.

image description

Right click INSTALL. And choose Build.

image description

After a long period of time, go back and choose Release. Similarly, right click INSTALL. And choose Build.

Close Visual Studio 2012.

Copy C:\MyOpenCV\install folder to C:\OpenCV.

So now you have a C:\OpenCV\install folder. You can delete C:\MyOpenCV whole folder if you want.


Second

Open Windows Explorer. Click on Computer and then System properties.

image description

Choose Advanced system settings.

image description

Click Environment Variables...

image description

Add only this to Environment Variables -> System variables -> Path

C:\OpenCV\install\bin

image description

image description


Third

After creating your own project in Visual Studio 2012...

Build menu -> Configuration Manager

Change the Active solution platform. Click on Win32, Select New.... Use the settings below and click OK.

image description


Fourth

For Release:

View -> Property Manager

Double click Release | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243.lib

opencv_contrib243.lib

opencv_core243.lib

opencv_features2d243.lib

opencv_flann243.lib

opencv_gpu243.lib

opencv_haartraining_engine.lib

opencv_highgui243.lib

opencv_imgproc243.lib

opencv_legacy243.lib

opencv_ml243.lib

opencv_nonfree243.lib

opencv_objdetect243.lib

opencv_photo243.lib

opencv_stitching243.lib

opencv_ts243.lib

opencv_video243.lib

opencv_videostab243.lib


For Debug:

View -> Property Manager

Double click Debug | x64

  1. C/C++ -> General -> Additional Include Directories

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include

  1. Linker -> General -> Additional Library Directories

C:\OpenCV\build\x64\vc10\lib

  1. Linker -> Input -> Additional Dependencies

opencv_calib3d243d.lib

opencv_contrib243d.lib

opencv_core243d.lib

opencv_features2d243d.lib

opencv_flann243d.lib

opencv_gpu243d.lib

opencv_haartraining_engined.lib

opencv_highgui243d.lib

opencv_imgproc243d.lib

opencv_legacy243d.lib

opencv_ml243d.lib

opencv_nonfree243d.lib

opencv_objdetect243d.lib

opencv_photo243d.lib

opencv_stitching243d.lib

opencv_ts243d.lib

opencv_video243d.lib

opencv_videostab243d.lib

Note the file names has extra "d" which means debug