1
C / Re: Building CSFML 2.0 on Windows
« on: November 06, 2012, 11:35:32 pm »
Thanks for the clarification, I've edited my original post
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.
QuoteAbove this line add the following:No! This is exactly what the find_package function does, it finds everything for you automatically.
set(SFML_ROOT "C:/Program Files (x86)/SFML")
set(SFML_SYSTEM_LIBRARY_RELEASE "${SFML_ROOT}/lib/sfml-system.lib")
[...]
If something needed to be added to the CSFML build files, it would already been done don't you think?
They work out of the box, if you need to change something then you're wrong.
drawRect = Shape.Rectangle(rect.Left, rect.Top, rect.Right, rect.Bottom, Color.Green)
renderWindow.Draw(drawRect)
Quote from: "nonexistent"So unless I am overlooking something I definitely do not have a conflict with an older PySFML.
I suggested a conflict with an older sfml, not an older pysfml. What does ls /usr/lib/libsfml* output ?
Quote from: "Laurent"Remi, did you bind sf::Sound::SetRelativeToListener? It is a new function (maybe even the only one!) in SFML 1.5.
Yes, and there is also sf::Sound::IsRelativeToListener, see http://sfml.svn.sourceforge.net/viewvc/sfml/tags/1.5/python/src/Sound.cpp?r1=1056&r2=1064
So nonexistent you probably have an older version of sfml installed somewhere.
Make sure you have well installed the sfml librairies, with the good version.
from PySFML import sf
window = sf.RenderWindow(sf.VideoMode(800, 600), "Floating")
text = sf.String("Hello SFML")
running = True
while running:
event = sf.Event()
while window.GetEvent(event):
if event.Type == sf.Event.Closed:
running = False
window.Clear(sf.Color.Black)
window.Draw(text)
window.Display()