A simple system monitor built with C++ and OpenGL/freeglut for Windows.
- MSYS2 (Windows package manager)
- OpenGL
- freeglut
- G++ (Mingw-w64 toolchain)
Download and install MSYS2 from here.
Open the MSYS2 terminal and run:
pacman -SyuRestart the terminal if prompted, then run:
pacman -SuIn the MSYS2 terminal, run:
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-freeglut mingw-w64-x86_64-mesa- Go to Control Panel → System → Advanced system settings.
- Click Environment Variables.
- Edit the
Pathvariable under "System variables". - Add:
C:\msys64\mingw64\bin - Click OK to save.
Open the MSYS2 MinGW 64-bit terminal.
Navigate to your project folder and run:
g++ main.c -o main -lfreeglut -lopengl32 -lglu32Adjust main.c to your source file name if needed.
./main.exe- Always use the MSYS2 MinGW 64-bit terminal for building/running.
- If you get missing header errors, double-check your package installations.
- For more advanced builds, consider adding a
Makefileor CMake script.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Happy coding!