How to create a window using C++ and Raylib without an IDE (Mingw64)
How to create a window using C++ and Raylib without an IDE (Mingw64) for Windows.
Requirements:
- A computer
- Windows 64bit
- Internet connection and a browser
- 7zip
- a brain
You're gonna learn:
- How to download and install Mingw64 compiler (gcc, g++...)
- How to add mingw to the path so the compilers (gcc, g++...) always work no matter the current directory.
- How to download a library called Raylib and build it yourself
- How to setup a simple C++ project and setup the library binaries into it.
- How to build the whole application and link it with raylib using a .bat file
- How to make your first window using Raylib and C++
Links: Mingw64 Download (Download the compiler): https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download
Raylib Official Website: https://www.raylib.com
Raylib Releases (Where to download the source code): https://github.com/raysan5/raylib/releases
Raylib Building Wiki (Building raylib commnand): https://github.com/raysan5/raylib/wiki/Working-on-Windows
Raylib cheatsheet (All functions inside raylib in one place): https://www.raylib.com/cheatsheet/cheatsheet.html
build.bat (Building project): @echo off g++ *.cpp -o game.exe -O1 -Wall -std=c++17 -Wno-missing-braces -I Include/ -L Lib/ -lraylib -lopengl32 -lgdi32 -lwinmm
Build raylib command (execute it in /src): mingw32-make PLATFORM=PLATFORM_DESKTOP
Discord server: https://discord.gg/mxqM4hf Support me in paypal: https://www.paypal.com/paypalme/CodesOtakuYT
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬ 00:00 Intro 00:15 Downloading 02:00 Installing Mingw64 03:00 Adding Mingw64 to the path 06:30 Setuping Raylib source code 07:10 Building Raylib library 08:30 Creating a new project 10:30 Starting to code in cpp! 13:30 Setuping the project build system 14:00 Build command (.bat) 17:30 Trying to build (Failure, How to debug and fix your errors) 19:50 Building our application (SUCCESS) 20:30 You don't need an IDE 21:20 Make sure to close your application before building it 22:10 Making our build system more spicy 23:45 A spicy outro (Subscribe) ... https://www.youtube.com/watch?v=Ew8h75KMHGY
83927407 Bytes