[Compile from Source] Compile SFML From Source on Linux (Fix dependencies, and learn how to link)

preview_player
Показать описание

►Lesson Description: In this lesson I teach you how to compile SFML from the github repository from source code on Linux. I'll show you how to fix some dependency errors, compilation errors, and how to link to get a hello world application running.

00:00 Introduction
00:30 Purging any previous installation
00:50 Download from github repository
1:30 Using CMake
2:30 Fixing a missing dependency
3:00 Using apt-cache to find the missing library
3:30 Installing missing dependency
3:50 Building SFML
4:50 Hello SFML Tutorial
5:30 Including the appropriate header files
6:45 Compiling with C++17
7:10 Linking in the correct libraries
8:10 Missing path for runtime libraries
10:30 Successfully running SFML application
11:30 Conclusion

►Please like and subscribe to help the channel!
Рекомендации по теме
Комментарии
Автор

this is exactly the video I needed - been trying to learn how to be a little more manual with my C++ workflow and was getting stuck on many small roadblocks so thanks so much!

danieldrew
Автор

Installing from source is important. It lets you test out the current SFML build and help fix known issues.
Thanks for sharing.

dreamhollow
Автор

I just wanted to thank you so much for all your videos!!! From everything i can tell you are totally an amazing guy after my own heart! your c++ knowledge and your talk of sdl and linux and sfml and more importantly the rational way in whichyou talk totally won me over!!! Thank you so much!

Now i can assume you're a totally busy (and excellent!!!!) guy which might not have time to read more... but in case you do, just wanted to tell you about myself, why i look at your videos and what i'm hoping to get out of them... in the hope that this is not just me selfishly ranting but is also helpful to you. So: i'm a guy who used to be totally into c++, opengl and then directx ... but that was like around the 2ks ... here were are now decades later, and (go figure!) after doing a lot of 3d graphics (xsi, blender, ZBrush, Zbrush..) i want to get backt to c++. Sure enough i've discovered modern c++ has advanced a lot ... i thought i was good in c++ ( coming from asm, c, effective c++ books... ) and then all went wonderfully new. So now i'm llike 700 pages in this "professional c++" book hopingly bringing me up to c++ 20, wondering wheather i should worry about c++ 23... and while once i used to think of myself as a "graphics programmer" now i'd just like to make a "simulation": i don't know if i should call them voxels or just minecraft like cubes, but my point is that i'm just focused on the "simulation" element on it.

In my mind it's just a 3d array of points in space which are actually instantiations of classes... so i don't care much about how they're rendered, so i looked into what i remembered from the early 2000s for an easy way to jsut draw something... I remembered sdl, i thought it would be trivial to just draw a sphere/cube/whatever at those points in space and open a window ... only to find out that even with your awesome tutorials many tutorials in to sdl2 i'm still at setting up the window or drawing triangles (don't get me wrong, that's still much better than some other paths i've went down of with like 6k lines of code later still seting up vulkan) ... so in the end me still hoping for an easy openWindow(); importObjModel(simpleStone path); that i had imagined....

You probably have lost interest time before getting here but just wanted to say that this is something i'd be totally interested in, in case it helps your channel/audience. I love Linux. and i just (for once in my life, at least 20y later) I just want to focus on the data. I'm thinking of Cellular automata like i did in 1998 before knowing it was called that but after a computer science "game of life class", and i have a lot of ideas about how all those "cells" in the world could be processed, from colapsing with gravity to worms digging tunnels to cells spawning other children to evolutionary iterations ... so i figured maybe there would be a way to have some fun coding with my wife in linux with some lightweight visualisation of the 3d array of points... while still keeping the path open that maybe one day i move onto windows unreal engine for cooler graphics or eye candy or stuff more in the "no man's sky" direction with the eye candy models/grass/weather on top of this world processing....

aaanyway, there's a binary choice here: either a) you never read this, not judging, you're awesome, i or anybody don't deserve you, why would you? or b) maybe you did an either this was somehow interesting, amusing or who knows even interesting to you ... wouldn't even dare thinking of c) you're the kind of awesome person normally picky me would be happy to be actual friends with... stupid of me to dare imagine, i know, but hey, worth a try...

VoidloniXaarii
Автор

Why don't just install in other ways? from source would be better?

dax
join shbcf.ru