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

Show Posts

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.


Topics - shahn

Pages: [1]
1
Window / getting game pad events without showing a window
« on: November 19, 2010, 04:35:23 pm »
I want to use SFML for platform-independent gamepad support, but I already have a working GUI using Qt. I looked at the Qt sample in SFML-1.6, which seems to be very close to what I want.

Question 1: Does this still work with SFML-2 from svn? More specifically: Is SFML's WindowHandle type still compatible with Qt's WId type? On all supported platforms? (This is at least how I understand the usage in the 1.6 sample.)

Question 2: Is this possible at all? I think, I would need to create a Window-object, that does not open an actual window on the screen, nor creates an openGL-context.

Any insight appreciated.

2
C / CSFML and cmake configuration problem
« on: November 18, 2010, 09:31:49 pm »
Hi!

I just saw, that sfml switched to cmake in the version 2 branch. That's great! I have a problem building CSFML, though: When trying to do the cmake configuration I get:

Code: [Select]
#:~/src/sfml2/bindings/c/build$ cmake ..
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SFML_AUDIO_LIBRARY_DEBUG
    linked by target "csfml-audio" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Audio
SFML_GRAPHICS_LIBRARY_DEBUG
    linked by target "csfml-graphics" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Graphics
SFML_NETWORK_LIBRARY_DEBUG
    linked by target "csfml-network" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Network
SFML_SYSTEM_LIBRARY_DEBUG
    linked by target "csfml-system" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/System
    linked by target "csfml-window" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Window
    linked by target "csfml-network" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Network
    linked by target "csfml-graphics" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Graphics
    linked by target "csfml-audio" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Audio
SFML_WINDOW_LIBRARY_DEBUG
    linked by target "csfml-window" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Window
    linked by target "csfml-graphics" in directory /home/shahn/src/sfml2/bindings/c/src/SFML/Graphics

-- Configuring incomplete, errors occurred!


It seems to work, when you installed both the release and the debug version of SFML. If you just want a release build, it fails like described.

Using Ubuntu 10.10, x86_64, branches/sfml2 revision 1671

(btw: is this the right place for questions like this? I didn't find an active bug tracker.)

3
General / Compiling sfml2 with mingw (without Codeblocks)
« on: April 13, 2010, 01:36:03 pm »
Hi!

I am trying to compile the sfml2 svn snapshot with mingw (without Codeblocks on Windows XP). When invoking "make", I get the following error:

Code: [Select]

../../src/SFML/System/Thread.o:C:\msys\1.0\home\Administrator\nikki\playground\sfml\sfml2\build\make/../../src/SFML/System/Thread.cpp:97: undefined reference to `sf::priv::ThreadImpl::~ThreadImpl()'


(and the same for line 85)

My guess is, that this has something to do with the platform-dependent implementation of threads (although this might just be a wild guess).

So my question is this: Is it supported to compile sfml like this? AKA Is this just a temporary failure in svn that will be fixed?

Or should I use Codeblocks to compile sfml2? (From what I understand, using Codeblocks (with the mingw-compiler) is "the SFML-way" (tm) to compile things on windows. So I guess this problem doesn't exist when using Codeblocks.

Thanks for any advice.

4
Audio / delay in Sound.Play() (Windows XP)
« on: April 09, 2010, 05:57:55 pm »
Hi!

I am using sfml-audio to play some sounds and there seems to be a delay between the call to Sound.Play() and the actual playing of the sound. My estimate is, that the delay is ~250 ms long (but that's of course hard to measure). This problem shows in Windows XP, on a linux system the same code plays sounds without the delay.

When I try to play the sound looped (as suggested in another thread for a similar problem) there is no gap.

Is this a problem with sfml, OpenAL or something else?

Any help appreciated.

Sönke

System info:
Windows XP
SFML-1.6
gcc-4.4.0
sound format: .wav

Pages: [1]
anything