Not only you showed us how to get it to work, but you also made it easy for us to remember what to do by explaining what would happen when a step was missed. Nice video.
I've never been able to follow a tutorial completley because theres is always something wrong with it, but this one, I gotta say it, was so perfect, I followed the tutorial exactly as he showed, and it worked perfectly as expected, I liked and subscribed with all 3 of my accounts just because of that, thank you so much for this video.
I have three or four times tried to install SDL2 with a youtube video. And every time it's failed. I had an error and nothing works. But with your Video it's works really. YOU ARE THE BEST!!
Thank you So much for this, I had to go through 4 different IDEs , and kept trying until my brain was fried and finally settled on VS and IT WORKED!!!!
Libary installation for microsoft languages sucks... coming from pythen, one terminal command and it works. Now im trying to learn a more advanced language and i cant even get the installation done... hopefully it will work like in the video!
I cant explain how much grateful I am... I was running after this for long time. Finally u helped me achieve this linked to mu visual studio .. what a relief :D thank u so much
Thank you so much, I've been trying to do this for a while now, and you've been the only person that has helped me to set up SDL2, the right way. Thanks, god bless man! +1 like, and 1+ sub from me.
Don't know if it is the steps i followed in your tutorial (i have followed many others) or the format to Windows 10i did,but ITWORKS PERFECT !!!!!!!!!!THANK YOU
I spent the whole afternoon chasing linker errors and options to compile because I was using the Linux subsystem shell within Visual Studio, whilst I could've just spent 15 minutes watching this video and I would've been done. I wish I had found this a lot sooner.
Thank you so much, I love how you run into the error before correcting them, it makes it a lot easier to learn what these error mean and how everything works!
I have installed SDL many times, with success. Each time I was under the impression that my way was clumsy and that there is something wrong with my head. It looks like this is the "right way" in this messed up system. I came to watch this video to find the right way;D. Well, that's a relief. I will definitely try Linux to compare. Great video
I'm not sure there is a "right way", as each project might require something different. This is how I install SDL global in a folder of my OS. Some projects might be betrer to install SDL locally in the project folder with the source code. I tried to be as si ple as possible for beginners, as many students suffer to understand all the steps. :)
i have an issue : "the code execution cannot procced because SDL2.dll was not found . Reinstalling the program may fix this problem" i reinstalled the thing and it did not work
Go to Windows Settings, search for "Edit the system environment variables", click "Environment Variables...", Select "Path", click "Edit" -> "New" -> "Browse", select your sdl/lib/x64 or x86 folder -> click "ok" -> "ok" -> "ok". Restart Visual Studio and that should do the job.
hi, i'm starting in programming and I would like to know if does this development library (C ++) also allow me to program in c( A game for example)? or I will need another one?
Thank you sir, you explained everything in good way i appreciate your effort, i think this video should be added to your lua course, i couldn't use SLD in visual studio code.
Oh Actual my Pc Is Compatible for 64 i found problem and also i install wrong version but now i install SDL2-devel-2.24.0-VC.zip Thank You Sir From Several Days I Cann't Solve That But When I See Your Video I Solve THe Problem Again Thank You So Much
You can probably solve that by naming your file and using the extension .cpp. I believe Visual Studio uses the extension to identify the language of the project. (at least the last time I used it was like that).
I did everything like he said but i still get an error of 1 unresolved externals and the system cannot find the file specified. Why is this happening, i told visual studio everything about where to find the librariries.
Thanks for your tuto. I have followed others with vscode +mingw without success. Note: I have to put the x64 libs because the x86 are not accepted (now ?) by VC.
Is it possible to use a relative path to the project directory? I've tried using $(ProjectDir) and though it works for the "Linker" properties, it doesn't for the "VC++ Directories" Thanks for the tuto, it's a life saver! *Edit: also, how could we have a dll folder inside the project? I'm planning to include other libraries, and I wouldn't like to have all .dlls dancing in my workspace
@@pikuma Thanks went and got that. Installed VS and made it all the way through the video. VS eats a lot of my resources compared to VSCode. Which is what I normally use. I just will use VS to finish going through the LUA course. Since I went most of the way with VSCode when I got to this section it has been a large learning curve using Ubuntu for windows cause I could not figure out how to find the .exe file for gcc and really don't have an understanding of the makefile yet. I've just been finding out how to get the same results as you get in the end. I had to add the 64 folders on this one because I got errors using x(86). Thanks for all your help.
@@pikuma i cant find the correct file.. all i can find is a "SDL2-2.26.0-win32-x64.zip" but this doesnt seem to be the right one since there is no folder named "include" or "lib" in there
Hey! But I know you! I really liked your course about ASM under Atari 2600. Is there something that you don't know? Thank you for your explanation. I wish you the best sir ++
This didn't work, just like every other tutorial. I don't know what I did wrong. edit: I ended up needing 2 extra steps to get it to work. This did help, though
Thank you so much, damm linker, I totaly forgot I need to care for it as well :) BTW: How do you setup linker with Cmake? (If instead of creating new project, you create new cmake project (visual studio has a template for that) Because I was trying to use find_package(SDL2 REQUIRED) But it didnt find a thing, then after manualy specifying include and library dir the linker complained and not sure how to tell the linker where to look with cmake?
DEAR pikuma, Let me tell you man, I've been looking around for videos, tutorials, and I've tried dozens of times to figure this very simple thing out, I got angry, I got depressed, and by the time that I watched this video I was starting to think I would never figure out how to download this. Then you showed me that this file SDL2-devel-2.28.5-mingw.zip is for UNIX and this file SDL2-devel-2.28.5-VC.zip is for windows. sincerely vazzible.
This is waaay to hard. After you install Visual Studio install vcpkg which will handle all your dependencies with a single command `vcpgk install sdl2` done!
Not only you showed us how to get it to work, but you also made it easy for us to remember what to do by explaining what would happen when a step was missed. Nice video.
This is the most complete and well-explained SDL tutorial that I've ever seen in many years. Congrats for the good content :)
I've never been able to follow a tutorial completley because theres is always something wrong with it, but this one, I gotta say it, was so perfect, I followed the tutorial exactly as he showed, and it worked perfectly as expected, I liked and subscribed with all 3 of my accounts just because of that, thank you so much for this video.
I have three or four times tried to install SDL2 with a youtube video. And every time it's failed. I had an error and nothing works. But with your Video it's works really. YOU ARE THE BEST!!
This man is using a type writer as a keyboard XD Also thx for this tutorial it was very helpful
I tried many tutorials and many IDEs and none worked. BUT THANKS TO THIS ONE I DID IT!!! thank you very much
Thank you So much for this, I had to go through 4 different IDEs , and kept trying until my brain was fried and finally settled on VS and IT WORKED!!!!
Finally. I’ve been at this for 3 days now on linker problem. Thank you for the tutorial.
Libary installation for microsoft languages sucks... coming from pythen, one terminal command and it works. Now im trying to learn a more advanced language and i cant even get the installation done... hopefully it will work like in the video!
I cant explain how much grateful I am... I was running after this for long time. Finally u helped me achieve this linked to mu visual studio .. what a relief :D thank u so much
Thank you so much, I've been trying to do this for a while now, and you've been the only person that has helped me to set up SDL2, the right way. Thanks, god bless man! +1 like, and 1+ sub from me.
YES IT WORKS! i've been trying to do this but none of the tutorials that i watched worked. THANK YOU VERY MUCH!!!
wish I could like this more than once, it was super clear and helpful thank you
Don't know if it is the steps i followed in your tutorial (i have followed many others) or the format to Windows 10i did,but ITWORKS PERFECT !!!!!!!!!!THANK YOU
That's great news. :)
@@pikuma i hope you upload some c++/SDL2 tutorials on VS.....
The only one tutorial that REALLY WORKS! THANK YOU SO MUCH!
The most complete tutorial that I've ever seen also!
I spent the whole afternoon chasing linker errors and options to compile because I was using the Linux subsystem shell within Visual Studio, whilst I could've just spent 15 minutes watching this video and I would've been done. I wish I had found this a lot sooner.
Thank you so much, I love how you run into the error before correcting them, it makes it a lot easier to learn what these error mean and how everything works!
Wow! Thank you for the tutorial. I'm trying to import SDL2 since last year but unsuccefully. "Graças a você" I got it finally!
Feito!!! 🙂
I have installed SDL many times, with success. Each time I was under the impression that my way was clumsy and that there is something wrong with my head.
It looks like this is the "right way" in this messed up system. I came to watch this video to find the right way;D. Well, that's a relief. I will definitely try Linux to compare. Great video
I'm not sure there is a "right way", as each project might require something different. This is how I install SDL global in a folder of my OS. Some projects might be betrer to install SDL locally in the project folder with the source code.
I tried to be as si ple as possible for beginners, as many students suffer to understand all the steps. :)
Tip for anyone who may be stuck make sure you are in Active(Debug) under configuration when you enter Project Properties
python: "pip install xy"
C++: short tutorial 15:00 min
Sad that is has to be that complicated with C++ but THANK YOU anyway. It worked :)
Linux: "sudo apt install libsdl2-dev"
MacOS: "brew install sdl2"
It is not C++... it is Windows. :)
@@pikuma I'm starting to understand why programmers don't like using windows :)
Pressed 'Like' 3 times. Thank you so much from Korea
Thank you, finally have SDL2 working!!!
MAN BEST JOB ON CZcams!
Cheers for the tutorial. Was having a bit of troubles getting it working but it's all good now. Liked and subscribed!
John Purcell brought us here... thanx mate, great vid.
Hi there. I am not sure who that is. Is this a C++ class?
@@pikuma yeah man.. free C++ course at Udemy.
Sure as hell saved me a couple hours. Cheers, Sir!
Underrated tutorial, omg, great job
i have an issue :
"the code execution cannot procced because SDL2.dll was not found .
Reinstalling the program may fix this problem"
i reinstalled the thing and it did not work
Hi Pislify. Look at video at 13:10 and see how I fix this .dll issue.
Go to Windows Settings, search for "Edit the system environment variables", click "Environment Variables...", Select "Path", click "Edit" -> "New" -> "Browse", select your sdl/lib/x64 or x86 folder -> click "ok" -> "ok" -> "ok". Restart Visual Studio and that should do the job.
@@pedeiksz i dd domething else
i just got the files and put them in System32
YEEEEEEEAHHHHS!!!! Thank YOU!!!! This is a beautiful tutorial.
Exceptionally helpful.
Thank You for sharing your knowledge.
Sir, I followed u and double-checked. But still I'm getting linker errors!
Am I missing something? Why don't you have this "SDL_main" problem?
"unresolved external symbol sdl_main referenced in function main_getcmdline"
Thank you, i've had errors with linking process. Very helpful!
I find sdl set up easy than sfml, thanks for the tutorial
Thank you Gustavo, this is a very good and detailed video keep up the good work!
do I need to do this whenever I want to make a new project with SDL?
Thanks for the tutorial!
Great tutorial. Thanks so much!
Thank you very much!
hi, i'm starting in programming and I would like to know if does this development library (C ++) also allow me to program in c( A game for example)? or I will need another one?
SDL is actually a C library that some C++ programmers like to use. You can use SDL with both C and C++, and it's a good choice for 2D games.
@@pikuma thanks for your attention man
Thank you sir, you explained everything in good way
i appreciate your effort, i think this video should be added to your lua course, i couldn't use SLD in visual studio code.
I couldn't find SDL.lib in the extracted SDL folder
Oh Actual my Pc Is Compatible for 64 i found problem and also i install wrong version but now i install SDL2-devel-2.24.0-VC.zip Thank You Sir From Several Days I Cann't Solve That But When I See Your Video I Solve THe Problem Again Thank You So Much
I've been having troubles getting this to work with c++; does it simply not work in c++? Do I need to have it made in c?
You can probably solve that by naming your file and using the extension .cpp. I believe Visual Studio uses the extension to identify the language of the project.
(at least the last time I used it was like that).
This was super helpful
sir can you please make a video on how to setup SDL project in Vs Code
hi thanks a lot, i was having a lot of problems with this, i'm from brazil and thank you once again.
thanks for your video.you'r best
I did everything like he said but i still get an error of 1 unresolved externals and the system cannot find the file specified. Why is this happening, i told visual studio everything about where to find the librariries.
Thank you , video very good
Thanks for your tuto.
I have followed others with vscode +mingw without success.
Note: I have to put the x64 libs because the x86 are not accepted (now ?) by VC.
4:25 it gave me two errors; cannot open source file "stdio.h" / Cannot open included file "stdio.h": No such file directory; what should i do?
Remove Visual Studio and install again, and make sure you check a box that says "C++ development".
@@pikuma I did check that box, i’ll try reinstalling! Thank you
THANK YOU SO MUCH FOR THIS VIDEO!!!!
awesome, now it works !! thanks a lot !
Thank you very much you helped me a lot.
Thanks! It works!
Is it possible to use a relative path to the project directory?
I've tried using $(ProjectDir) and though it works for the "Linker" properties, it doesn't for the "VC++ Directories"
Thanks for the tuto, it's a life saver!
*Edit: also, how could we have a dll folder inside the project? I'm planning to include other libraries, and I wouldn't like to have all .dlls dancing in my workspace
Sure. I think $(SolutionDir) should work.
life saviour, thank you soooo much
dude u are a fk god at explaining. Thank you so much, it finally worked out!
thank you!
Thank you!!!
thanks very much it's too helpful
Thanks! helped a lot!
thank u man for this tutorial
Problem is the download for VStudio isn't there any longer
It just moved to Github, but at the bottom of the page (under Assets) you'll still see a zip file for the SDL devel VC.
@@pikuma Thanks went and got that. Installed VS and made it all the way through the video. VS eats a lot of my resources compared to VSCode. Which is what I normally use. I just will use VS to finish going through the LUA course. Since I went most of the way with VSCode when I got to this section it has been a large learning curve using Ubuntu for windows cause I could not figure out how to find the .exe file for gcc and really don't have an understanding of the makefile yet. I've just been finding out how to get the same results as you get in the end. I had to add the 64 folders on this one because I got errors using x(86). Thanks for all your help.
@@pikuma i cant find the correct file.. all i can find is a "SDL2-2.26.0-win32-x64.zip" but this doesnt seem to be the right one since there is no folder named "include" or "lib" in there
Hey! But I know you! I really liked your course about ASM under Atari 2600. Is there something that you don't know? Thank you for your explanation. I wish you the best sir ++
Brilliant thank you very much.
I have tried everything but it just not work!! Everything is correct, but it just NOT work. I am almost getting out of sdl.
Nice! Very much appreciated.
thank you so much for this
SDL2.lib not found why
TY Nice work! ♥
I have two error remaining : LNK2019 the external symbol not solved _imp_fprintf in the _ShowError function but this tutorial is good
Why it said that cannot open SDL2.lib 😢
Lmao, I was struggling with this for hours, turns out I just set up the main function wrong XD
thanks
to anyone who gets errors that say something about _main, just ignore it and go to the next thing, which is copying the dll file
Thank bro
This didn't work, just like every other tutorial. I don't know what I did wrong. edit: I ended up needing 2 extra steps to get it to work. This did help, though
very nice and clear!
Thank you ❤
Could you do a tutorial for this on VSCode? This was really helpful, thanks!!
Thank you so much, damm linker, I totaly forgot I need to care for it as well :)
BTW: How do you setup linker with Cmake? (If instead of creating new project, you create new cmake project (visual studio has a template for that)
Because I was trying to use find_package(SDL2 REQUIRED)
But it didnt find a thing, then after manualy specifying include and library dir the linker complained and not sure how to tell the linker where to look with cmake?
Thank you...
Nice tutorial! But what font are you using?
Hermit
THAAAANKS ALOT SIR
how i do for C++ ???
thanks a lot
Obrigado!
Legend
if yours not including after video check next to Debug there is x64 x86 and switch it.
you are awesome
DEAR pikuma,
Let me tell you man, I've been looking around for videos, tutorials, and I've tried dozens of times to figure this very simple thing out, I got angry, I got depressed, and by the time that I watched this video I was starting to think I would never figure out how to download this. Then you showed me that this file SDL2-devel-2.28.5-mingw.zip is for UNIX and this file SDL2-devel-2.28.5-VC.zip is for windows.
sincerely vazzible.
🤬😭🤬😭🤬
MinGW is not for UNIX, but for the MinGW compiler on Windows. The VC one is for the Visual C++ compiler. :)
Roses are red,
Violets are blue,
I had no idea what the fuck I was doing before
But now I do
Caraca tem umineko na pagina inicial do sdl
Timing perfeito.
THAAAAAAAAAAAAAAAK YOU
This is waaay to hard. After you install Visual Studio install vcpkg which will handle all your dependencies with a single command `vcpgk install sdl2` done!
big thanks . direct and non too much bla bla
You sound so Italian :D
Funny. I'm not Italian.