mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-31 11:19:18 -05:00
Updated Compile for Windows (markdown)
@ -1,31 +0,0 @@
|
|||||||
To build your raylib game for Windows, raylib installer comes with all the required tool; it includes a ready to use code editor: Notepad++ with some useful scripts ready and it also includes MinGW compiler with basic C libraries.
|
|
||||||
|
|
||||||
If you want to use another code editor like Visual Studio or another compiler package you can also use them but this instructions below are focused on raylib standard development tools: Notepad++ and MinGW.
|
|
||||||
|
|
||||||
### Installing raylib
|
|
||||||
|
|
||||||
Just download raylib installer and run it. It installs Notepad++ and MinGW, custom versions for better integration with raylib.
|
|
||||||
|
|
||||||
Add the bin path of raylib installer's GNU tools to your PATH environment variable.
|
|
||||||
_e.g. C:\raylib\MinGW\bin_
|
|
||||||
|
|
||||||
NOTE: Make sure the following libs (and their headers) are accessible to the compiler (This should be taken care of after following the above steps):
|
|
||||||
|
|
||||||
GLFW3 - libglfw3.a (static version)
|
|
||||||
OpenAL Soft - libOpenAL32.a (static version)
|
|
||||||
|
|
||||||
### Compiling raylib source code
|
|
||||||
|
|
||||||
_Step 1:_ Using MinGW make tool, just navigate from command line to `raylib/src/` folder and type:
|
|
||||||
|
|
||||||
mingw32-make PLATFORM=PLATFORM_DESKTOP
|
|
||||||
|
|
||||||
NOTE: By default raylib is compiled for OpenGL 3.3 Core backend; to compile for OpenGL 1.1 just type:
|
|
||||||
|
|
||||||
mingw32-make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_11
|
|
||||||
|
|
||||||
### Compiling your raylib game
|
|
||||||
|
|
||||||
_Step 1:_ Using MinGW make tool, just navigate from command line to `raylib/examples/` folder and type:
|
|
||||||
|
|
||||||
mingw32-make PLATFORM=PLATFORM_DESKTOP
|
|
||||||
36
Working-on-Windows.md
Normal file
36
Working-on-Windows.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
## Building Library
|
||||||
|
|
||||||
|
To build your raylib game for GNU/Linux you need to download raylib git repository. raylib already comes with ready-to-use makefiles and CMake system to compile source code, examples and templates.
|
||||||
|
|
||||||
|
**raylib Windows Installer** comes with all the required tool to develop with raylib, those tools are:
|
||||||
|
* C Compiler (TCC or MinGW) - To compile the code, it includes all required system libraries.
|
||||||
|
* Notepad++ (preconfigured) - To edit code, it includes ready-to-use scripts to compile code and examples.
|
||||||
|
* raylib library - Including, source, release, examples and templates.
|
||||||
|
|
||||||
|
If you want to use another code editor like Visual Studio or another compiler you can also use them but this instructions below are focused on raylib standard development tools: Notepad++ and TCC/MinGW.
|
||||||
|
|
||||||
|
### Build raylib using Notepad++ script
|
||||||
|
|
||||||
|
Just open `raylib/src/raylib.h` source file on Notepad++ and execute (F6) the script `raylib_source_compile`
|
||||||
|
|
||||||
|
### Build raylib using make
|
||||||
|
|
||||||
|
Using MinGW make tool, just navigate from command line to `raylib/src/` folder and type:
|
||||||
|
|
||||||
|
mingw32-make PLATFORM=PLATFORM_DESKTOP
|
||||||
|
|
||||||
|
By default raylib is compiled for OpenGL 3.3 Core backend; to compile for OpenGL 1.1 just type:
|
||||||
|
|
||||||
|
mingw32-make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_11
|
||||||
|
|
||||||
|
## Building Examples
|
||||||
|
|
||||||
|
### Build example using Notepad++ script
|
||||||
|
|
||||||
|
Just open your example source file on Notepad++ and execute (F6) the script `raylib_compile_execute`
|
||||||
|
|
||||||
|
### Build ALL examples using make
|
||||||
|
|
||||||
|
Using MinGW make tool, just navigate from command line to `raylib/examples/` folder and type:
|
||||||
|
|
||||||
|
mingw32-make PLATFORM=PLATFORM_DESKTOP
|
||||||
Reference in New Issue
Block a user