C++ - Setup SFML Visual Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ต.ค. 2024
  • in this video I show you how to setup SFML with visual studio so we can begin to work on graphical games and projects, using c++ and the SFML framework
    Join me on discord
    / discord

ความคิดเห็น • 37

  • @cloudproblemssolved
    @cloudproblemssolved 2 หลายเดือนก่อน +4

    how did this work?! Even though my folder did not have SRC in it it still worked, thx so much!
    Anyone else here for COMP4300 - Game Programming - Lecture 04 - Intro to SFML + Assignment 1 by Dave Churchill> 😂 Guy can teach but expects us to figure out these small stuff

    • @FFDEV
      @FFDEV  2 หลายเดือนก่อน

      you don't have to have a source folder, I just think that it helps with organization. I got into the habit of using it from watching Cherno videos lol

  • @Nightmare-fe9hr
    @Nightmare-fe9hr ปีที่แล้ว +3

    Thank you so much, this is so much cleaner than the sfml website's documentation lol

    • @FFDEV
      @FFDEV  ปีที่แล้ว +1

      I'm glad that I could help, I had trouble as well setting up sfml initially

  • @castlerockcode
    @castlerockcode 8 หลายเดือนก่อน +1

    I'm just going to thank you in advance. I don't know if it will work, but you're my last hope Obi Wan! (Even if it doesn't work, thank you for trying!)

    • @FFDEV
      @FFDEV  7 หลายเดือนก่อน +1

      hopefully it works out for you

    • @castlerockcode
      @castlerockcode 7 หลายเดือนก่อน +1

      It worked bro. Thank you so much! The other tutorials didn't specify putting ".lib" at the end of library files in the Linker->Input->AdditionalDependencies entry, so my project was looking for *.obj files during linking. My green circle is beautiful. @@FFDEV

    • @FFDEV
      @FFDEV  7 หลายเดือนก่อน

      @@castlerockcode I'm glad I was able to help you get setup, good luck on your projects

  • @sauravsingh471
    @sauravsingh471 ปีที่แล้ว +2

    Seriously ,thanks man ,i have been scrambling like a mad and was unable to link the smfl

  • @imxande6930
    @imxande6930 5 หลายเดือนก่อน +1

    Why is it so hard for the great minds that make these cool libraries to add a small video showing how to set this shxt up geez, not all of us are geniuses that can understand all the crap they add to the documentation lol. Thank you good sir for making this video!!!

    • @FFDEV
      @FFDEV  5 หลายเดือนก่อน +1

      lol honestly I use chatgpt now to tell me how to setup libraries and what includes to use and where it works pretty good

    • @imxande6930
      @imxande6930 5 หลายเดือนก่อน

      @@FFDEV that’s a great idea thank you, I’m using cmake to do all the heavy lifting for me at the moment but I’ll start using ChatGPT to help set stuff up for sure hehe

  • @TheStig-h1m
    @TheStig-h1m ปีที่แล้ว +1

    Thank you very much. I really appreciate you making this video.

    • @FFDEV
      @FFDEV  ปีที่แล้ว +1

      you're welcome anytime :D

  • @Amjad29005
    @Amjad29005 ปีที่แล้ว +2

    Thank you, you save my time (:

    • @FFDEV
      @FFDEV  ปีที่แล้ว +1

      anytime, I'm glad I could help

  • @giogiogio987afria4
    @giogiogio987afria4 7 หลายเดือนก่อน +1

    Oh I see it thanks broooooooooooo

    • @FFDEV
      @FFDEV  7 หลายเดือนก่อน

      I hope it helped you

  • @codemonkey7446
    @codemonkey7446 10 หลายเดือนก่อน +1

    Followed this through 5 times, pausing at each step to ensure I had everything done correctly, spelled correctly, correct versions, correct file orientation, properties settings etc., have searched online and in the SFML Docs, and ChatGPT, but no matter what I try, no matter what tutorial I use, or what computer I am on, I always end on either dozens of errors, or "error C1083: Cannot open include file: 'SFML/Graphics.hpp': No such file or directory". I am using the latest version of Visual Studio 2022 Community: Version 17.8.2 on the x64 Setting (which I accounted for), which I installed all of recently on a clean install of Windows 11 OS with Visual C++ 2022. What could I be missing here? Where else can I go for help?

    • @FFDEV
      @FFDEV  10 หลายเดือนก่อน

      ill try my best to help you join my discord when you can ill post the link in the description of this video

  • @AngelofD000M
    @AngelofD000M 9 หลายเดือนก่อน +1

    2:44 I don't have this option on my visual studio, but I have the C++ workload selected. I'm unsure why this is.

    • @FFDEV
      @FFDEV  9 หลายเดือนก่อน

      I see I see, to fix this you need to right click on your project and go to properties instead of the solution, the project will be whatever you named it. I hope that this helps

    • @AngelofD000M
      @AngelofD000M 8 หลายเดือนก่อน

      ​@@FFDEVokay I was able to get it working. For some reason the window keeps crashing, would you know why?

    • @FFDEV
      @FFDEV  8 หลายเดือนก่อน

      @@AngelofD000M if it closes right when you open it its because you dont have a game loop, it needs to be in a while loop that has a condition like a key press to end the window

    • @AngelofD000M
      @AngelofD000M 8 หลายเดือนก่อน

      @@FFDEV i put it in a while loop exactly like you did, and when I pressed play on visual studio, it shows the command line, then it shows the window, and right after the window pops up, it says the window has crashed.

    • @FFDEV
      @FFDEV  8 หลายเดือนก่อน

      @@AngelofD000M hmm im not too sure on why it would be doing that

  • @sauravsingh471
    @sauravsingh471 ปีที่แล้ว +1

    Do i need to do this for every project in smfl i create.

    • @FFDEV
      @FFDEV  ปีที่แล้ว

      There's quiet a few ways to do it, this is just personally how I do it, saving a template makes it a lot easier but its still a little much

  • @taffoi5830
    @taffoi5830 ปีที่แล้ว +1

    Hey there! I need some help. So my vscode only has file, edit, selection, view, go, run, terminal and help i dont have the other stuff that you have in the video. Is it because i have another version of vscode? Thanks!

    • @FFDEV
      @FFDEV  ปีที่แล้ว

      ahh, Im using visual studio 2022, not vscode

    • @taffoi5830
      @taffoi5830 ปีที่แล้ว +1

      @@FFDEV Oh ,thanks alot!!!

  • @Xaruzo
    @Xaruzo 2 หลายเดือนก่อน +1

    you earn a like at least

    • @FFDEV
      @FFDEV  2 หลายเดือนก่อน +1

      haha thanks

  • @eddiemuffin201
    @eddiemuffin201 11 หลายเดือนก่อน

    Please I am using vscode not this type. I am finding it difficult to set up sfml on it. I am getting an error that states; SFML/Graphics.hpp: No such file or directory . Kindly help me set up tp foolow your tuition. Thank You!

    • @FFDEV
      @FFDEV  11 หลายเดือนก่อน

      I've never setup a library with Vscode however chatgpt may be able to tell you how to do it

    • @eddiemuffin201
      @eddiemuffin201 11 หลายเดือนก่อน

      I have tried it for months, getting errors with the header files. @@FFDEV
      I guess i would have to download Visual Studio