CMake Tutorial EP 10 | Running CMake on Windows (like linux) (Over-explained)

  Рет қаралды 35,824

Code, Tech, and Tutorials

Code, Tech, and Tutorials

Күн бұрын

In this video, I'll be going over some of the basics someone should really know if you are coding with C++ in the Windows environment, and even more so if you would like to use CMake and the terminal for your projects instead of relying on the Visual Studio Community IDE.
Sections:
0:00 - 0. intro
0:25 - 1. ENV VARS
4:23 - 2. COMPILING OPTIONS
5:42 - 3. CMAKE+VSCODE+MSBUILD (EXAMPLE)
8:55 - 4. where is msbuild.exe?
11:13 - 5. outro
References:
▶ cmake.org/cmake/help/latest/m...
▶ docs.microsoft.com/en-us/cpp/...
--This CMake playlist --
▶ • CMake Tutorial EP 1 | ...
-- CTT Links --
▶ / codetechtuts
▶ / discord
▶ github.com/codetechtuts
▶ codetechtuts@gmail.com | Business only |
-- Other CTT Playlists You Might Like --
▶ Beginner Cpp: • Beginner C++ Episode 0...
▶ Blender Video Editing: • How To Edit Video with...
▶ Matrix Math: • Matrix Math - Basic Co...
▶ OpenAL: • OPENAL TUTORIAL
▶ OpenGL: • OpenGL Part 1 - NEW PR...
Thanks for coming to the channel to check out a video on Code, Tech, and Tutorials. _support:
☕ www.patreon.com/codetechtuts?...
Patrons help this channel go round and keep creating. If you don't like patreon but still would like to support regularly, you can do a similar subscription via the KZfaq Join, or through Github's sponsor button.
🕮github.com/codetechandtutorials
This is were I most the majority of the code seen on the channel.
✍ / discord
We have a Discord! We welcome all various code and tech chatter.
☯ / bytepro17124
I stream code and/or gaming every Thursday! I also randomly stream a time or two throughout most weeks.

