mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-03 20:59:18 -05:00
Renamed 'quckstart' to be mingw specific. Technically Game-premake is quicker, and all options should be explained before one is shown.
@ -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
|
1. Download `w64devkit-x.xx.x.zip` from https://github.com/skeeto/w64devkit
|
||||||
|
|
||||||
> Unzip to `c:\w64devkit`
|
> Unzip to `c:\w64devkit`
|
||||||
@ -37,36 +69,6 @@ int main() {
|
|||||||
6. Run:
|
6. Run:
|
||||||
> `./raylibhelloworld.exe`
|
> `./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
|
### Build raylib using make
|
||||||
|
|
||||||
Using MinGW make tool, just navigate from command line to `raylib/src/` folder and type:
|
Using MinGW make tool, just navigate from command line to `raylib/src/` folder and type:
|
||||||
|
|||||||
Reference in New Issue
Block a user