OSG3.4 + VS 2015 environment configuration

Source: Internet
Author: User
OSG3.4 + VS 2015 environment configuration

Small white I whim, before the computer to VS2013 with good OSG environment deleted, want to use VS2015 to play, after all, even VS2017 have come out for several days. Toss for three days, finally put OSG configuration good/(ㄒoㄒ)/~~. Below to share with you the spiritual journey, but also welcome you meet the same problems of friends and cattle people advice. 1 Required files for the environment configuration

1) OSG Source: Current version OSG 3.4

2) OSG third-party library: The official did not give a compiled vs2015 for the third-party dependency library, but given the required compilation of CMake script, we can download the script, according to the GitHub page prompts, download the corresponding source code, build a third-party dependent library. For this step, you can refer to this blog, but also in the generation of third-party libraries should be careful to choose the appropriate platform (x64 or x86) (about the platform selection I am not very clear, there are experts want to give advice). This step will eventually generate a 3rdParty folder containing the third-party libraries that correspond to your platform.

3) OSG packet: directly to the official website to download the good point here

4) CMake can download from here 2 pre-compilation preparation

1) in your D or some other disk to create a new folder, named OSG, the OSG source extracted from the folder after decompression and put to OSG

2) Copy the previously generated 3rdParty folder to the OSG folder

3) Unzip the downloaded OSG Packet folder and put it under OSG folder 3 to generate the project file

About the project file generation, you can refer to this blog, the process is consistent, the need to pay attention to the choice of the VS platform, in addition, should also pay attention to the CMake interface to the third-party library path manually configured, or finally can not generate third-party plug-in library 4 compile the project file

With vs 2015 Open the project file to compile, in the VS2015 interface click Generate –> batch generation, in the dialog box select All_build Debug and release two version to build, this period will be a bit long, about 3-4 hours, If there is no problem with the previous steps, this step should not be errors, at most there will be some warnings.

The next step is to build the debug and release two versions of the install, which is faster and may be completed in less than one hours or even minutes. 5 Data migration and environment variable settings and OSG project testing

These steps are clearly explained here.

In addition, if you want to install QT, pay attention to the version of the choice qt5.6 should be able to 6 end

Start enjoying it.

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.