How to compile Raylib from scratch and set up your first projects (Windows / C ) in 15 minutes

preview_player
Показать описание
Raylib is an awesome framework for programming games with. Sometimes people tend to run into issues compiling it, or forcing themselves into an IDE that they don't necissarily want to use. This video will show you how to compile Raylib from scratch, and compile your first project with it.

Chapters:

0:00 intro
0:28 what is raylib?
1:00 getting started
1:18 working on windows
1:50 checking your path
2:23 download mingw
2:24 installing mingw
3:16 adding gcc to your path
4:24 downloading raylib source
5:05 compiling raylib
5:54 setting up your first project
8:38 compiling your first project
10:17 compiler command
13:30 compiler recap
14:21 saving your compile command
14:55 build script
Рекомендации по теме
Комментарии
Автор

The best explanation I found so far explaining how to actually compile the library.

fedorvasilev
Автор

This is by far the best tutorial out there on how to compile raylib and build a project in it. Thank you for doing this.

Birko
Автор

Thank you for this walkthrough! I'm very new to C, but with your help I've got my first .exe!
I had issues compiling Raylib previously because I used the wrong version of mingw. But your instructions worked perfectly once I got rid of the artifacts from the 'wrong' compiler (the .o files).
Thanks again!

ISKLEMMI
Автор

Outstanding presentation, clearly spoken, to the point, quick summaries. Thank you for the save.

dylanneary
Автор

Awesome stuff, man! And thanks for the shoutout!

johnjackson
Автор

Thank you for this. Exactly what I was looking for!

timwright
Автор

Thank you so much! Its a very short video but yet so easily understandable. Its the only turtorial that worked for me.

nidadursunoglu
Автор

This one still works on version 5.0. Thank you for making the compilation easy to do.

migsygerzky
Автор

pretty much a masterclass in how to make one of these installation tutorials
clear instructions throughout; no lame attempts at humour or silly music
many thanks for sharing your knowledge
stoked to get this up and running; looking forward to see what i can do with it
one question: do we really need the -I include/ part of our instruction to the compiler?
doesn't the compiler already know where to find raylib.h given that we've hard coded that into our source file?
thanks again; much appreciated

pixelwrinkly
Автор

Great explanation and tutorial! Simple way to get it working outside of visual studio

dylanstevens
Автор

Thank you very much, this is one of the rare ones that is actually helpful.

derpysean
Автор

liked and subbed, first time(due to bad version of mingw I think wich I realised too late(a good 1 year while I was doing only terminal based programs)) I achieved downloading a graphics library THANK YOU!

pinguin
Автор

After a WHOLE day of trying I got to your tutorial and it worked tysm!!! earned a like.

luigi
Автор

Thank you so much. I was going nuts with trying to set this up, since I'm new with C and everything. Should've watched this first lol

Akselmoi
Автор

This changes nothing about the video, but if you want to know more or found the mixing of MinGW and GCC confusing, this is for you:

MinGW isn’t a compiler. GCC (GNU Compiler Collection) is the compiler and it’s included with MinGW. What is MinGW then? It’s a minimal set of tools and libraries common across GNU-based OSs, but tailored for Windows applications. Minimalist Gnu for Windows = MinGW. It gives you the development environment you have on GNU + Linux, but allows you to create native Windows applications on Windows as well as on GNU + Linux.

SillyOrb
Автор

this is by far, the least painful libary to compile from scratch. thank you for this

not_herobrine
Автор

when installing mingw it says the file has been downloaded incorrectly

lukamalovic
Автор

Thanks for this. I've been tinkering with Raylib as a novice programmer. I've been looking for tutorials but there aren't very many for Raylib yet.

heyitsandrew
Автор

Thank you! this helped me a lot in understanding the underlying stuff.

usoppgod
Автор

Thank you very much! I was playing around with the Go raylib lib but it has some bugs so I decided to try out the official C version. :)

Im_Ninooo
visit shbcf.ru