1
General / MAC OS X Lion and SFML 1.6
« on: August 12, 2011, 07:45:53 pm »
that helps me much! nice! /irony off
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#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;
}
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$