From c5696e5607a5ce0ed4a882f9628ab6103a7c2d15 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 9 May 2018 10:52:41 +0200 Subject: [PATCH] Updated Compile for Windows (markdown) --- Compile-for-Windows.md | 31 ------------------------------- Working-on-Windows.md | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 31 deletions(-) delete mode 100644 Compile-for-Windows.md create mode 100644 Working-on-Windows.md diff --git a/Compile-for-Windows.md b/Compile-for-Windows.md deleted file mode 100644 index a314226..0000000 --- a/Compile-for-Windows.md +++ /dev/null @@ -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 \ No newline at end of file diff --git a/Working-on-Windows.md b/Working-on-Windows.md new file mode 100644 index 0000000..cafe164 --- /dev/null +++ b/Working-on-Windows.md @@ -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 \ No newline at end of file