CMake Tutorial EP 1 | Understanding The Basics
Vložit
- čas přidán 29. 08. 2024
- full CMake playlist: • CMake Tutorial EP 1 | ...
Find me, support me:
Stream: / bytepro17124
Patreon: / codetechtuts
One time donations: www.paypal.com...
Shop via my Amazon Affiliates Link: amzn.to/3bVQ9X0
Business inquiries: codetechtuts@gmail.com
Thanks for coming to the channel to check out a video on Code, Tech, and Tutorials.
Thanks Our sort of long haired Lord And Savior, I'm struggling with the documentation. Having a human explaining really helps
You can do it!
@@milanky you put an link to a payed link but here is free basics, not payed
Great tutorial. I do enjoy that you were giving tutorials in a very relaxing tone. I got really stressed when I learn c++ related contents.
This was easily the best CMake tutorial/resource I found all week so far.
I've been struggling to understand all the terms and how it (CMake) fits into everything.
Especially coming from a Unity/C# game dev background, and not really.. understanding much about "builds", "platforms", and "compilers" besides extreme basics/vagueness.
Thank you so much, this really makes it feel a lot more doable.
P.S. - I'm so glad you use VS Code too! Just started with it today as well haha
Sorry to interrupt,i am a newer to learn cmake ,is there any tutorial to recommend? Thanks .
@@user-fl5zl6ml5b same :)
Thanks for explaining makefiles in literally the first 5 minutes. I don’t know how every other explanation skips this part and what cmake is even needed for
This is a very nice introduction to Cmake. Really got what I need. Thanks :)
Happy it helped
The best CMake tutorials on CZcams!
Checkout the Beginner/Intro CMake Course at www.udemy.com/course/master_cmake/?referralCode=D08DF343ABAE2835C3B7
This guy looks like *_Gilfoyle_* from *Silicon Valley* .
Jokes apart, he explained great!
exactly man!
Sounds like him even more than he looks like him, LOL
We will talk about our lord and savior ... what do you think am talking about SATAN! xD
he reminds me of Lex Luthor's father
true af
I think I just found my favorite CZcams channel. I really love the joke in the beginning about our Lord and Savior.....CMake, and I really enjoyed watching your tutorial and learning about how CMake works. I love your style of teaching and it's so intuitive. Thank you for making this video.
I came to learn about CMake and directly left an abonoment.
I subscribed because your blender tutorial helped me with video editing and now I'm here because of your coding tutorials and I'm Loving It.
wanted to ask I'm having this g++ error in visual studio code whenever I try to code in C or C++ well it happens when I try to run it any idea how can I solve it?
@@mr.bun-bunny8830 hard to say without many specifics. Can you post the source code?
thank you so much, after 3 years, your video still help alot of ones and companies. it's great.
seriously, i was starting to watch the OGRE tutorial and when I saw Cmake, it came to my mind "oh boy it would be nice a Cmake tutorial". And here I am. Thank you so much.
Nice! I'm studying hard to make this next cmake tutorial and hopefully take it to a whole new level
Thank you for sharing. I enjoyed the content. Minor: zues==>Zeus.
Thanks man. The shortest yet most efficient and vivid explanation about Cmake and MakeFile. Thanks a lot man. really. Kudos
Simple, clear and fun way of teaching any subject! Now, next ... part 2
I'm getting a Bob Ross vibe from your style. I expect to see some happy little clouds.
7/14/22, 5:57 p.m.
In windows, run instead the following CMake command:
> cmake -S ../../ -B . -G "MinGW Makefiles"
Thanks man, it kept spitting out visual studio files and I wasn't sure why
thanks bro, you saved me time
These CMake tutorials are simply the best! Amazing explanation and tips! Thank you so much!
Glad you like them!
Thank you! I had one hell of a time understanding CMake before watching your videos.
thank you.. i was a simple guy coming from interpreted languages... this compiler problem was making things difficult for me as to finding out which c compiler I should use and such...
Having watched 5 minutes only I feel already inclined to comment:
Being a software developer myself for more than 40 years (so "technically" in retirement now but nevertheless still active) I like your intro: there's no single best practice fitting each every project.
I also like your dry humor - it doesn't escape me. (I think you know what I mean.)
@Harshil Pandey here's a story of those early days: in some versions of _make_ it was hard-coded that when you used it for the target "love", i.e. you ran it as:
*make love*
It responded:
*not war*
Still the best cmake tutorial
Came to this after doing my own way.... Thank you for the tutorial.
Thanks for this! There's only a few CMake tutorials out there, so this one is definitely welcome :) Just finished the first video. CTT looks awfully close to C++, woah!
Awesome, thank you!
Fantastic! Thank you. I've struggled with make files, hacking open source setups to compile without direction. Thank you for your clear tutorials.
As a C-noob I can say: this is really helpfull!
I love it: 'so just please don't' .... i know your're real at that point. Ty great 'simple' effective.
only legible cmake explanation i've found, tysm
Best cmake tutorial I've seen by far. Looking forward to watching the rest of the videos. Thanks!
this is a late comment, but I really appreciate the series -- using it to familiarize before university class using same build process
thanks for the best introduction!
Glad you liked it!
Thanks, and nice tutorial.
- A Christian
Subscribed. Clear, concise, exactly what I need to get started. I look forward to the next video. Thanks!
Thanks a million for this introductory lesson on cmake.Been looking for a clear tutorial and you sir make it crystal clear!! Please keep making the videos.
Glad it was helpful!
Truly our lord and savior because CMake documentation is just not beginner friendly or should I say TRASH OH MY GODDD MY FRUSTRATION
I'm finiding this series very helpfull. Started learning C++. Thanks
Thank you so much for this great tutorial.
thank you, sir!
You said No standard in coding.... Thalaiva You are great...
gives off strong 2011 vibes
fr
Thanks a lot for this tutorial. I went to look up how to use cmake and the tutorial in the official cmake documentation was... not great in my opinion. This helped out a ton.
Such a funny guy - and a nice intro - keep it going man! Best Regards
very good tutorial thank you for being so clear
Thank you 😊 for making it easy to understand.
It appears I don't have the `-S` option available on my CMake, and it wants to use my `-B` option as both the build and the source directory. It seems this may be because my cmake is out of date, and this is a newer option. My cmake version is 3.10.2.
Edit:
I've managed to get it updated now to cmake version 3.20.1, and now I can finally use the `-S` option & follow along with this tutorial.
In cmake, where did we mention the kind of compiler to use? At the beginning of the video, in the makefile, it was explicitly mentioned to use 'g++' compiler. But, I did not get how cmake picked the compiler? Can you please answer me this question?
I'm not sure if there are other ways but I usually set environment variables for that, specifically, CC and CXX. So
CC=/path/to/clang CXX=/path/to/clang++ cmake..
Good one, looking forward for part 2
Thanks for creating this video
I appreciate your content and you hella funny!! Thank You Man!!!!!!!
Praise be to cmake
Excellent! Thanks!
This video was great even for me with some experience with cmake, thank you!
Simply great.
This is a nice tutorial! Thank you for making it!
Glad it was helpful!
Great intro to Cmake, congrats
I'm glad you like it
Great job bro
You just made it a piece of cake
:)
Thanks so much for making this. After struggling setting up my IDE for making embedded code for RP2040 processor, I kept being like "WTF actually IS CMAKE??". Now I know.
I cannot believe this contains such basic errors that will mislead beginning programmers. It's spelled 'Zeus'! Get it together!
Seriously though, thanks. This was very helpful.
Thank you for this video!
Thanks so much for this great tutorial ! :)
you are indeed a savior.
had hard time grasping it and your tutorial made it clear, managed to create cmake and compiling thanks!
the ending got me dead 😆
Great material, subscribed!
excellent content, thanks!
This was very useful. Thank you.
Actually awesome video series
You could say cmake creates a make file, easier ro to associate c with create
Thanks!
Gorgeous video bro.
I wish all tutorials were like this
Thank you. You are the best
Very nice tutorial. Really funny 2! Thanks
cool guy and gets to the point ! not always like this! tyvm
Zeus, not Zues, but otherwise really well done. Thanks!
Great video, many thanks. Would be great if u can plan a playlist on configure make and make install. 👍
Thanks for the idea!
So glad you put this in here. The other good tutorial is "cmake good" by vector-of-bool. The cmake library is a little bit more confusing at first than standard makefiles, but they are worth it because makefiles get bloated and tedious very quickly. As you know, the cmake tools bypass this by creating the project Makefiles for you.
Fantastic. Thanks so much.
[ERROR RESOLVED] IF YOU HAVE CMAKE 3.10.2
then run:
cmake -Hsourcepath -Bbuildpath
yes do it without a space between flag and the argument
thank u.
thank you gilfoyle
for anyone that is unable to run the 'make' command, run 'cmake --build (build directory)' that's two dashes - -
thank you kind sir. this is the most concise video on CMake I've seen so far.
You missed a big trick, should have turned that light above you on to really sell the OLAS effect
Superb thank you
Thank you so much!
I also liked the terminal, what is it?
Stomp the comp!
Thanks for the gospel on our lord and savior.
It was really helpful.
What cmake does that Visual Studio under windows does not? What is the advantage over using Visual Studio?
Correct me if I am wrong but I got the impression that to learn cmake is best not to use IDE and do it under linux, to create your build system? I heard something called premake not sure how are they different?
Fantastic tutorial
Cheers m8
Great video! Could you explain more why do you build in ./out/build instead of ./build?
At the time, it was because if you let Visual Studio configure your cmake project, it uses out/build Nowadays I went back to just ./build
There's one thing I can't seem to understand: does cmake substitute normal compilation and execution with g++?
For example: usually whenever i start programming a new project, i write the code, then i use g++ to compile the whole project and then i run the outputted executable.
Does cmake substitute this process?
CMake only generates project files for each compiler/platform. If you use Windows and Visual Studio, you can use CMake to generate Visual Studio solution files. If you use Mac and XCode you can use CMake to generate XCode projects, etc etc. This is very convenient because you just need to write the CMake lists files and have CMake generate project files on all platforms so you can compile the generated projects. Hope that answers your question.
"rmdir" is a safer way to remove a directory. If you use "rm -fr" and accidentally type the wrong thing... Especially something generic like "build". Perhaps you cd'd to another directory and forgot.
Oh great! Gilfoyle got a haircut.
I tried to make a makefile, but terminal is not reconizing command make?
How can I change the compiler to MingW? I tried a lot of things and I did not found the answer through the internet. :(
Thanks
I think I stumbled into the real life Gilfoy. 😂😂😂
thank you so much,it was helpful.
please sir i have a question ,i tried to build a project with cmake but in it's configuration it throws an error:could not load cache.I tried all the solution but without getting any results.Could you please help me.
thnak you again
we want you can do a video en the windows version.
Hi thank you for this great tutorial,
If I have a solution on windows, is it possible to create a makefile using cmake ?