Error with installing SMFL for Xcode

  • Mewtwo
    Likes 0

    Problem Description

    Hello, I wanted to install SMFL for my Xcode. I watched the video tutorial called “SFML 2.4.x [SETUP] Xcode on Mac” and get the probrem that i cant fix: 

    dyld: Library not loaded: @rpath/sfml-audio.framework/Versions/2.4.1/sfml-audio

      Referenced from: /Users/kuzminandrej/Library/Developer/Xcode/DerivedData/SFML_TEST-gtsiswqumentpgewonjwzjptvixx/Build/Products/Debug/SFML TEST

      Reason: image not found

     

  • Sonar Systems admin
    Likes 0

    What code are you using?

  • Mewtwo
    Likes 0

    I use c++

  • Sonar Systems admin
    Likes 0

    I mean the actual code itself not the langauge.

  • Mewtwo
    Likes 0

    My bad. English is not my main langauge.

    #include<SFML/Graphics.hpp>

     

    int main()

    {

        sf::RenderWindow window(sf::VideoMode( 640,480 ), "XOCPODI ONO RABOTAET");

        

        while (window.isOpen( ))

        {

            sf::Event event;

            

            while(window.pollEvent( event ))

            {

                switch (event.type)

                {

                    case sf::Event::Closed:

                        window.close( );

                        break;

                }

            }

            

            window.clear( );

            window.display( );

        }

    }

  • Sonar Systems admin
    Likes 0

    What version are you using?

  • Mewtwo
    Likes 0

    Im sorry, but version of what? If you mean versian of sfml I tried 2.4.2 and 2.4.1

  • Sonar Systems admin
    Likes 0

    yes of SFML, try the process again as it seems the libraries havent been linked correctly.

  • Mewtwo
    Likes 0

    I have tried many times but it didn’t help. Not only i have this problem. I have checke’d commends from this video guid and many people had this trouble. I have tried to search on the Net for solition but found nothing.

  • Sonar Systems admin
    Likes 0

    Can you show me a video on you setting it up from scratch, it’s probably a small problem.

  • Luk158
    Likes 0

    Dear Sonar Systems,

    I had the same Problem. I after a few attemps I started the whole setup again, with just the “Hello World” code that apple provides.
     

    I use the latest versions for both SFML (2.5.1) and XCode (10.1).
     

  • Sonar Systems admin
    Likes 0

    Apple provides?

  • Luk158
    Likes 0

    Just the “Hello World” that apperars when you start a new project.

  • Sonar Systems admin
    Likes 0

    Apple doesn’t provide anything

Login to reply