how to setup sfml for visual studio code and mingw

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • the MakeFile and main.cpp file: github.com/OUR...
    In this video, I'll show you how to setup SFML for Visual Studio Code and MinGW. SFML is a cross-platform game library that makes it easy to create 2D and 3D games for Windows, Mac, linux, ios and android coming soon
    If you're a programmer and you're interested in game development, this video is for you! By the end of this video, you'll be able to setup SFML for Visual Studio Code and MinGW, and learn how to create your first game using SFML. This video is a great tutorial to start your game development journey!
    nothing here:
    sfml,visual studio code,c++,mingw,coding,cpp,gamedev,sfml gamedev,sfml dev,indie game,OURABIG,game engine,c++ game development,unreal engine,godot,unity,c#,rust,bevy,github,tutorial,course,how to,trend,networkchuck,dani,brackeys,software engineer,triple a games,aaa games,game over
    #sfml #coding #OURABIG #c++ #gamedevelopement #indiegame #gamelibrary #gamedev #gameengine

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

  • @ourabig
    @ourabig  5 หลายเดือนก่อน +10

    Sorry i just have exams there IS some changes on the New version of sfml i will try to post a vidéo but not now

  • @ayoubbii
    @ayoubbii ปีที่แล้ว +13

    loved the medivian music it makes you go back to the 15th - 14th century

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

      Yes this is why I used it

  • @Passatore105
    @Passatore105 4 หลายเดือนก่อน +3

    Please help! I run the main.exe file, there are no errors and nothing happens, the window does not open. I added the outputs "program started" and "program ended", it is not output, its mean the code is not executed.

    • @TacticalCorn
      @TacticalCorn 3 หลายเดือนก่อน +2

      same here

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

    Great video man, I've been trying to have sfml work for days, watched a lot of videos, but this is the only one that helped

  • @solaris-k
    @solaris-k ปีที่แล้ว +4

    THANK YOU!!!!!! you saved me i was searching videos for hours and your video helped me do it in minutes instead of hours

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

      No problem

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

    Incredibly grateful for this, thank you so much!

  • @iceks4811
    @iceks4811 3 หลายเดือนก่อน +2

    Hey, when I try to enter 'mingw32-make -f MakeFile' in the command prompt, it returns 'mingw32-make: *** No targets. Stop.'
    Do you know how to fix it?

    • @ourabig
      @ourabig  3 หลายเดือนก่อน

      It's either not finding the makefile or you not targetting anything make sure you named the makefile right

    • @justskills5037
      @justskills5037 8 วันที่ผ่านมา

      i have a similar error but its MakeFile:4: *** missing separator

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

    man, it's been so long you haven't uploaded the tutorial for the new version. I am also getting the same error that Graphics.hpp not found

    • @ourabig
      @ourabig  4 หลายเดือนก่อน

      Sorry i can't upload now i have exams for final years of highschool

  • @abdullahqureshi9883
    @abdullahqureshi9883 11 หลายเดือนก่อน +3

    i followed all of this, it all compiled but when i run main.exe it doesn't give me any window or output or anything in the command prompt terminal

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

      What is the script you used and what is the output in the console

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

      @@ourabig do you have discord? i can share screenshots there

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

      @@ourabig I had the same problem, I typed ./main.exe to run the file, and it simply created a new line in console. I was able to compile properly though.

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

      @@danielabraham3022 hmm do you have in output in the console

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

      I have this same problem.... it is very very annoying. Every tutorial for setting up no matter 64 or 32 bit mingw download for SFML both have the same results. Also some tutorials use Makefile to initialize the compilation.

  • @Gumball217
    @Gumball217 10 หลายเดือนก่อน +3

    when I compiled the make file, but did not get the main.exe file what do I do?

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

      Is there any error message

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

      Do you have mingw installed

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

      Thanks for replying but I already made it. :)

    • @KingOfMadnesss
      @KingOfMadnesss 9 หลายเดือนก่อน +2

      @@ourabig I had the same issue. the main.exe file didnt appear and I do have mingw installed

    • @joe-l34
      @joe-l34 หลายเดือนก่อน

      @@Gumball217 yo how did you fix it?

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

    I get a *** No targets. Stop. error when trying to execute the mingW command in terminal. Any idea of what could cause this?

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

      can you show me youre code and makefile and full error each in separated reply comment to answer youre question

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

      im getting the same problem plz respond
      @@ourabig

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

    During the makefile part it says coding language is unidentified ,
    it does not recognize and i cant move on

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

      Can you please explain more or give me youre makefile and cpp file

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

      @@ourabig OK this is my only problem now:
      [Running] cd "c:\Users\hp\Desktop\test\coding\" && g++ main.cpp -o main && "c:\Users\hp\Desktop\test\coding\"main
      main.cpp:1:29: fatal error: SFML/Graphics.hpp: No such file or directory
      #include
      ^
      compilation terminated.

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

      There IS a Problem in include are you Sure you have the best include working

  • @SrivikhilGodavarthi-y4p
    @SrivikhilGodavarthi-y4p 3 หลายเดือนก่อน +1

    It is giving no such file or directory error in include path

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

    thanks for this , i have been trying for a few hour now , and you finally showed me the way

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

      No problem 👍

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

    For latest sfml 2.6.1 i could not find the sfml-graphics-2.dll file. Where can it be located?

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

      Change the dll name to the new dll name see in the folder

  • @ayushk.c8395
    @ayushk.c8395 ปีที่แล้ว +1

    Now there is GCC 13.1.0 MinGW (SEH)-64 -bit download for SFML but i already have installed MinGW GCC 6.3.0-1 for compilation in vs code windows 11 what can i do now to use SFML

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

      For c++ and and sfml use g++ in makefile and in vscode gcc better for c and use version 8.1 it's the best version just install sfml 2.6 from sfml website install mingw version 32bit or 64bit it depends on what you want and follow the steps and it will work

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

    i already have the main.exe file, but i can't open it somehow.. what should i do now?

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

      i think this video is using an older version of sfml and there is a problem i will try to make a new video to setup sfml because i had a simiair problem when uilding the new version

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

    When I compiled the makefile, i got the .o file but no .exe file. I installed mingw so im not sure what the problem is.

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

      same

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

      Just tell the linker to link it into an exe. It's a single command

    • @asterbg600
      @asterbg600 6 หลายเดือนก่อน

      @@Ginger_Hrn And how do we do it?

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

      Sorry i just have exams there IS some changes on the New version of sfml i will try to post a vidéo but not now

    • @nair889
      @nair889 13 วันที่ผ่านมา

      bro, u got it right... you just need to link it

  • @Justizzy94
    @Justizzy94 7 หลายเดือนก่อน +5

    Narh this doesn’t work man you are skipping many important steps

    • @MO-R-70-23
      @MO-R-70-23 7 หลายเดือนก่อน

      Did you figure it out?

    • @ourabig
      @ourabig  5 หลายเดือนก่อน +2

      Sorry i just have exams there IS some changes on the New version of sfml i will try to post a vidéo but not now

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

    'mingw32-make' is not recognized as an internal or external command,
    operable program or batch file.
    whats that mean?

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

      You should have mingw installed

  • @Niyachelowick
    @Niyachelowick 6 หลายเดือนก่อน

    which version of mingw r u using? I'm having some problems.

    • @ourabig
      @ourabig  6 หลายเดือนก่อน +1

      8.0

  • @STG2005
    @STG2005 3 หลายเดือนก่อน

    When I try to run the exe it says that the linking cannot be found, specifically sfml-system-2.dll

    • @ourabig
      @ourabig  3 หลายเดือนก่อน

      You didn't copy thé correct dll next to exe

    • @STG2005
      @STG2005 3 หลายเดือนก่อน

      @@ourabig I don't know what could it be, the dll it's in the folder, here is the full message:
      The procedure entry point ...... could not be located in the dynamic link library sfml-system-2.dll.

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

    I followed all your steps, but in the end I didn't get the .exe file after running the command

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

      Did you install mingw

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

      you can install mingw just seach on youtube how and I can'T help you more without showing the error in you're console

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

      @@ourabig Its already present in my pc

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

      @@shivammishra9308 can you please show your console error after running the compiler

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

      @@ourabig main.o:main.cpp:(.text+0x7c): undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'
      main.o:main.cpp:(.text+0xa2): undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'
      main.o:main.cpp:(.text+0xde): undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'
      main.o:main.cpp:(.text+0x115): undefined reference to `_imp___ZN2sf11CircleShapeC1Efj'
      main.o:main.cpp:(.text+0x126): undefined reference to `_imp___ZN2sf5Color4BlueE'
      main.o:main.cpp:(.text+0x130): undefined reference to `_imp___ZN2sf5Shape12setFillColorERKNS_5ColorE'
      main.o:main.cpp:(.text+0x142): undefined reference to `_imp___ZNK2sf10WindowBase6isOpenEv'
      main.o:main.cpp:(.text+0x162): undefined reference to `_imp___ZN2sf10WindowBase9pollEventERNS_5EventE'
      main.o:main.cpp:(.text+0x182): undefined reference to `_imp___ZN2sf6Window5closeEv'
      main.o:main.cpp:(.text+0x1af): undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'
      main.o:main.cpp:(.text+0x1ca): undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'
      main.o:main.cpp:(.text+0x1dd): undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'
      main.o:main.cpp:(.text+0x1f1): undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
      main.o:main.cpp:(.text+0x203): undefined reference to `_imp___ZN2sf6Window7displayEv'
      main.o:main.cpp:(.text+0x229): undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
      main.o:main.cpp:(.text+0x273): undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
      main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0xa): undefined reference to `_imp___ZTVN2sf11CircleShapeE'
      main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0x17): undefined reference to `_imp___ZTVN2sf11CircleShapeE'
      main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0x2a): undefined reference to `_imp___ZN2sf5ShapeD2Ev'
      collect2.exe: error: ld returned 1 exit status
      MakeFile:7: recipe for target 'link' failed
      mingw32-make: *** [link] Error 1

  • @אסף435
    @אסף435 ปีที่แล้ว +1

    Why didn't create the 2 new files after compiling?

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

      What do you mean?

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

    When I try to enter main.exe into the command prompt nothing happens

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

      that's the same thing happend with me . did u find any solution to this problem? endl

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

      Use cmd Not Powershell If you use Powershell in vscode Terminal do ./main.exe

  • @matcy_
    @matcy_ 6 หลายเดือนก่อน

    Hello, I hope you're doing good. I also get, along with other people, an error concerning graphics-2.dll and window-2.dll. You said it was because of a new version. Could you make a new tutorial ? It would be awesome ! I'll come back to you

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

      Sorry i just have exams there IS some changes on the New version of sfml i will try to post a vidéo but not now

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

    all work but when i try to compile the main.cpp i have this error request "mingw32-make: *** No targets. Stop." but i do all u show in ur video i guess is my mingw need some thing or i do a mistake

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

      It's not detecting you're makefile

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

      but how i need to do to make windows detect my MakeFile ?@@ourabig

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

    Hi i've followed everything but the terminal gives error:
    g++ *.o -o rocketRush -Lsrc/lib -lsfml-graphics -lsfml-window -lsfml-system -lopenal32 -lsfml-audio
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-graphics.a when searching for -lsfml-graphics
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib\libsfml-graphics.a when searching for -lsfml-graphics
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-graphics.a when searching for -lsfml-graphics
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-graphics: No such file or directory
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-graphics.a when searching for -lsfml-graphics
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-window.a when searching for -lsfml-window
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib\libsfml-window.a when searching for -lsfml-window
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-window.a when searching for -lsfml-window
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-window: No such file or directory
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-window.a when searching for -lsfml-window
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-system.a when searching for -lsfml-system
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib\libsfml-system.a when searching for -lsfml-system
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-system.a when searching for -lsfml-system
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-system: No such file or directory
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-system.a when searching for -lsfml-system
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libopenal32.a when searching for -lopenal32
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib\libopenal32.a when searching for -lopenal32
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libopenal32.a when searching for -lopenal32
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopenal32: No such file or directory
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libopenal32.a when searching for -lopenal32
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-audio.a when searching for -lsfml-audio
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib\libsfml-audio.a when searching for -lsfml-audio
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-audio.a when searching for -lsfml-audio
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-audio: No such file or directory
    C:/Users/maria/OneDrive/Documenti/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible src/lib/libsfml-audio.a when searching for -lsfml-audio
    collect2.exe: error: ld returned 1 exit status
    mingw32-make: *** [Makefile:7: link] Error 1
    Apparently it can't find the dll files? please help :(
    I have the mingw of the version sfml tells me to get
    the directory disposition is like yours

  • @person10103
    @person10103 4 หลายเดือนก่อน

    i'm getting this error:
    main.cpp:1:10: fatal error: SFML/Graphics.hpp: No such file or directory
    1 | #include
    | ^~~~~~~~~~~~~~~~~~~
    compilation terminated.

    • @ourabig
      @ourabig  4 หลายเดือนก่อน

      You have a linking error did you setup the lib folder good

  • @ourabig
    @ourabig  ปีที่แล้ว +9

    Hope you like

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

      when I compiled the code at 4:06 , the 2 new files didnt appear on my screen and got the error:
      mingw32-make: *** No targets. Stop.
      How do I fix this?

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

    I get the error that kernel32 cannot be found. Maybe you know whats wrong

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

      This is an os problem maybe in linux not the library

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

    what is your vs code theme i really like it

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

      It's the atom editor theme

  • @swapansaha2368
    @swapansaha2368 6 หลายเดือนก่อน

    Bro when im running the main.exe nothing happens pls help😢😢

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

      Sorry i just have exams there IS some changes on the New version of sfml i will try to post a vidéo but not now

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

    when i enter mingw32-make -f MakeFile
    i get an error "cc1plus.exe: fatal error: coding/*.cpp: No such file or directory"
    how do you fix it

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

      Create the folder with the cpp files in it

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

    this is why I dont like c++ always errors never solution even tho im following the steps

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

      What is the error

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

      @@ourabig I fixed it lol, it was that I had mingw32 installed and downloaded the sfml 64bit version so kept getting errors on the linking part.

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

      @@applejuice5785 oh ok sorry I am late because 6 hours ago was 3 am for me I was sleeping

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

      @@ourabig haha no worries I learned a lot trying to fix the stuff and your video was clear but maybe it's a tip ik its a little dumb but for other to help so they make sure it's 32bit and not 64 like me haha

  • @visitor_t-w3p
    @visitor_t-w3p 6 หลายเดือนก่อน +1

    nice... very helpful

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

      Glad it helped

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

    Hello, does anyone have the code for the terminal at minute 4:00?

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

      mingw32-make -f MakeFile , but if the name of makefile is Makefile not MakeFile just use mingw32-make

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

      @@ourabig Tetris.cpp:3:10: fatal error: SFML/Graphics.hpp: No such file or directory
      3 | #include
      | ^~~~~~~~~~~~~~~~~~~
      compilation terminated.
      mingw32-make: *** [Makefile:4: compile] Error 1
      it's weird, but again I get the same error in terminal

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

      @@ndeutsch did you add the include folder to your project

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

      @@ourabig yes I did

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

      @@ndeutsch weird can you put your project on GitHub and send me the link

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

    Thank you very much!

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

      No worries!

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

    What is music?

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

      I don't know I just wrote no copyright medieval music in TH-cam and in the first playlist that pop up

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

    Really thank you

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

      Most welcome

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

    Plz no music

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

    you are way too quiet

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

      Sorry i have exams i cant post vidéos or answer i have bac exam it's the final high school exam in morocco

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

    BRO SPEAK UP

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

      This Video IS almost 2 years old i didn't have a mic

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

    I got these error when trying to use MakeFile in Terminal:
    main.o:main.cpp:(.text+0x115): undefined reference to `_imp___ZN2sf11CircleShapeC1Efj'
    main.o:main.cpp:(.text+0x126): undefined reference to `_imp___ZN2sf5Color4BlueE'main.o:main.cpp:(.text+0x130): undefined reference to `_imp___ZN2sf5Shape12setFillColorERKNS_5ColorE'
    main.o:main.cpp:(.text+0x142): undefined reference to `_imp___ZNK2sf10WindowBase6isOpenEv'
    main.o:main.cpp:(.text+0x162): undefined reference to `_imp___ZN2sf10WindowBase9pollEventERNS_5EventE'
    main.o:main.cpp:(.text+0x182): undefined reference to `_imp___ZN2sf6Window5closeEv'
    main.o:main.cpp:(.text+0x1af): undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'
    main.o:main.cpp:(.text+0x1ca): undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'
    main.o:main.cpp:(.text+0x1dd): undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'
    main.o:main.cpp:(.text+0x1f1): undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
    main.o:main.cpp:(.text+0x203): undefined reference to `_imp___ZN2sf6Window7displayEv'
    main.o:main.cpp:(.text+0x229): undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
    main.o:main.cpp:(.text+0x273): undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'
    main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0xa): undefined reference to `_imp___ZTVN2sf11CircleShapeE'
    main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0x17):
    undefined reference to `_imp___ZTVN2sf11CircleShapeE'
    main.o:main.cpp:(.text$_ZN2sf11CircleShapeD1Ev[__ZN2sf11CircleShapeD1Ev]+0x2a):
    undefined reference to `_imp___ZN2sf5ShapeD2Ev'
    collect2.exe: error: ld returned 1 exit status
    MakeFile:7: recipe for target 'link' failed
    mingw32-make: *** [link] Error 1

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

      OK, I find out the problem I was trying to apply this for the 64 version but now I have a new problem, using main.exe in terminal don't give any respond.

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

      did you got the fix??? im facing the same issue
      @@starplatinum5311

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

      same bro i have nothing response when i enter main.exe plese bro solve my eror@@starplatinum5311

  • @QuickThree-ih7tm
    @QuickThree-ih7tm 9 หลายเดือนก่อน

    I did follow the steps with both 2.5.1 version and 2.6.1 version, but the error of SFML graphics still appear? What can I possibly be doing wrong?

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

      i think this video is using an older version of sfml and there is a problem i will try to make a new video to setup sfml because i had a simiair problem when uilding the new version

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

    when i run main.exe it does nothing
    with the error: "SFML/Graphics.hpp: No such file or directory"

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

      Did you add the code

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

      @@ourabig now i got the error SFML/Graphics.hpp: No such file or directory (and yes i did add the code)

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

      bro you solve this problem so please give any idea my problem is same@@RealSkullwild

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

      @jeremiassoto3801 i think this video is using an older version of sfml and there is a problem i will try to make a new video to setup sfml because i had a simiair problem when uilding the new version

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

    I followed all your steps, but in the end I didn't get the .exe file after running the command

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

      i think this video is using an older version of sfml and there is a problem i will try to make a new video to setup sfml because i had a simiair problem when uilding the new version