Get the App
SLTechnology News&Howtos  ›  Servers  › 

Environment configuration of OpenGL 4 under Windows7+VS2012

Shulou Source: shulou.com Published: 2022-06-03 00:42:17 10月03日 Update

1) determine the OpenGL version supported by the system

GPU Caps Viewer checks the maximum supported OpenGL and GLSL versions of the machine

Download source: http://www.geeks3d.com/20161107/gpu-caps-viewer-1-32-0-released/

2) download the necessary source code and environment

Various extension libraries used by GLEW to manage and load OpenGL

Download source: https://sourceforge.net/projects/glew/files/glew/1.12.0/glew-1.12.0.zip/download

GLFW is used to create windows and control mouse and keyboard interactions

Download source: https://github.com/glfw/glfw

Install CMAKE. Used to assist in compiling GLFW

Download source: http://www.cmake.org

1 cmake execution exception

Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)

Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

Using Win32 for window creation

Configuring done

Generating done

Install vulkan and Doxygen

Https://vulkan .lunarg.com / sdk/download/1.0.33.0/windows/VulkanSDK-1.0.33.0-Installer.exe

Http://www.stack.nl/~dimitri/doxygen/download.html

2 Source code modification

Change snprintf to _ snprintf

Change fmin to min

Change fmax to max

3 header file missing

Stdbool.h

Stdint.h

This header file is mainly the standard header file of C99. These two header files are not found in the VS header file, so they can be copied from other machines (such as Android NDK or cywin copy installed).

4 GLFW3 uninstalls the vulkan project in the Tests folder, which currently cannot be compiled through

5 Why does glew32.dll need to be placed in the directory C:\ Windows\ SysWOW64, which is actually a 32-bit dll

Reference: http://www.cnblogs.com/rainbow70626/p/5557636.html

Tags: File copy machine source code version directory project support compilation environment maximum two actual actually folder standard system missing this is reason Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information NVidia Shulou Tech Info OPPO Reno macOS