Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: MAC OS X Lion and SFML 1.6  (Read 1945 times)

0 Members and 1 Guest are viewing this topic.

r41nb0ww4rr10r

  • Newbie
  • *
  • Posts: 2
    • View Profile
MAC OS X Lion and SFML 1.6
« on: August 12, 2011, 05:04:19 pm »
Hi!

I tried using SFML with Code::Blocks now I got some issues.

This is my Code:

Code: [Select]


#include <SFML/Graphics.hpp>

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");

    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


I get those Errors when i run my built Application:

Code: [Select]
partyhost:~ noah$ /Users/noah/Desktop/vektor/bin/Release/vektor
dyld: Library not loaded: @executable_path/../Frameworks/sndfile.framework/Versions/A/sndfile
  Referenced from: /Library/Frameworks/sfml-audio.framework/Versions/A/sfml-audio
  Reason: image not found
Trace/BPT trap: 5
partyhost:~ noah$


Anyone got some help?
Thanks![/code]

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
MAC OS X Lion and SFML 1.6
« Reply #1 on: August 12, 2011, 06:17:31 pm »
A little search on the forum will give you the answer.
Want to play movies in your SFML application? Check out sfeMovie!

r41nb0ww4rr10r

  • Newbie
  • *
  • Posts: 2
    • View Profile
MAC OS X Lion and SFML 1.6
« Reply #2 on: August 12, 2011, 07:45:53 pm »
that helps me much! nice! /irony off

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Want to play movies in your SFML application? Check out sfeMovie!

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
MAC OS X Lion and SFML 1.6
« Reply #4 on: August 12, 2011, 07:51:42 pm »
Ceylo is right : with the right search query there are only two results. The first is your exact message. The other one is your answer.

Please follow the rules stated here ; it'll help everyone. Thanks.
SFML / OS X developer