VS, generic VC + + directory and lib directory __c++

Source: Internet
Author: User

Using OpenCV in VS you will find that each new project requires a reconfiguration of the Include directory and Lib directory, and there is no one configuration that can be configured once in the future. The answer is yes.

Take VS2010 as an example:

Open View--Other Windows--property manager


Open Debug in Project | x64 in the Microsoft.Cpp.x64.user properties, depending on your situation, choose release or x86, see your machine and choose, I was in debug, I was using a 64-bit machine, as shown


Configure the VC + + directory and Lib directory, as shown in the environment variable, I configured the OPENCV_DIR environment variable, the value is D:\OPENCV\build

So if the OpenCV directory changed before the project does not need to change, only need to change the value of the environment variable OPENCV_DIR.

The value of configuring the VC + + directory and Lib directory can be found in another article.

Link: http://blog.csdn.net/quincuntial/article/details/49641437


So far, close vs, Save the configuration, new projects do not need to configure the VC + + directory and Lib directory, as to add Lib file, can also be in the linker-input configuration, as well as inventory tools-input and output in the embedded list selected No, can be configured here, do not understand why the configuration of these two look

Link: http://blog.csdn.net/quincuntial/article/details/49641437.

OK, configure the generic OpenCV configuration to this, of course, other common configuration can be completed here, configured again, the new project does not need to reconfigure.

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.