CMake Tutorial EP 1 | Understanding The Basics

  Переглядів 414,353

Code, Tech, and Tutorials

Code, Tech, and Tutorials

3 роки тому

full CMake playlist: • CMake Tutorial EP 1 | ...
Find me, support me:
Stream: / bytepro17124
Patreon: / codetechtuts
One time donations: www.paypal.com/paypalme/matte...
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.

КОМЕНТАРІ: 230
@RuoshiWen
@RuoshiWen 7 місяців тому
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.
@opexkoru5157
@opexkoru5157 3 роки тому
Best cmake tutorial I've seen by far. Looking forward to watching the rest of the videos. Thanks!
@ctjanney
@ctjanney 2 роки тому
Fantastic! Thank you. I've struggled with make files, hacking open source setups to compile without direction. Thank you for your clear tutorials.
@phillno1751
@phillno1751 2 роки тому
Subscribed. Clear, concise, exactly what I need to get started. I look forward to the next video. Thanks!
@bestganesh
@bestganesh 3 роки тому
This is a very nice introduction to Cmake. Really got what I need. Thanks :)
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
Happy it helped
@B15HOP
@B15HOP 2 роки тому
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.
@abelashenafi6291
@abelashenafi6291 2 місяці тому
Thanks man. The shortest yet most efficient and vivid explanation about Cmake and MakeFile. Thanks a lot man. really. Kudos
@motsyrhc7436
@motsyrhc7436 Рік тому
thank you kind sir. this is the most concise video on CMake I've seen so far.
@tiendadelchavo4132
@tiendadelchavo4132 2 роки тому
These CMake tutorials are simply the best! Amazing explanation and tips! Thank you so much!
@CodeTechandTutorials
@CodeTechandTutorials 2 роки тому
Glad you like them!
@mr.bun-bunny8830
@mr.bun-bunny8830 3 роки тому
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.
@mr.bun-bunny8830
@mr.bun-bunny8830 3 роки тому
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?
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
@@mr.bun-bunny8830 hard to say without many specifics. Can you post the source code?
@carlosdalomba
@carlosdalomba 3 роки тому
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
@user-fl5zl6ml5b
@user-fl5zl6ml5b 2 роки тому
Sorry to interrupt,i am a newer to learn cmake ,is there any tutorial to recommend? Thanks .
@openroomxyz
@openroomxyz Рік тому
@@user-fl5zl6ml5b same :)
@thibautmodrzyk6215
@thibautmodrzyk6215 3 роки тому
Thanks Our sort of long haired Lord And Savior, I'm struggling with the documentation. Having a human explaining really helps
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
You can do it!
@AlexAlex-em6ct
@AlexAlex-em6ct 3 роки тому
@@milanky you put an link to a payed link but here is free basics, not payed
@Augnos
@Augnos 11 місяців тому
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
@cppdog3549
@cppdog3549 Рік тому
I think I just found my favorite UKposts 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.
@saeidsaati4021
@saeidsaati4021 2 роки тому
This video was great even for me with some experience with cmake, thank you!
@kavorka8855
@kavorka8855 3 місяці тому
Simple, clear and fun way of teaching any subject! Now, next ... part 2
@sammyiboi
@sammyiboi 3 роки тому
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!
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
Awesome, thank you!
@jiangpengli86
@jiangpengli86 2 дні тому
Thank you so much for this great tutorial.
@ORagnar
@ORagnar Рік тому
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.
@codinger4182
@codinger4182 3 роки тому
This guy looks like *_Gilfoyle_* from *Silicon Valley* . Jokes apart, he explained great!
@hosseinbeiranvand7169
@hosseinbeiranvand7169 3 роки тому
exactly man!
@makermatrix9815
@makermatrix9815 3 роки тому
Sounds like him even more than he looks like him, LOL
@hridaykeswani6459
@hridaykeswani6459 2 роки тому
We will talk about our lord and savior ... what do you think am talking about SATAN! xD
@poganka45
@poganka45 2 роки тому
he reminds me of Lex Luthor's father
@snowman4933
@snowman4933 2 роки тому
true af
@sunableflames9365
@sunableflames9365 3 роки тому
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.
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
Glad it was helpful!
@Gloryisfood
@Gloryisfood 2 роки тому
Finished watching the first video and I know I will learn something from the series. Thank you, Sir!
@sirtobi6006
@sirtobi6006 3 роки тому
I came to learn about CMake and directly left an abonoment.
@qc2217
@qc2217 3 роки тому
This is a nice tutorial! Thank you for making it!
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
Glad it was helpful!
@it_raman_suryawanshi1399
@it_raman_suryawanshi1399 Рік тому
Thank you 😊 for making it easy to understand.
@lifeisbeautifu1
@lifeisbeautifu1 3 роки тому
Thanks so much for this great tutorial ! :)
@inlovewithtajweed1
@inlovewithtajweed1 3 роки тому
Thank you for sharing. I enjoyed the content. Minor: zues==>Zeus.
@journeyman6856
@journeyman6856 3 роки тому
The best CMake tutorials on UKposts!
@milanky
@milanky 3 роки тому
Checkout the Beginner/Intro CMake Course at www.udemy.com/course/master_cmake/?referralCode=D08DF343ABAE2835C3B7
@JaCkuevara
@JaCkuevara 2 роки тому
Such a funny guy - and a nice intro - keep it going man! Best Regards
@bieldozap
@bieldozap 3 роки тому
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.
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
Nice! I'm studying hard to make this next cmake tutorial and hopefully take it to a whole new level
@degancontent1979
@degancontent1979 Рік тому
Good one, looking forward for part 2
@rishabhjain911
@rishabhjain911 2 роки тому
Great job bro You just made it a piece of cake :)
@xayanmusic3627
@xayanmusic3627 25 днів тому
very good tutorial thank you for being so clear
@anguruso
@anguruso 8 місяців тому
Thank you! I had one hell of a time understanding CMake before watching your videos.
@saulmorales372
@saulmorales372 3 роки тому
I appreciate your content and you hella funny!! Thank You Man!!!!!!!
@jasonwell5299
@jasonwell5299 3 роки тому
Gorgeous video bro.
@blankeyezero
@blankeyezero 3 місяці тому
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...
@moshe22cohen
@moshe22cohen 2 роки тому
you are indeed a savior. had hard time grasping it and your tutorial made it clear, managed to create cmake and compiling thanks!
@aogposton
@aogposton 5 місяців тому
Came to this after doing my own way.... Thank you for the tutorial.
@uwemisrael5836
@uwemisrael5836 10 місяців тому
I'm finiding this series very helpfull. Started learning C++. Thanks
@huseyink97
@huseyink97 2 роки тому
thanks for the best introduction!
@CodeTechandTutorials
@CodeTechandTutorials 2 роки тому
Glad you liked it!
@WhiteBerry
@WhiteBerry 2 роки тому
Hi, could you tell me the settings you use for the file path to appear above the first line of the editor? Great video btw
@rsmusic-fh6nl
@rsmusic-fh6nl 2 місяці тому
only legible cmake explanation i've found, tysm
@mupmuptv
@mupmuptv 3 роки тому
Thank you. You are the best
@dimitrigraur8345
@dimitrigraur8345 Рік тому
Great material, subscribed!
@user-kt8nc4xd1u
@user-kt8nc4xd1u Рік тому
Thanks for creating this video
@mxlodyk
@mxlodyk 10 місяців тому
Thank you for this video!
@hertzvador2220
@hertzvador2220 Рік тому
This was very useful. Thank you.
@eyalpery8470
@eyalpery8470 3 роки тому
Excellent! Thanks!
@mittelwelle_531_khz
@mittelwelle_531_khz 2 роки тому
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.)
@mittelwelle_531_khz
@mittelwelle_531_khz Рік тому
@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*
@avinashmehtadelhi
@avinashmehtadelhi Рік тому
Great video, many thanks. Would be great if u can plan a playlist on configure make and make install. 👍
@CodeTechandTutorials
@CodeTechandTutorials Рік тому
Thanks for the idea!
@thefrostian
@thefrostian 3 роки тому
Fantastic. Thanks so much.
@mikey.audio.
@mikey.audio. Рік тому
excellent content, thanks!
@john3932
@john3932 3 роки тому
Fantastic tutorial Cheers m8
@moeroe7663
@moeroe7663 3 роки тому
As a C-noob I can say: this is really helpfull!
@davidnguyen9023
@davidnguyen9023 Рік тому
Simply great.
@DevCurioso
@DevCurioso 3 роки тому
Great intro to Cmake, congrats
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
I'm glad you like it
@DanRed-bc3ug
@DanRed-bc3ug Рік тому
Thank you so much! I also liked the terminal, what is it?
@legitjimmyjaylight8409
@legitjimmyjaylight8409 3 роки тому
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.
@russellshahenian2357
@russellshahenian2357 Рік тому
I love it: 'so just please don't' .... i know your're real at that point. Ty great 'simple' effective.
@77and619
@77and619 2 роки тому
cool guy and gets to the point ! not always like this! tyvm
@finrei
@finrei 2 роки тому
Actually awesome video series
@jimbalta
@jimbalta Рік тому
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.
@pdxfunk
@pdxfunk 8 місяців тому
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.
@akashgillella
@akashgillella Рік тому
Very nice tutorial. Really funny 2! Thanks
@Account-fi1cu
@Account-fi1cu 2 роки тому
Hi thank you for this great tutorial, If I have a solution on windows, is it possible to create a makefile using cmake ?
@juan-jh1qg
@juan-jh1qg 3 роки тому
In windows, run instead the following CMake command: > cmake -S ../../ -B . -G "MinGW Makefiles"
@thedeathchimera
@thedeathchimera 3 роки тому
Thanks man, it kept spitting out visual studio files and I wasn't sure why
@abdullahsulaymaan9085
@abdullahsulaymaan9085 Рік тому
thanks bro, you saved me time
@MyMjrox
@MyMjrox 14 днів тому
Still the best cmake tutorial
@charles9571
@charles9571 2 роки тому
Thanks, and nice tutorial. - A Christian
@markharrington5826
@markharrington5826 3 роки тому
Superb thank you
@AdityaDendukuri
@AdityaDendukuri 3 роки тому
Great video! Could you explain more why do you build in ./out/build instead of ./build?
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
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
@xugefu
@xugefu 2 роки тому
Thanks!
@deryaadil4344
@deryaadil4344 Рік тому
How can I change the compiler architecture options used by cmake by adding some instructions to the cmake call? Thank you so much!
@syzygy8060
@syzygy8060 2 роки тому
Hey man! Thanks for your well-explained video. You got me up and running. Cheers.
@CodeTechandTutorials
@CodeTechandTutorials 2 роки тому
Great to hear thanks for the comment
@HY-nt8nk
@HY-nt8nk 3 роки тому
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?
@Karlthegreat100
@Karlthegreat100 2 роки тому
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..
@8Trails50
@8Trails50 2 роки тому
I wish all tutorials were like this
@gopinath6946
@gopinath6946 Рік тому
You said No standard in coding.... Thalaiva You are great...
@openroomxyz
@openroomxyz Рік тому
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?
@double-lung7364
@double-lung7364 2 роки тому
Thanks for the tutorial! Which distro are you using in this video?
@CodeTechandTutorials
@CodeTechandTutorials 2 роки тому
This was mx Linux
@davenarisotto3674
@davenarisotto3674 2 роки тому
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?
@ItsSunnyMonster
@ItsSunnyMonster 2 роки тому
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.
@ascyrax8507
@ascyrax8507 Рік тому
thank u.
@lyndazaid9560
@lyndazaid9560 Рік тому
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
@katjordansoccer
@katjordansoccer 8 місяців тому
Zeus, not Zues, but otherwise really well done. Thanks!
@meenamurthy1503
@meenamurthy1503 Рік тому
You could say cmake creates a make file, easier ro to associate c with create
@maryguty1705
@maryguty1705 3 роки тому
could you do a video on adding other's complied SDK and API libs in Cmakelist for coding?
@CodeTechandTutorials
@CodeTechandTutorials 3 роки тому
I could do that. Any certain api you want to see as an example?
@enveraaa8414
@enveraaa8414 2 роки тому
Thanks
@elektronicznyjuzek9910
@elektronicznyjuzek9910 Рік тому
epic!
@tiendadelchavo4132
@tiendadelchavo4132 2 роки тому
Valeu!
@vinniciusrosa8284
@vinniciusrosa8284 4 місяці тому
How can I change the compiler to MingW? I tried a lot of things and I did not found the answer through the internet. :(
@timsessions1845
@timsessions1845 Рік тому
Praise be to cmake
@oneday374
@oneday374 Рік тому
we want you can do a video en the windows version.
@Alexey_Pe
@Alexey_Pe 2 роки тому
Балдёж)
@Reuged666
@Reuged666 Рік тому
can i use the same tutorial for code::blocks?
@Evilanious
@Evilanious 4 місяці тому
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.
@JasonKT13
@JasonKT13 Рік тому
What OS are you using here?
@user-cq3kj1cn8e
@user-cq3kj1cn8e 4 місяці тому
can you do cmake for yocto or if you arleady did give me link for that
@kamiltrzcinski
@kamiltrzcinski Рік тому
gives off strong 2011 vibes
@milkman5894
@milkman5894 Рік тому
fr
@justdoingodswork
@justdoingodswork 9 місяців тому
I tried to make a makefile, but terminal is not reconizing command make?
@codutyapexpredator1548
@codutyapexpredator1548 Місяць тому
I think I stumbled into the real life Gilfoy. 😂😂😂
@pygeekrfoo820
@pygeekrfoo820 10 місяців тому
thank you gilfoyle
CMake Tutorial EP 2 | Libraries | Installing | Pairing with Executables | RE-DONE!
36:48
Code, Tech, and Tutorials
Переглядів 67 тис.
Emulate Windows Server 2003 on Android phones with Limbo PC Emulator
10:52
Nguyen Bao An Bui Original
Переглядів 4
Vasiliy Lomachenko vs George Kambosos | INTERNATIONAL LIVE STREAM
3:10:05
Top Rank Boxing
Переглядів 990 тис.
31 nooby C++ habits you need to ditch
16:18
mCoding
Переглядів 705 тис.
why do header files even exist?
10:53
Low Level Learning
Переглядів 335 тис.
CMake основы
12:46
S0ER
Переглядів 46 тис.
CMake - the essential package
27:54
Code for yourself
Переглядів 7 тис.
Best OS for programming? Mac vs Windows vs Linux debate settled
8:41
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Переглядів 865 тис.
Let's Create a Compiler (Pt.1)
1:11:03
Pixeled
Переглядів 442 тис.
Последняя надежда! Лезем в мотор BMW...
2:5:41
ИЛЬДАР АВТО-ПОДБОР
Переглядів 3,6 млн
💖Maryana💖
0:17
TikTok Compilation
Переглядів 1,7 млн
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
0:37
Fabiosa Best Lifehacks
Переглядів 32 млн
顔面水槽がブサイク過ぎるwwwww
0:58
はじめしゃちょー(hajime)
Переглядів 66 млн
Паска #подарункиукраїна
0:30
Хома Джан
Переглядів 428 тис.