Installation from source on Windows 7 with Visual c++2012

Source: Internet
Author: User



In this section, you will learn to install Visp from the source under the Windows platform with Visual C + +. The following installation steps have been successfully installed in 32-bit Windows systems, CMake3.1 and visual Studio 2012 environments, and may be installed in other versions of the software environment.



1 The required installation packages are:



Visual Studio C + + 2012. Note Visp can also be installed in Visual Studio Express;



CMake version 2.8 or higher.



2 need to download Visp source code, download the source code there are many ways, recommended from the official website to download the latest release version.



3 From Source Configuration Visp



Recommended installation path for ViSP source files is, C:\ViSP\ViSP-2.10.0. Create a new Visp-2.10.0-build folder under the same path to hold the files generated by the CMake compilation.





    • Open the CMake to set the source code path and generate the binary file path, as shown in the completion.
    • Click Configure. Where the compiler chooses the local compiler for visual Studio C + + 11 2012.
    • Click Configure again, and the red lines in the CMake window will disappear.





4 Select a third-party library



It is recommended to choose OpenCV. The download and installation of OPENCV is not described here in detail. However, it is important to note that after the installation is completed OPENCV, we need to add the corresponding environment variables, which can be embedded at the command prompt:






Setx Opencv_dir C:\OpenCV\opencv-3.0.0-beta\build



To achieve.



After the environment variable is added, you need to exit and restart the CMake to identify the newly added environment variable, as shown in the figure.






Click Configure again to eliminate the red item.



5 End configuration



Once the above steps have been completed successfully, you can click Generate to end the configuration process.



6 generating Visp from source code



Open theC:/ViSP/ViSP-2. 10.0-build under the corresponding project file VISP.sln, you can see 272 projects under the solution.






Press F7, build the solution, and then locate the install item to generate the Visp.






After completing the above operation in debug mode, and then performing the same operation under release, the whole process is a bit long, after the successful execution of the above steps, the corresponding binary file can be generated.






7 Setting environment variables



Finally, we need to add the path of the corresponding binary file to the environment variables of the system so that it can be called in the form of a dynamic link library. Complete the addition of the environment variables by following the two commands:



C:\users\...> Echo%PATH%



c:\users\...> setx PATH "%PATH%; C:\ViSP\ViSP-2.10.0-build\install\x64\vc12\bin "



c:\users\...> setx PATH "%PATH%; C:\OpenCV\opencv\build\x64\vc12\bin "



8 Installing test data



The Visp routines are equipped with the appropriate picture data for use with the routines, at the command prompt:



Setx Visp_input_image_path C:\ViSP



To complete this step, at this point, Visp installation is complete, you can start to build their own projects.






Installation from source on Windows 7 with Visual c++2012


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.