From 769c0f7f9eb28028acb1b6738e6596ee28a577e9 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Wed, 21 Feb 2024 10:56:38 -0800 Subject: [PATCH] Renamed 'quckstart' to be mingw specific. Technically Game-premake is quicker, and all options should be explained before one is shown. --- Working-on-Windows.md | 64 ++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/Working-on-Windows.md b/Working-on-Windows.md index 341b8d2..5761e32 100644 --- a/Working-on-Windows.md +++ b/Working-on-Windows.md @@ -1,4 +1,36 @@ -## Quick start + + +## Building raylib on Windows + +There are several ways to get setup on windows. This page will go through them from the easiest to the most difficult. + +### Compilers +For compilers on windows there are two popular choices. +#### Visual Studio +This is the industry standard IDE for working on windows. A free version is available as the community edition. +https://visualstudio.microsoft.com/vs/community/ +*Note* Visual studio is large and somewhat resource intensive, you should have a recently modern computer to use it. + +#### MinGW-W64/GCC +This is an open source C/C++ toolchain that is very lightweight. The best way to get MinGW-W64 and GCC is via the W64Devkit +https://github.com/skeeto/w64devkit/ +Download the w64devkit zip file, unzip it and run W64Devkit.exe. that will give you a terminal that is ready to go. + +*Note* that old MinGW (Not w64) from mingw.org will not work with raylib. You need to use MinGW-w64. + +## Game-Premake, the simple solution to get started quickly. +The game premake system is quite honestly the simplest way to get started on windows. It is a solution that uses premake to generate a build system specifically for raylib for you. It handles everything including setting up raylib. + +https://github.com/raylib-extras/game-premake + +It works with many compilers on windows, linux and mac OS. + +Simply follow the instructions in that link and you will be done. If you use game-premake you can ingore the rest of this document + +## Other methods +If you do not want to use game-premake, you have several options + +## Manual Setup with W64Devkit 1. Download `w64devkit-x.xx.x.zip` from https://github.com/skeeto/w64devkit > Unzip to `c:\w64devkit` @@ -37,36 +69,6 @@ int main() { 6. Run: > `./raylibhelloworld.exe` -## Building raylib on Windows - -There are several ways to get setup on windows. This page will go through them from the easiest to the most difficult. - -### Compilers -For compilers on windows there are two popular choices. -#### Visual Studio -This is the industry standard IDE for working on windows. A free version is available as the community edition. -https://visualstudio.microsoft.com/vs/community/ -*Note* Visual studio is large and somewhat resource intensive, you should have a recently modern computer to use it. - -#### MinGW-W64/GCC -This is an open source C/C++ toolchain that is very lightweight. The best way to get MinGW-W64 and GCC is via the W64Devkit -https://github.com/skeeto/w64devkit/ -Download the w64devkit zip file, unzip it and run W64Devkit.exe. that will give you a terminal that is ready to go. - -*Note* that old MinGW (Not w64) from mingw.org will not work with raylib. You need to use MinGW-w64. - -## Game-Premake, the simple solution to get started quickly. -The game premake system is quite honestly the simplest way to get started on windows. It is a solution that uses premake to generate a build system specifically for raylib for you. It handles everything including setting up raylib. - -https://github.com/raylib-extras/game-premake - -It works with many compilers on windows, linux and mac OS. - -Simply follow the instructions in that link and you will be done. If you use game-premake you can ingore the rest of this document - -## Other methods -If you do not want to use game-premake, you have several options - ### Build raylib using make Using MinGW make tool, just navigate from command line to `raylib/src/` folder and type: