OpenGL Super Treasure Visual Studio 2013 development environment configuration, Gltools

Source: Internet
Author: User

To do three-dimensional reconstruction needs to use OpenGL, began to see the "OpenGL Super Treasure", the first step to configure the environment for beginners to toss a day, recording the environment of the configuration process.

The example in the Super Treasure Book uses the three libraries of Glew,freeglut and the author's own gltools .

1.GLEW

The OpenGL Extension Wrangler Library (Glew) is a cross-platform open-source C + + Extension loading library. Glew provides efficient run-time mechanisms for determining which OpenGL extensions is supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. Glew have been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris.

Glew is a cross-platform OpenGL Extension library that supports multiple operating systems. : http://glew.sourceforge.net/ provides compiled files

The extracted files will be copied separately after decompression:

The Include folder is the header file, and the GL folder under the Include folder is copied to C:\Program files (x86) \microsoft Visual Studio 12.0\vc\include

Release\win32 files under the Lib folder are copied into: C:\Program files (x86) \microsoft Visual Studio 12.0\vc\lib

Release\win32 files under the Bin folder are copied to: C:\Windows\System32

Glew the configuration is complete.

2.freeglut

Freeglut is a free-software/open-source alternative to the OpenGL Utility Toolkit (GLUT) library.

The latest stable version is 3.0, its: http://freeglut.sourceforge.net/, does not provide the compiled package, need to use cmake self-compiling.

Configuration of the CMake

Note the red circle of two locations, the first is the location of the generated Freeglut library file, which is the default in C (System disk), because access to C disk requires administrator rights, here is not using the default value.

The second is to generate the static LIB, tick this option when the install will have an error, because do not generate this static Lib also does not have much influence, this option is canceled here. After configuring the CMake option, the project for generate generated visual studio2013 is as follows:

Open Freeglut.sln

Compile, generated library file under CMake configuration Cmake_install_prefix, there are three folders include, Bin, Lib, and Glew similar to copy their contents to the appropriate location.

The Freeglu configuration is complete.

3.GLTools

The configuration of the gltools is cumbersome, mainly because the source code is not downloaded according to the URL provided in the book (http://www.starstonesoftware.com/). Fortunately, a Gltools Linux version (address: Https://github.com/HazimGazov/GLTools) was found on GitHub, and the Gltools library was generated using its source code compilation.

Note that GLEW.C needs to go to Glew's website under its source code, and that its include file needs to be placed under the Vc\include folder, and that Glew and Freeglut are configured to complete.

Add _crt_secure_no_warnings to the preprocessor definition that needs to change its project properties before compiling the Gltools > C + + > preprocessor to the right

After compiling the build, copy the GLTools.lib under the Debug folder to C:\Program Files (x86) \microsoft Visual Studio 12.0\vc\lib

4. Finally

To set dependencies for a project

Ignore specific dependent libraries

The first example of "Super treasure":

OpenGL Super Treasure Visual Studio 2013 development environment configuration, Gltools

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.