SFML - Setup on Dev c++

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 134

  • @k..
    @k.. 4 года назад +92

    -lsfml-audio
    -lsfml-graphics
    -lsfml-system
    -lsfml-window

    • @mr.pelmeshka2142
      @mr.pelmeshka2142 4 года назад +4

      Пиздец, я два часа мучался, а надо было всего лишь не копипастить, а самому написать 'L', блять, нахуй.

    • @k..
      @k.. 4 года назад +2

      @@mr.pelmeshka2142 :)

    • @DanielOliveira00
      @DanielOliveira00 4 года назад +2

      Obrigadão!

    • @k..
      @k.. 4 года назад +1

      @@DanielOliveira00 Нема за що Ж)

    • @rrd001
      @rrd001 4 года назад +2

      it help a lot

  • @GALUHBUDIMARTHANINGRUM
    @GALUHBUDIMARTHANINGRUM 6 месяцев назад +1

    guys be careful about the parameter , notice that i capital is the same as L uncapitalized , so before smfl it should uncapitalized L (l) not capitalized i(I)
    other than that this tutorial works great

  • @samghasemi488
    @samghasemi488 4 года назад +3

    I searched everywhere for it and finally i found it Thanx so much its very useful

    • @Developer_exc
      @Developer_exc  4 года назад +1

      You can say thanks by subscribing the channel.😅😊

    • @samghasemi488
      @samghasemi488 4 года назад

      @@Developer_exc 👍

  • @vishalkhandate2464
    @vishalkhandate2464 3 года назад +14

    -lsfml-audio
    -lsfml-graphics
    -lsfml-system
    -lsfml-window
    This is correct one. I was confused why my code is not working then i realised that small "L" and capital " i " look same then i correct is to -l(This is small " L ")sfml-audio

  • @houcinechammakh4789
    @houcinechammakh4789 3 года назад +6

    Yo bro you are the best I have been struggling with this two days to now but you saved me man thank you very much

  • @bernardseno2535
    @bernardseno2535 2 года назад +6

    *TO ANYONE who encountered ERROR 25(1 exit returned). Make sure that your sfml extracted file is located on your C drive.
    *the letters are SMALL letter "L"
    -lsfml-audio
    -lsfml-graphics
    -lsfml-system
    -lsfml-window
    *SAMPLE CODE
    #include
    int main()
    {
    sf::RenderWindow window(sf::VideoMode(200,200), "SFML Works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while(window.isOpen()){
    sf::Event event;
    while(window.pollEvent(event)){
    if(event.type == sf::Event::Closed)
    window.close();
    }

    window.clear();
    window.draw(shape);
    window.display();

    }

    return 0;
    }

  • @koicc1192
    @koicc1192 5 месяцев назад +1

    >Doesn't talks
    >Explains in the most simple and undertandable way
    >Give the links on the description
    >Leaves
    The peak tutorial

  • @dirt9081
    @dirt9081 Год назад

    thank you sm!! i was so irritated by smfl compilation on ubuntu, this tutorial was so easy to follow and helps me so much

  • @justlaz1444
    @justlaz1444 3 года назад +4

    thats what im getting:
    C:\Users\laz2\Documents\proj\Untitled2.o Untitled2.cpp:(.text+0x11b): undefined reference to `__imp__ZN2sf6StringC1EPKcRKSt6locale'
    .................
    and more about 30 lines like this

    • @anggagemilang7956
      @anggagemilang7956 3 года назад

      helloo, did your resolve this error? i have the same problem :(

  • @malnormalulo-_-
    @malnormalulo-_- Год назад

    KURWA MAĆ, The best video in the world!

  • @AbdullahMIQ
    @AbdullahMIQ 4 месяца назад +1

    Hello! Thanks
    And there's a major problem,i did setup everything like you did there's no problem with that but,everytime i execute the project it goes with a white screen then closes by itself
    Do you have a solution?

  • @moonbatch-team9684
    @moonbatch-team9684 4 года назад +1

    It's nice working, my problem solved thanks Sir.

  • @frezin308
    @frezin308 3 года назад

    Thank you...worked on the first attempt!

  • @fstevanovic7
    @fstevanovic7 4 года назад +1

    IDE GAS BRALE
    Translate: GOES GAS MY BRO

  • @baonguyennuwu3176
    @baonguyennuwu3176 11 месяцев назад

    tks my man

  • @fdevstudio5692
    @fdevstudio5692 3 года назад

    Thanks bro, but I do something a bit different from this video, instead of project option, I use compiler option, and it still works. Thanks for the tutorial.

  • @faefaf
    @faefaf 3 дня назад

    how do i link them statically?

  • @karai5082
    @karai5082 4 года назад +4

    whenever I try to compile it it says
    C:\Users\User\Documents\c++\main.cpp [Error] SFML/Graphics.hpp: No such file or directory

    • @MokarromHossain
      @MokarromHossain 4 года назад

      well i am not sure but this means that the "SFML/Graphics.hpp" should be in the same folder your cpp file is in .. again i am not sure :)

    • @magicape1258
      @magicape1258 2 года назад

      This happens when you make multiple projects. The previous project already has files with the same name ex.(sfml-window.dll). When you create another project, the files have the same name. it will add a 2 to the end. ex.(sfml-window-2.dll). Dev cpp doesn't recognize this, and so it will say you don't have the correct files. I don't know how to fix this.

  • @MaryamZehra-w8s
    @MaryamZehra-w8s Месяц назад

    about the last step in which you have to copy the files from bin...is it mandatory? cause I am not having any folder like that, the version of sfml I used is 2.6.1

    • @MaryamZehra-w8s
      @MaryamZehra-w8s Месяц назад

      kindly reply asap, I have a project to submit😭

  • @dimasaldisallam5720
    @dimasaldisallam5720 4 года назад +3

    I was try, but makefile.win error. The poin was error in :
    $(BIN): $(OBJ)
    $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
    , what is the solutions?

    • @kunalkulkarni7913
      @kunalkulkarni7913 4 года назад

      yeah same please reply??

    • @saadmalik8930
      @saadmalik8930 4 года назад +1

      $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
      Bro I am facing the same error ... Can you resolve this or not ?

    • @huberdchannel3403
      @huberdchannel3403 4 года назад

      Hi, copying the bin directory with dlls (not just dll files) to your program location should work

    • @danyfour7754
      @danyfour7754 3 года назад

      same ,____,

    • @despiado
      @despiado 3 года назад

      @@huberdchannel3403 no it didnt work

  • @confusionprice1422
    @confusionprice1422 Год назад

    I did everything, but when I run the code it doesn't make the window. It just compiles and finishes with no errors and does nothing.
    Edit-
    It works now

  • @jogosProgramEletronica
    @jogosProgramEletronica 2 года назад

    it worked very well, there is no way to give a path to the dlls?

  • @Aldemir86
    @Aldemir86 4 года назад

    Amazing...works perfectly...thanks.

  • @balochilarki75
    @balochilarki75 Месяц назад

    Mera phr bh error arha h, SFML/Graphics.hpp:No such file or directory,ab kia krun ? 😢

  • @danielulett3617
    @danielulett3617 3 года назад +1

    can someone help me please for some reason i am getting an error

  • @miansherry6453
    @miansherry6453 4 года назад +1

    Thank you! Sir.

  • @laibaniazi388
    @laibaniazi388 10 месяцев назад

    Still ... it's not working 😭, what should i do

  • @giovaniguidini6143
    @giovaniguidini6143 3 года назад +3

    Um monstro !!!!!!! funcionou direitinho

  • @daviviegas280
    @daviviegas280 3 года назад +1

    i did exactly the same thing in the video, but i got multiple errors, i have no idea why
    C:\Users\Cliente\Desktop\Projeto\main.o In function `main':
    line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf6StringC1EPKcRKSt6locale'
    line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf9VideoModeC1Ejjj'
    line 5 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'
    line 6 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf11CircleShapeC1Efy'
    line 7 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf5Color5GreenE'
    line 7 C:\Users\Cliente\Desktop\Projeto\main.cpp undefined reference to `__imp__ZN2sf5Shape12setFillColorERKNS_5ColorE'
    [...]
    C:\Users\Cliente\Desktop\Projeto\main.o In function `sf::CircleShape::~CircleShape()':
    C:\Users\Cliente\Desktop\Projeto\collect2.exe [Error] ld returned 1 exit status
    25 C:\Users\Cliente\Desktop\Projeto\Makefile.win recipe for target 'testeSFML.exe' failed

  • @tysonalii
    @tysonalii 4 года назад +3

    Hi I'm using Windows 8.1, where should I put the file instead of "local disc"

    • @Developer_exc
      @Developer_exc  4 года назад

      Anywhere ... It will work unless you specify it's location in IDE

    • @tysonalii
      @tysonalii 4 года назад

      @@Developer_excOk,Thanks🙏🏻🙏🏿🙏🏻

  • @catalingrigoriev
    @catalingrigoriev 4 года назад

    thanks you so much ! THANKS

  • @-DuongHoaiuc-A
    @-DuongHoaiuc-A 2 года назад

    how can you open terminal during the program running ?

    • @-DuongHoaiuc-A
      @-DuongHoaiuc-A 2 года назад

      i see some other coders can do it but i cant do it on dev c

  • @codeityourself7481
    @codeityourself7481 4 года назад

    WHAT YOU HAVE WRITTEN -isfml- or lsfmi

  • @Jayjay-uv2nc
    @Jayjay-uv2nc 4 месяца назад

    This will never work for me

  • @ovutai363
    @ovutai363 4 года назад

    thanks, it worked!

  • @apenas_um-usuario
    @apenas_um-usuario Месяц назад

    Mn eu tentei fazer isso no dev c ++ mais recente e nao pego vc pode me ajudar ?

  • @gencaybilir9417
    @gencaybilir9417 3 года назад

    Can ı take example code?

  • @ishakrikimaru4655
    @ishakrikimaru4655 2 года назад

    How on earth did you do that we never work out with us how did you do it

  • @mr.orange_kh4991
    @mr.orange_kh4991 4 года назад

    I can't do my Dev said error in line 1: ​​​​​​​ #include

    • @justlaz1444
      @justlaz1444 3 года назад

      #include text is case sensitive

  • @f1-coldlaps460
    @f1-coldlaps460 3 года назад

    i have an error at the Makefile.win at line 25.. and so it doesnt run, any suggestions?

  • @KanikaRaheja
    @KanikaRaheja 4 года назад

    an error occurred opening Makefile.win .....and it says cannot find -lsfml-windows

    • @KanikaRaheja
      @KanikaRaheja 4 года назад

      It is working now....I wrote -lsfml-windows instead of -lsfml-window

  • @sadhveeshinde8624
    @sadhveeshinde8624 4 года назад +1

    my sfml window just pops up and disappears can anyone help?

    • @Developer_exc
      @Developer_exc  4 года назад +1

      You might be using wrong ver. ...

    • @hyperbhavik
      @hyperbhavik 3 года назад +1

      you might not be using infinite while loop

  • @валерийлебедев-й8ц
    @валерийлебедев-й8ц 2 года назад

    спасибо!

  • @somebody-vo7zj
    @somebody-vo7zj 3 года назад

    gracias por el video :)

  • @namkhanhnguyen3091
    @namkhanhnguyen3091 2 года назад

    thank you

  • @mistermmk9169
    @mistermmk9169 4 года назад

    ok bro I have done this thax i fixed that

  • @ZGFuaWVsIGFidWxhc2h2aWxp
    @ZGFuaWVsIGFidWxhc2h2aWxp 2 года назад

    It don`t work

  • @TheOnlineScrub
    @TheOnlineScrub 4 года назад

    Any reason why you said to use this specific version of SFML?

    • @Developer_exc
      @Developer_exc  4 года назад

      Because Dev c++(latest ver.) uses the same version of compiler suite.

    • @TheOnlineScrub
      @TheOnlineScrub 4 года назад

      @@Developer_exc ah, okay. Thank you so much for this tutorial, I definitely wouldn't have figured this out on my own

  • @MusicWorld-xz4qe
    @MusicWorld-xz4qe 2 года назад

    Thanks bro

  • @DungPham-vp4uj
    @DungPham-vp4uj 10 месяцев назад

    thank bro

  • @paulo0651
    @paulo0651 3 года назад +1

    Hey, can you do a tutorial of how to export the projects made in Sfml? The thing is that when I execute the .exe that is made in the project, I get this error that says "the code execution cannot proceed because (some libraries) are not found".

    • @absolutebeginner6365
      @absolutebeginner6365 3 года назад

      yes i get this problem but i clear it 😄

    • @paulo0651
      @paulo0651 3 года назад

      @@absolutebeginner6365 at least before I could use SFML. I don’t know what happened, but now I just can’t, and it’s frustrating

    • @mirthun1012
      @mirthun1012 3 года назад

      @@paulo0651 Don't worry!! Are you clear it now? and also I am Absolute Beginner i mean, its my second account 😅. Leave it, It doesn't matter.
      Just tell me one thing, are you clear that problem or not?

    • @paulo0651
      @paulo0651 3 года назад

      @@mirthun1012 No, and don't worry. It's a long story. Basically now I just can't use it due to some errors. But thanks for wanting to help anyways. 👍

    • @absolutebeginner6365
      @absolutebeginner6365 3 года назад

      @@paulo0651 what problem you get?
      I mean, what error it outs?

  • @Fjwone
    @Fjwone 2 года назад

    Спасибо

  • @khalidbabu5456
    @khalidbabu5456 3 года назад

    Thanks

  • @yashwani5614
    @yashwani5614 4 года назад

    can you plz share the trial code

    • @Developer_exc
      @Developer_exc  4 года назад

      www.sfml-dev.org/tutorials/2.5/start-vc.php

  • @nour.eddineberrami3446
    @nour.eddineberrami3446 4 года назад

    1 29 C:\Users\Acer\Desktop\programation\main.cpp [Error] SFML/Graphics.hpp: No such file or directory

    • @LUArt-bv4nk
      @LUArt-bv4nk 4 года назад

      If you already haven’t, make sure that you have set the include folder to the folder which contains the folder SFML.

  • @vibecheck4121
    @vibecheck4121 4 года назад

    whats the code that u used at the end i want to verify if mine works too

    • @Developer_exc
      @Developer_exc  4 года назад

      #include int main() { sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!"); sf::CircleShape shape(100.f); shape.setFillColor(sf::Color::Green); while (window.isOpen()) { sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close(); } window.clear(); window.draw(shape); window.display(); } return 0; }

    • @vibecheck4121
      @vibecheck4121 4 года назад +1

      @@Developer_exc Thanks! Actually it works :D thank you

  • @rahulexc
    @rahulexc 4 года назад

    I am a gamer