79341006

Date: 2025-01-08 23:43:33
Score: 1
Natty:
Report link

Solution for Visual Studio 2022

  1. Install vcpkg: https://learn.microsoft.com/en-us/vcpkg/get_started/get-started?pivots=shell-powershell

  2. Add VCPKG_ROOT = PATH_TO_VCPKG to your environment variables. Add VCPKG_ROOT to your PATH env variable

  3. In Visual Studio, in the solution explorer pane, right click on the C/C++ project name, select Properties from the dropdown. Select the Debug configuration. In the C/C++ tab, edit "Additional Include Directories", and add %VCPKG_ROOT%\packages\freeglut_x64-windows\include. In the linker\input tab, add %VCPKG_ROOT%\packages\freeglut_x64-windows\debug\lib\freeglutd.lib

  4. copy %VCPKG_ROOT%\packages\freeglut_x64-windows\debug\bin\freeglutd.dll to the x64\Debug directory of your project

  5. Compile and run

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: maszoka