Пікірлер: 42
@TimmyWhiskers
@TimmyWhiskers 3 жыл бұрын
I was about to give up on my dream of being a programmer before I watched your cmake series. I've been at it about a year and really enjoy editing code and adding my own little bits, but I've been completely overwhelmed when it comes to developing a sensible workflow to do projects from scratch. I was genuinely ready to tell my boss to find someone else to do it but now I have compiled and solved nearly every issue I've had this year. Words cannot describe my gratitude to you for making this series, I love the humour too! All the best and thanks again.
@CodeTechandTutorials
@CodeTechandTutorials 3 жыл бұрын
Thanks for the comment and taking the time to write this up. It was incredible heartwarming to read and makes me feel like it is worth continuing this kind of work. Best of luck to you and good job keeping it all together and excelling!
@MrDemultiplexer
@MrDemultiplexer 3 жыл бұрын
Watched all 10 videos in one breath. Well-organized, well-explained, entertaining. Thanks Matt for what you've done! Cheers
@johannes5432
@johannes5432 3 жыл бұрын
By far the best cmake tutorial I ever watched!
@MoeQ_
@MoeQ_ 2 жыл бұрын
watched all the videos , what can I say , the best cmake tutorial on KZfaq , cheers
@l.r4121
@l.r4121 3 жыл бұрын
'Our Lord And Saviour' video style! Thanks bro, helps me a lot!
@sophoklesktistakis3614
@sophoklesktistakis3614 3 жыл бұрын
Great video - thank you for explaining it well!
@mercedes9474
@mercedes9474 Жыл бұрын
Thank you so much! It really helped me with my project. Very well explained!
@deepikagoyal07
@deepikagoyal07 7 ай бұрын
Very Useful!! Thanks a lot!!
@robertmcdowell6084
@robertmcdowell6084 9 ай бұрын
I've been a programmer for about two years now, but I am still awful at setting up programs, I just can't wrap my head around the command line, or compiling, but everytime I have too install something I learn a little more. you helped a lot thanks!
@ahmadalghooneh2105
@ahmadalghooneh2105 3 жыл бұрын
Thank you for your great videos! from middle-east
@nguyenhuychuong-hust2965
@nguyenhuychuong-hust2965 2 жыл бұрын
Thank you very much. This video helps me so much.
@ronaldsakhile9892
@ronaldsakhile9892 2 жыл бұрын
Thanks for the video! helped a lot.
@kenetramirez6358
@kenetramirez6358 2 жыл бұрын
Thanks! This really helped me a lot
@CodeTechandTutorials
@CodeTechandTutorials Жыл бұрын
Glad it helped!
@ujjwalarora4159
@ujjwalarora4159 3 жыл бұрын
Thanks a bunch!
@IntheFishtank
@IntheFishtank Жыл бұрын
Normally visual studio is shipped with a terminal shortcut starting cmd in the VS common folder (called "Developer Command Prompt for VS" / "Developer PowerShell for VS"). Already including pathes to msbuild and other dev tools... just in case you want to avoid struggling with long pathes :)
@dmitrysamoilov5989
@dmitrysamoilov5989 2 жыл бұрын
Oh boy, I hope this video learn me something good
@JaCkuevara
@JaCkuevara 2 жыл бұрын
Is this Gilfoyle? Also: nice videos, love them!
@ajayjadhav900
@ajayjadhav900 2 жыл бұрын
Currently I am working on C C++ project and doing compilation with gmake. Compilation is very smooth on Linux but on windows it is very slow as I have done same setups on both OS. How can we increase performance? One way is by flags and adding parallelism
@TythosEternal
@TythosEternal Жыл бұрын
strongly recommended: 1) one-time setup, run the vcvarsall batch (msvc command-line build tools are free w/o ide) to enter the environment and export/copy all env vars (path, include, lib, lib64); 2) save those into you user env vars; 3) msbuild, cl, and link are now always exposed and can always access the appropriate system headers and libraries
@memeed3981
@memeed3981 Жыл бұрын
im going to cry, why does it have to be this hard.
@heavymetalmixer91
@heavymetalmixer91 7 ай бұрын
"Oh, I typed text . . . " And I made the same mistake seconds before watching that part LOL.
@EyeNeo
@EyeNeo Жыл бұрын
Outro song name ?
@mobe6524
@mobe6524 Жыл бұрын
Might be a dumb question but ... Is there some standard path we should be aware, cause i'm not really familiar with env variable and yes, it would be great if i know what's going behind, what value I should set to the path for any tool i install, such as git or cmake or anything else. Thanks and great content
@live_destin-3408
@live_destin-3408 8 ай бұрын
most people just put the folders directly in c:
@nishanth6403
@nishanth6403 2 жыл бұрын
Do anyone get this error while running the build command?? Im using Vscode and tried with the 2019 generator as well but it still shows the same error. cmake -S . -B build/ -G "Visual Studio 17 2022" CMake Error at CMakeLists.txt:3 (project): Generator Visual Studio 17 2022 could not find any instance of Visual Studio. I tried all methods I could lay on an eye on and still couldn't progress , wasting days of trying to get anywhere in learning cmake. Can anyone PLEASE HELP me in getting this resolved
@IntheFishtank
@IntheFishtank Жыл бұрын
You must have Visual Studio IDE installed.
@abdjahdoiahdoai
@abdjahdoiahdoai Жыл бұрын
boss, can you tried installing GTSAM on your computer, i am helpless. I would like to see how you debug an installation process 😮
@Deksudo
@Deksudo 2 жыл бұрын
Yo, Gilfoyle. Thank you for the video! The UTF-8 error is probably caused by the echo command you used to create the Cmakelist file. I believe the windows terminal encodes files using ANSI or something equally ancient.
@CodeTechandTutorials
@CodeTechandTutorials 2 жыл бұрын
That explains a lot
@lihengtian1992
@lihengtian1992 2 жыл бұрын
my first try following the video at 0:55 gives: ''ls' is not recognized as an internal or external command, operable program or batch file' sorry to be negative.....
@CodeTechandTutorials
@CodeTechandTutorials 2 жыл бұрын
Its 'dir' if you're using the normal command prompt
@lihengtian1992
@lihengtian1992 2 жыл бұрын
@@CodeTechandTutorials thanks, it works now....
@CodeTechandTutorials
@CodeTechandTutorials 2 жыл бұрын
No prob. The new Windows terminal aliases it to pretend to be linux
@leonidalex282
@leonidalex282 Жыл бұрын
Thanks for music. It helps.
@sabianhibbs1174
@sabianhibbs1174 2 жыл бұрын
/Gilfoyle?
@menchi3x3
@menchi3x3 3 жыл бұрын
Did you notice a large difference in time for executing between Windows and Linux ? Personally I've to wait 7-8 secs on Windows when it is instant for you on linux. I'm using VS 2019 compiler, and it's the same with MinGW.
@menchi3x3
@menchi3x3 3 жыл бұрын
Nevermind, the problem was with my antivirus, whitelisting the executable solved the problem. btw great tutorial, it helps me a lot.
@luantaminh8103
@luantaminh8103 3 жыл бұрын
You are so handsome. Thank you for your tutorial
@CodeTechandTutorials
@CodeTechandTutorials 3 жыл бұрын
So nice of you
@arturmagomedov5672
@arturmagomedov5672 Жыл бұрын
when i type "path" in start menu windows shows me "Path Of Exile" game . Hahahaha )))
CMake Tutorial EP 11 | VSCODE | VCPKG Libraries | Project Setup Basics
6:44
Code, Tech, and Tutorials
Рет қаралды 28 М.
CMake - the essential package
27:54
Code for yourself
Рет қаралды 9 М.
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 5 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 79 МЛН
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 97 МЛН
How-To Use C++ Libraries (without relying on a package manager)
30:22
Code, Tech, and Tutorials
Рет қаралды 52 М.
Don't use VSCode
35:31
PyCon South Africa
Рет қаралды 212 М.
Modern CMake for C++
11:38
Smok Code
Рет қаралды 39 М.
QEMU/KVM for absolute beginners
17:50
Veronica Explains
Рет қаралды 511 М.
Deep CMake for Library Authors - Craig Scott - CppCon 2019
1:01:35
ты C++ РАЗРАБОТЧИК?) ага
12:04
Winderton
Рет қаралды 229 М.
How To Use VS CODE for C++ | With CMake & Any Compiler
9:14
Code, Tech, and Tutorials
Рет қаралды 71 М.
Say Goodbye to Containers - Ephemeral Environments with Nix Shell
16:58
Why CMake?
13:03
sudocpp
Рет қаралды 25 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,5 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,1 МЛН