Create a minimally useful GTK3 application in C

  Рет қаралды 102,031

Engineer Man

Engineer Man

Күн бұрын

Пікірлер: 105
@magnusanderson6681
@magnusanderson6681 3 жыл бұрын
Thank you so much! As silly as it sounds, all the github repos I was looking at examples for had terrible build instructions that relied on complex tooling which meant I had no idea how to actually build anything. You showed the simple command and didn't waste any time getting into the rest of this, just overall amazing video
@tylerlwsmith
@tylerlwsmith 3 жыл бұрын
That was the best intro ever. Every second of this video was direct and valuable.
@gujjardachhora9862
@gujjardachhora9862 6 жыл бұрын
I expected an Indian man judging by your channel name
@EngineerMan
@EngineerMan 6 жыл бұрын
Ha, sorry to disappoint.
@gujjardachhora9862
@gujjardachhora9862 6 жыл бұрын
Not at all man, amazing video, it is hard to find GUI tutorials for C
@EngineerMan
@EngineerMan 6 жыл бұрын
Just wanted something small that I could do and explain in under 5 minutes.
@ShivamJha00
@ShivamJha00 5 жыл бұрын
@@gujjardachhora9862 provided that why would anyone wanna use C for GUIs
@gujjardachhora9862
@gujjardachhora9862 5 жыл бұрын
@@ShivamJha00 just for the heck of it
@ramankr0022
@ramankr0022 2 жыл бұрын
thank u very much, i was creating a matrix calculator and was troubled how to take inputs and adjust buttons, the code given in the description is proving to be very helpful for me.
@llothar68
@llothar68 5 жыл бұрын
My question about GTK is very shakespearean: To glade or not to glade ?
@veg7nlif376
@veg7nlif376 5 жыл бұрын
Yes
@LogicEu
@LogicEu 3 жыл бұрын
So useful, short and precise. Great work and thank you!
@Ricko65
@Ricko65 2 жыл бұрын
Thank you very much - Thanks to your video I was able to do my first GTK application! Looking forward to expanding with the GREAT start!!!! A++++++++
@AGUNGKAYA
@AGUNGKAYA 5 жыл бұрын
Wow cool! GUI in C !! What a great man!
@justafreak15able
@justafreak15able 2 ай бұрын
How much C do you need to know to start working with GTk? I am learning C and I want to make a GTK app.
@Nunya58294
@Nunya58294 2 ай бұрын
GTK3 if you're really new to C is quite involved. I won't stop you from learning how to make an app though. Happy coding!
@bennguyen1313
@bennguyen1313 8 ай бұрын
I built a simple wxWidget application but want to use GTK and its editor for the Gui deign (Glade/Cambalache). However, not sure what I need to install.. Meson, MSYS2, GTKMM vs GTK4 vs GTK3 etc. For example, I have Visual Studio Community do I still need MSYS2 (pacman -S mingw-w64-x86_64-toolchain base-devel etc) ? or can I just unzip the GTK source and build using VS? Do I need gvsbuild (Visual Studio Project or Meson Project) ? Also for testing , do you recommend CppUTest, google test , catch2, doctest, ??
@ucr2256
@ucr2256 Жыл бұрын
Hello! Nice to meet you,i would like to know where can I find more documentation of GTK,i need it because I have to create a text editor in C with GUI and include some functions with the mouse cursor,i would like to know something else
@higiniofuentes2551
@higiniofuentes2551 10 ай бұрын
In the case of using Glade for the design, do you have a video on it? Thank you!
@higiniofuentes2551
@higiniofuentes2551 10 ай бұрын
Thank you for this very useful video!
@aaronrennyvargheseOriginal
@aaronrennyvargheseOriginal 4 жыл бұрын
Thank you so much! Greetings from India.
@blasttrash
@blasttrash 5 жыл бұрын
I thought Java Swing and JavaFX had a lot of boilerplate, but this gtk thing also has a lot of boilerplate.
@gest07
@gest07 4 жыл бұрын
GREAT VIDEO! Straight to the point. Thanks!!
@MmmBopsPops
@MmmBopsPops 5 жыл бұрын
What do you prefer: GTK, Qt, or depends?
@veg7nlif376
@veg7nlif376 5 жыл бұрын
Yes
@jayzeejm
@jayzeejm 5 жыл бұрын
Yes
@AGUNGKAYA
@AGUNGKAYA 5 жыл бұрын
Expert would always say depend....
@FeelingShred
@FeelingShred 5 жыл бұрын
fuck C++ and fuck OOP xDDDDD I just had to get that out of my chest today, feels good
@pixelPlex
@pixelPlex 4 жыл бұрын
A tutorial video on concurrency with Gtk 3 would be very useful.
@gandsnut
@gandsnut 6 жыл бұрын
Lessee... The command line invocation first sets an ENV variable GDK_SCALE=3 and - even though you have main() args - none are used here. So something in the library checks ENV at program startup, but in this example, nothing in the code needs to know about the application window size? Am I barking up the right tree? Thx.
@ThePandaProcrastinates
@ThePandaProcrastinates 6 жыл бұрын
Are Jayem the gtk_init takes in &argc, &argv developer.gnome.org/gtk3/stable/gtk3-General.html#gtk-init
@Ryan-xq3kl
@Ryan-xq3kl 3 жыл бұрын
For whatever reason the compiling code for gcc in the github gives me a weird error which puts me in some loop in the terminal I have to kill manually. I have to compile it more like this to get it to work gcc `pkg-config --cflags gtk+-3.0` -o engCode engCode.c `pkg-config --libs gtk+-3.0`
@TEXASF1ERCE
@TEXASF1ERCE 5 жыл бұрын
Thank you so much for the videos you make Mr Engineer Man :)
@ahmadawalluddin8711
@ahmadawalluddin8711 4 жыл бұрын
Hi i know this video been 3 year and i am totally begineer can you give me the link where did you downloaded the library. Thank you very much in advance. Btw i love that you make think so simple and fast.I am on widow machine
@aaronrennyvargheseOriginal
@aaronrennyvargheseOriginal 4 жыл бұрын
But this is for Linux......
@ahmadawalluddin8711
@ahmadawalluddin8711 4 жыл бұрын
@@aaronrennyvargheseOriginal yeah i know i figured it out using msys2 to set up the library
@aaronrennyvargheseOriginal
@aaronrennyvargheseOriginal 4 жыл бұрын
@@ahmadawalluddin8711 oh good!
@pixelPlex
@pixelPlex 3 жыл бұрын
Why is the application being developed the GTK 2 way instead of using the GTK 3 way?
@nathantoulbert4406
@nathantoulbert4406 2 жыл бұрын
what editor are you using? From the window (heh. gtk) Im guessing youre on linux, but I don't recognise the editor. Is it gedit?
@svgaming234
@svgaming234 2 жыл бұрын
He uses Atom. You can see it on the top title bar of the app.
@yarolmj
@yarolmj 3 жыл бұрын
excelent tutorial!
@HenrySGoldIX
@HenrySGoldIX 4 жыл бұрын
Hi can you help me Engineer Man. How do you install this gtk/gtk.h?
@jaymesc4436
@jaymesc4436 4 жыл бұрын
ever find out?
@HenrySGoldIX
@HenrySGoldIX 4 жыл бұрын
@@jaymesc4436 Not yet. I don't know what to do
@HenrySGoldIX
@HenrySGoldIX 4 жыл бұрын
@@jaymesc4436 I use windows and I'm trying to integrate GTK with Atom. Do you know how to do that
@s.v.dedicated9621
@s.v.dedicated9621 3 жыл бұрын
Are you guys serious? Literally all you have to do is google "How to install gtk3 on Win/Linux/Mac"
@Nunya58294
@Nunya58294 2 ай бұрын
Oh God just don't bother if you have no idea what you're doing......
@christ-marieanzianbrou7564
@christ-marieanzianbrou7564 4 жыл бұрын
salut Mr. EngineerMan je peux avoir une vidéo qui explique comment faire une interface graphique qui est liée avec une base de donnée. je suis sur Ubuntu. je ne trouve pas de vidéo sur KZbin. Merci d'avance
@BladeAurora
@BladeAurora 7 жыл бұрын
hey how do you install gtk on linux? Can you make a video on installing C libraries and linking them statically and dynamically?
@EngineerMan
@EngineerMan 7 жыл бұрын
You likely already have it installed. Click on the link to GitHub in the description and see if you can compile and run the file I made.
@BladeAurora
@BladeAurora 7 жыл бұрын
Package gtk+-3.0 was not found in the pkg-config search path. No package 'gtk+-3.0' found
@EngineerMan
@EngineerMan 7 жыл бұрын
If you're on ubuntu, apt-get install libgtk-3-dev should do it.
@imeza4988
@imeza4988 5 жыл бұрын
@@EngineerMan Thanks the documentation was hard for me.
@amalirfan
@amalirfan 3 жыл бұрын
Could pls tell me the dependency packages, I am noob, sorry if the answer obvious.
@amalirfan
@amalirfan 3 жыл бұрын
I have installed libgtk-3-dev and it works, could any one find me any other programs, actively developed in C?
@arcanelore168
@arcanelore168 6 жыл бұрын
I'd like to get a course on this. I want to create a IDE like VSCode or Atom.
@EngineerMan
@EngineerMan 6 жыл бұрын
You should look into Electron. That's what both of those are made in.
@sachinprabhu1571
@sachinprabhu1571 5 жыл бұрын
What operating system do you use? Fedora?
@SteveHazel
@SteveHazel 4 жыл бұрын
at the risk of ridicule for commenting on an old video and about linux installs... i've got gcc8, and i THINK this chromebox has gtk-3. but the gtk dir ain't in my include and i haven't messed with pkg-config yet (command not found). tryna make this dang chromeos debian work fer me... Oh and a video about your opinion on Qt versus gtk pleeeeez :)
@eugenenovikov671
@eugenenovikov671 4 жыл бұрын
Hello, i installed gtk through msys2 pacman, what should i write in os windows in system path variable e:\msys64\mingw64\bin or e:\msys64\mingw64\include or e:\msys64 or e:\msys64\mingw64?
@SumitSingh-sb6jn
@SumitSingh-sb6jn 6 жыл бұрын
Which software are you using for writing of code?
@shivashankar28
@shivashankar28 6 жыл бұрын
Its called Atom Text editor just google it bro
@SumitSingh-sb6jn
@SumitSingh-sb6jn 6 жыл бұрын
Thanks pal
@shivashankar28
@shivashankar28 6 жыл бұрын
@@SumitSingh-sb6jnHere it is atom.io. This is a slow text editor, i recommend VS Code which is better in every aspect than Atom :)
@SumitSingh-sb6jn
@SumitSingh-sb6jn 6 жыл бұрын
How to set up atom for C environment
@maxi0361
@maxi0361 6 жыл бұрын
I really want to know how to develop Graphic application on linux, thanks.
@EngineerMan
@EngineerMan 6 жыл бұрын
I had a gtk video.
@AGUNGKAYA
@AGUNGKAYA 5 жыл бұрын
Actually the easiest is using lazarus. Check that out... But still, C is the most respected language if u want some proud..lol
@NymezWoW
@NymezWoW 4 жыл бұрын
Agung Sudrajat Supriatna Object Pascal is a dead language. I would strongly recommend to not use them for new projects. If you want a Lazarus/Delphi style of GUI Desiner you should go for things like Visual Studio or QtCreator. Those are way more modern and feature rich.
@virginiakennedy6078
@virginiakennedy6078 Ай бұрын
7467 Judson Islands
@zonayedpca
@zonayedpca 5 жыл бұрын
Exactly!
@octavianc.2569
@octavianc.2569 7 жыл бұрын
(Having this many views for such a new video) You're welcome :)
@EngineerMan
@EngineerMan 7 жыл бұрын
Ha, thanks. This is going to be, without question, my most popular video to date. Primarily, I hope it helps you though.
@octavianc.2569
@octavianc.2569 7 жыл бұрын
You mentioned on reddit something about creating a separate video series for Linux desktop app development. Seriously, there is a lot of potential/gapps to fill in in this area and people (devs) don't generally agree on what's the best tool for the job (Qt, perhaps?). Also you could inspire lots and lots of people to create more *NATIVE* graphical interface software for Linux/cross-platform. Save us from all this Electron / NW.JS garbage.
@EngineerMan
@EngineerMan 7 жыл бұрын
Yeah there is already a dispute on my post on Reddit regarding tech. I did mention a possible series. It's such a HUGE topic. Atom editor (the editor I use in all of my videos) was created using Electron. I'm not sold on it though, there are a lot of skeletons and dark magic being hidden beneath what appears to be a welcoming exterior of "cross platform desktop app development". When I use Electron apps, I can't help but think it's just Chrome without tabs and an address bar.
@LMGaming0
@LMGaming0 5 жыл бұрын
Why i can't use librarie GTK .. " gtk/gtk.h: No such file or directory "
@bonbonpony
@bonbonpony 5 жыл бұрын
Did you install it?
@mandinh18
@mandinh18 5 жыл бұрын
@@bonbonpony gcc `pkg-config --cflags gtk+-3.0` -o main main.cpp `pkg-config --libs gtk+-3.0`
@bonbonpony
@bonbonpony 5 жыл бұрын
@@mandinh18 I know. I wasn't the one asking.
@danchuk3927
@danchuk3927 3 жыл бұрын
Couldn't you like... run it at least once?
@officialgrasptechnology1804
@officialgrasptechnology1804 6 жыл бұрын
Kmt
@Gabob1457
@Gabob1457 4 жыл бұрын
Is that C or C++?
@antonio-aka-dhellion
@antonio-aka-dhellion 4 жыл бұрын
C
@Crux161
@Crux161 2 жыл бұрын
On macOS it takes more time to get gtk setup than anything else 🤦‍♂️ if you use brew, macports, fink etc you need to create a new user account that doesn’t make use of those package managers. It messes with the build environment and makes everything fail. So -rerunning the install as a new user “gtk” 😊…🤦‍♂️
@nattakiet1
@nattakiet1 3 жыл бұрын
Too much step for one component.
@Nunya58294
@Nunya58294 Ай бұрын
Welcome to application development.
@freeNode5
@freeNode5 5 жыл бұрын
wtf... you didn't run it at the end???
@gomezjp
@gomezjp 5 жыл бұрын
Yes, he did. It's in the lower part of the video . 2 boxes, and an adittional one with the sum result
@juanguz03
@juanguz03 4 жыл бұрын
boo! i need to view outputs
@Nunya58294
@Nunya58294 Ай бұрын
Booo you're stupid 👎👎👎👎
@RaphaelShaw-x9k
@RaphaelShaw-x9k Ай бұрын
54866 Eli Prairie
Cross Platform Graphical User Interfaces in C++
44:49
javidx9
Рет қаралды 870 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Brian Will
Рет қаралды 2,1 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 31 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 18 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 342 М.
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН
Bjarne Stroustrup: C++ | Lex Fridman Podcast #48
1:47:13
Lex Fridman
Рет қаралды 1 МЛН
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 929 М.
Functional Programming in 40 Minutes • Russ Olsen • GOTO 2018
41:35
GOTO Conferences
Рет қаралды 816 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 828 М.
How to write your own code libraries in C.
9:57
Jacob Sorber
Рет қаралды 143 М.
Data Structures: Hash Table implementation in C
10:10
Engineer Man
Рет қаралды 97 М.
Where Does Bad Code Come From?
42:21
Molly Rocket
Рет қаралды 198 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 31 МЛН