C++ Windows MinGW, VS Code, and SFML Setup (with Windows Make)

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ต.ค. 2024
  • We walk through setting up MinGW, VS Code, SFML, and Make on Windows.
    www.mingw.org/
    code.visualstu...
    www.sfml-dev.org/
    gnuwin32.source...

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

  • @JinskuKripta
    @JinskuKripta 4 ปีที่แล้ว +3

    This was the only tutorial that worked for me, I've been trying it for a week. Thanks bro.

  • @lennarth.6214
    @lennarth.6214 3 ปีที่แล้ว +2

    Heck yeah man you saved my life. I was so frustrated because all those other tutorials just didn't work but yours is perfect in any way. Immediatly subscribed!

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I am glad to hear you enjoyed it :) thank you for subscribing

  • @celesty6687
    @celesty6687 2 ปีที่แล้ว

    the best strightforward guide i found in hours! really so underrated, subbed.

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

    You did a great job explaining and i hope you continue making tutorials. Besides getting SFML setup ilearned about Makefiles and it ACTUALLY worked which was not the case in the other videos.
    (please excuse spelling/grammar mistakes im german :) )

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

      Thank you :). I plan on doing a series about creating a 2d game engine with SFML soon. I just need to get on top of my college classes first.

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

    Thank you so much! Helped me set this up and understand Makefiles too, really appreciate it dude!

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

      I am glad this video was able to help you :)

  • @egorkuroedov7120
    @egorkuroedov7120 3 ปีที่แล้ว

    Thank a lot man. I have a coursework in this semester, your video helped me

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I am glad to hear it helped :)

  • @doze2419
    @doze2419 3 ปีที่แล้ว

    this is the only tutorial that work on youtube

  • @herbglitch
    @herbglitch  4 ปีที่แล้ว +3

    Hi all, sorry for being away for some time, I am planning on creating and releasing the first of the game engine video soon. I recorded the video a couple times but was unsatisfied by how it would turn out and how long the videos were, so I am going to write a script in order to cut down the video time and include challenges. I will try to create and release the video soon.

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

    Thank you for such great tutorial! It was really helpful!

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

      no problem, I am glad I this helped

  • @mechy6065
    @mechy6065 4 ปีที่แล้ว

    Thank you so much , you have helped me start my project work!

    • @herbglitch
      @herbglitch  4 ปีที่แล้ว

      Np. I am glad to hear that it worked for you :)

  • @michaelnilan7413
    @michaelnilan7413 4 ปีที่แล้ว

    Bro this is great and did a great job ...hoping to see more...really helped a lot cheers

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

      Thank you :). I am planning on making a series where we build a game engine (and to test it out, some games). I recorded the next video, but it was 50 minutes long and I want to make them around 15 min each. My plan is to create a main video where we build the game engine, and short sub videos (like 5 min each) explaining the different topics. It might be a couple of weeks till the next video though because I need to get on top of my college classes :)

    • @michaelnilan7413
      @michaelnilan7413 4 ปีที่แล้ว

      @@herbglitch All the very best man ✌️

  • @Victor-pd9vj
    @Victor-pd9vj 4 ปีที่แล้ว +1

    is finally working!

  • @Yolo764
    @Yolo764 4 ปีที่แล้ว

    Appreciate it, very in depth and clear

  • @sonicspeedfly
    @sonicspeedfly 2 ปีที่แล้ว

    thank you very much friend, very much helped)😁

  • @seanisnoob2885
    @seanisnoob2885 3 ปีที่แล้ว +3

    sooo underated man... Thank you for this, tho the volume is low

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

      Thank you! for all future videos, I will try to make sure the volume is not low (I bought a mic to try to fix that).

  • @zakariajamil
    @zakariajamil 4 ปีที่แล้ว

    Very good explanation

  • @pawepl1640
    @pawepl1640 3 ปีที่แล้ว

    Thank you that's only one that worked

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I am glad to hear it worked :)

  • @hamzael3613
    @hamzael3613 3 ปีที่แล้ว

    thanks bro, it works !

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      No problem :) I am glad to hear it is working

  • @_AbdulRaheem_
    @_AbdulRaheem_ 3 ปีที่แล้ว

    thanks It Worked

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I am glad to hear it worked :)

  • @mjustboring
    @mjustboring 3 ปีที่แล้ว

    love you, bro... :)
    Edit:
    We can also do one thing more instead of putting the "bin/*.*" files in the current project folder we can add that bin directory to the environment variable too. or just put these files in the MinGW bin folder...
    Now we don't have to create a mesh every time we create a new project folder...

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      That makes a ton of sense! thank you :)

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

    I follow your tutorial step by step. When I write main.exe it doesn't show any window.

  • @drj9403
    @drj9403 4 ปีที่แล้ว

    Thanks, dude It's Working.......

    • @herbglitch
      @herbglitch  4 ปีที่แล้ว

      No problem, I am glad to hear it is working :)

  • @sohrabmaleki2052
    @sohrabmaleki2052 3 ปีที่แล้ว

    so understandable

  • @chinmoydas4567
    @chinmoydas4567 3 ปีที่แล้ว

    thanks man

  • @kadekedwin
    @kadekedwin 2 ปีที่แล้ว

    why i get error : the procedure entry point __gxx_personality_seh0 could not be located in the dynamic link library .....\sfmlProject\sfml-graphics-2.dll? can anyone help me, i have very hard to solve this error

  • @sothis6488
    @sothis6488 3 ปีที่แล้ว

    thank you it works!!

  • @imSoo_OP
    @imSoo_OP 4 ปีที่แล้ว

    thanks! you got my sub! :)

  • @vhscincent
    @vhscincent 4 ปีที่แล้ว

    Your video is an excellent guide. I just hope the volume could be higher though.

    • @herbglitch
      @herbglitch  4 ปีที่แล้ว

      Thank you. Idk what happened with the audio, but I bought a new mic to hopefully fix that problem for future videos.

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

    It works and compile BUT i'm having red squiggle underneath the #include I think it was the c++ intellisense any suggestion?

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

      I would try [ctrl] + [shift] + [p] then type c/c++ and click on the ui option if there is one, then set the compiler to g++ from where you have it installed. If that doesn't work, please let me know

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      @MarbleXeno I am glad to hear it worked :)

    • @utpalsh2104
      @utpalsh2104 3 ปีที่แล้ว

      @@herbglitch Thanks, It works for me too.

    • @hizonopusdie
      @hizonopusdie 3 ปีที่แล้ว

      @HerbGlitch it works thank you but mind if I ask, do we need to always do this process everytime we make a SFML project?

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      @@hizonopusdie I believe there is a way to set it as the default within your vs code main settings. You go to vs code main setting page, then click on the c++/c section and I think it will give you the option to set a default compiler path. I think that should fix it permanently, though I am not sure. I recently learned a way to include all the files needed for sfml within the project directory and because it is in the workspace folder intellisence usually picks up on it. I set it up in the new way on the game engine series I am working on.

  • @ВладМельник-с8й
    @ВладМельник-с8й 2 ปีที่แล้ว

    Я тебя люблю ❤️

  • @emranmoustafa9593
    @emranmoustafa9593 3 ปีที่แล้ว

    Hello, great tutorial but I ran into one problem, when I try and create the main.exe file I keep getting the same message that says:
    c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0\libsfml-system.a when searching for -lsfml-system
    This line repeats a couple times and then it gives me the following line:
    c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-system
    I have the same issue for -lsfml-window and -lsfml-graphics as well. I saw you respond to someone having the same issue as me so I tried using the -L{where the lib is} line that you said to do and I got the same issue. Any help would be greatly appreciated!

    • @emranmoustafa9593
      @emranmoustafa9593 3 ปีที่แล้ว

      The first line is the command I used initially and the second line is the line I also tried but still got nothing:
      g++ *.o -o main -lsfml-graphics -lsfml-window -lsfml-system
      g++ main.o -o main -LC:\SFML-2.5.1-windows-gcc-7.3.0-mingw-32-bit\SFML-2.5.1\lib -lsfml-graphics -lsfml-window -lsfml-system

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      Sorry for the late response, youtube has stopped notifying me when people comment. This could be due to a different name of the .a differs from sfml-system, or it could be dlls are needed in the same dir as your exe. If you have discord and want to debug, you can dm me at HerbGlitch#5572 and I am down to help debug

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

    Great tutorial! Is there going to be a follow up to this one? Btw try making the sound louder in whatever video editor you use I can't really hear you unless I go to 100% volume

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

      Thank you. I really want to create a new video about building a game or game engine. I am trying to figure out how best to teach the topics. Idk at what level I would be best at teaching or what concepts would be best to go through. I bought a new mic for next time I record to hopefully fix the volume. One disclaimer is most of my attention and time are focused on college and pocketcampaigns.org. If anyone has any suggestions for what they would like to learn, please let me know. I try to check this comment section often :)

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

    When I pasted the test code in vs code, it's showing a red line (error) at #include . In the problems tab it says "#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit "(and then my project folder where my main.cpp exists). And it shows another error that says "cannot open source file "SFML/Graphics.hpp"". I've tried to setup sfml for 2 weeks now and I don't know what to do. Any help really appreciated! :)

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

      Sorry for not responding sooner. I have been moving all day. Can you check in settings if you have mingw as your default Compiler with the correct path? I have posted a 3-4 min video for in project setup and it guides through vs codes settings for mingw

    • @mikael808
      @mikael808 3 ปีที่แล้ว

      @@herbglitch thanks for your reply, I wrote "C:/MinGW/bin/g++.exe on the compilerPath and "${workspaveFolder}/**" on the includePath, but when I go back to my main.cpp it still shows an error at the include line like before. Thanks again for your reply! :)

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      @@mikael808 Hmm.. Do you have the sfml folders in the project directory? or, do you have a project .vscode file that is pathing incorrectly?
      If you want to debug and fix this sometime, I can live share or talk over discord or smthn. Just let me know :)

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      @mope.io That is good to hear :)

  • @jonathanmontenegro1152
    @jonathanmontenegro1152 3 ปีที่แล้ว

    hello i´ve got a problem. when i copy paste the main cpp code from the sfml page. visual code show this two errors
    #Include errors have been detected. Update the value of includePath. Wavy underline is disabled for this translation unit (C: \ sfml project \ main.cpp)
    cannot open source file (error code "SFML / Graphics.hpp").
    sorry for my primitive english

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I think the error is caused by vscode's settings. Just to check, can you compile and run the program?

  • @hex697
    @hex697 3 ปีที่แล้ว

    Hey so I've been trying to do this in atom, and I'm not having any success. I'm getting this error:
    "main.cpp:1:10: fatal error: SFML/Graphics.hpp: No such file or directory
    #include
    ^~~~~~~~~~~~~~~~~~~
    compilation terminated."
    If you need more info reply and tell me what it is, I have the dll files in. The command I ran was:
    "g++ -c main.cpp"
    I also tried:
    "g++ main.cpp -lsfml-graphics -lsfml-window -lsfml-system"

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      would you be chill to try setting up sfml in your project? I am have kindof forgotten how to debug for the way we set this up in the video

    • @hex697
      @hex697 3 ปีที่แล้ว

      @@herbglitch I eventually was able to solve it on my own, don't ask me how. I have no idea.

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      @@hex697 no worries, I am glad to hear you got it solved :)

  • @wisherwatch
    @wisherwatch 3 ปีที่แล้ว

    I followed this exactly but I see errors when I paste the code in vscode, basically that it doesn't recognize things like shape etc

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      can you try to update which compiler intellisense is using for vscode? [ctrl] + [shift] + [p] then type c/c++ and click on the ui option, then select g++ as your default compiler?

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

    it's not working

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      What part is not working?

  • @ghzich017
    @ghzich017 3 ปีที่แล้ว

    Whenever i type "make" it say "make: *** No targets specified and no makefile found. Stop." Why?

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      Are you in the directory with your makefile when you run the command? (if you type dir you can see if it has the file or not)

  • @rahatsiddique2001
    @rahatsiddique2001 3 ปีที่แล้ว

    when i wrote : cd "programs\c++\games\sfml\tutorial\setup" on my command prompt, it said the system cannot find the path specefied. what should i do??

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

      programs/c++/games/sfml/tutorial/setup is just the path to a folder I had created. You can set this up in any directory you want. "cd" means change directory and "mkdir" means make directory. If that is confusing, you can open up a directory in vscode and follow along with that directory

  • @frosty7674
    @frosty7674 3 ปีที่แล้ว

    I am getting a really big error about 10-12 lines saying:
    Undefined reference to... a lot of things
    I followed the tutorial and did everything

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      Are you using mingw-w64? If so, you may want to use the mingw installer instead. I have had problems like that with mingw-w64.

    • @frosty7674
      @frosty7674 3 ปีที่แล้ว

      @@herbglitch I'm using Mingw 32-bit on my win 10 pc, vscode

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      Can you please send the errors?

    • @frosty7674
      @frosty7674 3 ปีที่แล้ว

      Here it is, really big and bad boi, something you can suggest?

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I personally think it could be that the installer version of mingw is the only one that works with the pre compiled binaries of sfml

  • @Jay-vf8ue
    @Jay-vf8ue 3 ปีที่แล้ว

    What do I do if I'm missing the c++ folder at 4:35

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      You may want to re-install MinGW with the installation manager. If that doesn't work let me know and I can help debug.

  • @herbglitch
    @herbglitch  3 ปีที่แล้ว

    Hi all, The audio of this is pretty messed up. I released a video for setting SFML up in directory (which I prefer to what is shown here) that has much better audio and editing.

  • @zuzannadomagaa3649
    @zuzannadomagaa3649 3 ปีที่แล้ว

    Hi, could you help me with this? When I use command "
    g++ main.o -o main -lsfml-graphics -lsfml-window -lsfml-system" I get an error "collect2.exe: error: ld returned 1 exit status" and the message says "cannot find -lsfml-window", "cannot find -lsfml-graphics", " cannot find -lsfml-system"

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      Do you have the .dll files that are found in sfml/bin copied into the same directory as your .exe?

    • @zuzannadomagaa3649
      @zuzannadomagaa3649 3 ปีที่แล้ว

      @@herbglitch I don't have any .exe, only main.cpp, main.o and .dll files. When I used "g++ -c *.cpp" it only created main.o

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      @@zuzannadomagaa3649 I am sorry, I totally spaced the linking line is what created the executable. You can manually set up the linker path by adding -LyourLibPath
      so an example would be:
      g++ main.o -o main -LC:/SFML/lib -lsfml-graphics -lsfml-window -lsfml-system
      //one note is that I haven't tested using C:/ as I normally put the lib folder in the project directory so it usually looks like -Lsrc/lib

  • @simonebrle1190
    @simonebrle1190 3 ปีที่แล้ว

    I have a problem my terminal stil gos to this error do you knou haw to fix this? c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -lsfml-systemst
    collect2.exe: error: ld returned 1 exit status and comand make dosnt work as well bot this is no problem or no big problem :D

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I believe the linker cannot find the lib file (sfml-systemst.a) in the the lib folders of MinGW. Did you mean to type -lsfml-system not -lsfml-systemst?

    • @simonebrle1190
      @simonebrle1190 3 ปีที่แล้ว

      @@herbglitch thank you for the quick reply i tright but it show this error c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16'

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      Did you compile a main function as well? If so, did you link all the .o files?

    • @simonebrle1190
      @simonebrle1190 3 ปีที่แล้ว

      @@herbglitchi did all from your tutorial and a command i used is g++ main.o -o main -lsfml-graphics -lsfml-window -lsfml-system and this one g++ main.o -o main -lsfml-graphics -lsfml-window -lsfml-systemst bouth of tham showes error. First one this eroro c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16'
      and second one this one c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -lsfml-systemst

    • @simonebrle1190
      @simonebrle1190 3 ปีที่แล้ว

      @@herbglitch I started playing for couple of minutes and it start working. Thank you for your quick response and create videos like this.

  • @sothis6488
    @sothis6488 3 ปีที่แล้ว

    Hello how should I modify my makefile for it to compile all files even in the subfolder? (You can tell me if my comment is not understandable)

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I normally cd into a folder, then compile each directory to the folder and link from the main folder using the compiled folder. I will link an example below

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      Example: github.com/HerbGlitch/testing-platformer/blob/master/Makefile

    • @sothis6488
      @sothis6488 3 ปีที่แล้ว

      @@herbglitch I don't understand and how can I adapt it for my project :,/

    • @sothis6488
      @sothis6488 3 ปีที่แล้ว

      @@herbglitch Oooh I get it it works thank you!

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

      @@sothis6488 I am glad to hear it works :)

  • @maazsiddiqui6324
    @maazsiddiqui6324 3 ปีที่แล้ว

    how to complite the code bro please i cant understand what you did and that code compiled with new make file

    • @maazsiddiqui6324
      @maazsiddiqui6324 3 ปีที่แล้ว

      also my error is collect.exe related please help

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      @@maazsiddiqui6324 Can you give me the full output of the error? also, I might be a bit slow to respond as my schooling is swamping my time, but I will try and help you figure it out

    • @maazsiddiqui6324
      @maazsiddiqui6324 3 ปีที่แล้ว

      @@herbglitch 1) i wrote the code and dont know hot to execute it.
      2) when i tried some extension it compiled but gave error of collect.exe related

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

      @@maazsiddiqui6324 I am not sure how you are compiling it, can you try: "g++ -c *.cpp", then: "g++ *.o -o main -lsfml-graphics -lsfml-window -lsfml-system" in your cmd or terminal

    • @maazsiddiqui6324
      @maazsiddiqui6324 3 ปีที่แล้ว

      @@herbglitch never mind bro i am demotivated now. I wanted to learn sfml and cpp graphics but nvm. Your video was great tbh it helped me. Thanks

  • @someusefullstuff
    @someusefullstuff 4 ปีที่แล้ว

    cannot open source file "SFML/Graphics.hpp"

    • @herbglitch
      @herbglitch  4 ปีที่แล้ว

      During which step?

    • @purpurax8194
      @purpurax8194 4 ปีที่แล้ว

      me too. The error happened after the Makefile and gnuwin32.

    • @someusefullstuff
      @someusefullstuff 4 ปีที่แล้ว

      @@purpurax8194 same problem

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

      Some things that might be causing the error:
      The environment variable path to MinGW might have gotten messed up.
      The include files might be missing from MinGW's folder.
      The lib files might be missing.
      Please check each of these folders to see if they are the problems.
      I recently found out that if you put the include and lib folders in your project, you can manually link them in your makefile. I like this method more because you can push everything needed to compile to github.
      Here is how I normally do it:
      //file tree example
      Project Dir
      dependencies
      include
      SFML
      all sfml include files
      lib
      all sfml lib files
      project folder and all project code
      Makefile
      then in the Makefile you can link like: g++ src/compiled/*.o -o main -Isrc/include -Lsrc/lib -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
      Idk if that makes sense. I can make another tutorial with this linking method if yall would like me to

  • @haroonshahbaz2005
    @haroonshahbaz2005 4 ปีที่แล้ว

    Hey, When I try to run the line that creates the "main.exe" file, I get an error saying "undefined reference to `WinMain@16'". If you could tell me why this happening that would be great.

    • @herbglitch
      @herbglitch  4 ปีที่แล้ว

      can you send me the line you used to compile your code to "main.exe"?

    • @bytelab3268
      @bytelab3268 4 ปีที่แล้ว

      @@herbglitch g++ main.o -o main -lsfml-graphics -lsfml-window -lsfml-system

    • @herbglitch
      @herbglitch  4 ปีที่แล้ว

      I cannot really help debug unless I see your code. The problem most likely resides in your main function

    • @bytelab3268
      @bytelab3268 4 ปีที่แล้ว

      @@herbglitch I finally got it working it was missing the dll in MINGW bin folder. but it makes my game crash for whatever reason..... it works perfectly in visual studio I think it has to do with my states but idk d

    • @bytelab3268
      @bytelab3268 4 ปีที่แล้ว

      @@herbglitch thank you

  • @keithbrau6555
    @keithbrau6555 19 วันที่ผ่านมา

    Howdy

  • @davisantosmartinsbarroso1127
    @davisantosmartinsbarroso1127 3 ปีที่แล้ว

    "make: *** No targets specified and no makefile found. Stop." ??

    • @rahatsiddique2001
      @rahatsiddique2001 3 ปีที่แล้ว

      Highlighted reply
      HerbGlitch
      11 hours ago
      programs/c++/games/sfml/tutorial/setup is just the path to a folder I had created. You can set this up in any directory you want. "cd" means change directory and "mkdir" means make directory. If that is confusing, you can open up a directory in vscode and follow along with that directory

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      Can you paste the makefile?
      Normally that means that there is no command in the makefile for what you are trying to do.
      if you type "make" in the cmd, make will look for the command "all:". if you type "compile" make will look for "compile:" I hope that makes sense

    • @rahatsiddique2001
      @rahatsiddique2001 3 ปีที่แล้ว

      @@herbglitch i don't know bro. i'm still a noob at it.

    • @davisantosmartinsbarroso1127
      @davisantosmartinsbarroso1127 3 ปีที่แล้ว

      @@herbglitch
      all: compile link
      test: compile link run
      compile:
      g++ -c *.cpp
      link:
      g++ *.o -o main -lsfml-graphics -lsfml-window -lsfml-system
      clean:
      del *.o
      run:
      main.exe

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      @@davisantosmartinsbarroso1127 Oh, that looks right. Are you pathed in the directory that holds the makefile when trying to run it? @Rahat Siddique No worries about being a noob putting effort to learn is always awesome :)

  • @WeskerPower
    @WeskerPower 3 ปีที่แล้ว

    cant hear shit, ma dude, and im at 100% on headphones, had to download and vlc the shit out of your video, to hear it

    • @herbglitch
      @herbglitch  3 ปีที่แล้ว

      I am sorry m'dude. I made this with my headset mic. All other videos on this channel have been recorded with a new mic I bought. I made a new video recently on setting up SFML in directory (which I think is a slightly better way) if you want to check that out. The audio should be a lot louder.

    • @WeskerPower
      @WeskerPower 3 ปีที่แล้ว

      @@herbglitch oooo dont worry i subbed, but since i never watch the date of a video i comment anyways about the flaw if it has any on audio or black screen, ill check that later, no need to apologize, maybe just put a comment on the video so people like me knows that issue has been solved.

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

      Chill beans, I am off to bed now, but in the morning I will try to remember to post a comment :)

  • @sakardahal5476
    @sakardahal5476 2 ปีที่แล้ว

    What is your discord???

    • @herbglitch
      @herbglitch  2 ปีที่แล้ว

      Sorry I didn't respond sooner. TH-cam didn't notify me of any new messages. Here is the server link: discord.gg/eqz5jHSUy4 and my username is herbglitch#0024

  • @Escalon-
    @Escalon- 4 ปีที่แล้ว

    5:29 i did not understand this part
    Edit : when i compiled and run ,it works but it shows opengl not in sync error

    • @herbglitch
      @herbglitch  4 ปีที่แล้ว

      At 5:29, I was just going into my directory where I would be coding. As for the error, I am not sure why you get an opengl not in sync error. I would suggest googling the error message, and if that does not work, I would check the include folder to see if you have a "GL" folder