Visual Studio 2013 Configuration OpenCV 2.4.9_ tool under 64-bit system

Source: Internet
Author: User
[Env.]
x64,
Visual Studio 2013 Professional,
Some paths:
LIBPATH--D:\app\opencv249\opencv\build\x64\vc12\lib
BinPath--D:\app\opencv249\opencv\build\x64\vc12\bin
Includepath--D:\app\opencv249\opencv\build\include




[Create OpenCV Project]
1. Create a project using vs2013
Project is:
1). NET Framework 4
2 Empty Project, WIN32 console Application


2.
In the menu bar, click View/Other Window/property manager
(View/other windows/properties Manager)


3.
Right-click "Debug| Win32 "-> Add new project property sheet;
Props file Rename to Propertysheet_debug.props;
Double-click Propertysheet_debug;


4.
Under the Properties page,
Common Properties/vc++ Directory/executable directory, add binpath;
Common Properties/vc++ directory/Library directory, add libpath


5.
Under the Properties page,
Common Properties/candc++/Additional include directory, add Includepath


6.
Under the Properties page,
General properties/linker/General/Additional library directory, add libpath;
Common Properties/linker/input/Attach dependencies, add a list of files in Libpath that are ending with. D.
You can also refer to the OPENCV official website configuration Visual Studio file list.
For this version, that is:
Opencv_calib3d249d.lib
Opencv_contrib249d.lib
Opencv_core249d.lib
Opencv_features2d249d.lib
Opencv_flann249d.lib
Opencv_gpu249d.lib
Opencv_highgui249d.lib
Opencv_imgproc249d.lib
Opencv_legacy249d.lib
Opencv_ml249d.lib
Opencv_nonfree249d.lib
Opencv_objdetect249d.lib
Opencv_ocl249d.lib
Opencv_photo249d.lib
Opencv_stitching249d.lib
Opencv_superres249d.lib
Opencv_ts249d.lib
Opencv_video249d.lib
Opencv_videostab249d.lib


7. Save Apply


8. Right-click "Release|win32" to do a similar configuration as "Debug|win32".


9. To avoid fatal error LNK 1112,
1 in the solution, right-click Project/property/linker/Advanced/target computer/x64
2 in the solution, right-click Project/attribute, click on the upper right corner configuration Manager,
Debug and release platforms are set to x64
3 in the solution, right-click Project/cleanup


10. Import Test Files
To add an existing item to the source file folder, select
D:\app\opencv249\opencv\sources\samples\cpp\drawing.cpp









Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.