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.


Messages - jkalmeij

Pages: [1]
1
General / Codeblocks first steps
« on: September 01, 2011, 10:54:30 pm »
To qoute Laurent from this recent thread:
Quote
Don't use "SFML project", it's buggy. Create an empty project and follow the tutorial.

I had some troubles myself with the tutorial. You need to make sure you read everything and follow every step.
If you really can't figure it out, you could also try this tutorial here.

2
General / Unable to Locate Directories
« on: August 22, 2011, 08:13:43 pm »
Try the following command and see if no sfml libraries are found:
Code: [Select]
ldconfig -p | grep sfml

If this is the case, you have to set your library include path.
How this can be done: http://ubuntuforums.org/showthread.php?t=496553

3
General / taskbar slow
« on: August 22, 2011, 05:03:02 pm »
Unable to reproduce problem using g++ as compiler and linking dynamically.
Ran on Ubuntu with an ATI graphicscard.

Did change the code to #include <SFML/Graphics.hpp>, and added a App.Display(); into the loop.

Probably not that helpful to the opening poster, but maybe to those trying to find a cause.

4
General / Passing "App" to my class's constructor? (solved!)
« on: August 21, 2011, 03:05:27 pm »
Your error happens to me sometimes when I'm typing code on auto-mode.

in player.cpp:
Code: [Select]
 sf::Sprite self(getImg);


This declares a local sprite, named self.

Now I am guessing you have a member of your player class called self declared somewhere (Why else would you call App.Draw(self)?). The compiler error hints that the type of this class is a sf::Texture too (while it's probably meant to be a sf::Sprite?).

The code is too incomplete to come up with a solution. But just remember that to call a non-default constructor of a member variable you have to call it in the initialization list.
You can also just use the SetTexture function that is provided.

5
General / Problem using SFML 2.0 Ubuntu VirtualBox (black screen)
« on: August 10, 2011, 02:39:12 pm »
I didn't do anything special but it 'works' now.

I always run the virtualbox in fullscreen mode. Running in any other mode will cause the display of both OpenGL and SFML programs to work properly... dang

Perhaps a trivial reply but just throwing this out there for those with similar problems.

6
General / Problem using SFML 2.0 Ubuntu VirtualBox (black screen)
« on: August 10, 2011, 12:58:48 pm »
Quote
Have you tried the SFML examples?

Yes. The exact same code works under Windows but not under Ubuntu.

Quote
Are your drivers ok?

I was under the impression that I only had to install VirtualBox Guest Additions (more later*).

Quote
Have you tried to run other OpenGL apps (like glxgears)?

This is a good one. glxgears also gives me a black screen only (together with some terminal output; ~1000 FPS).
* After this I installed the ATI drivers: fglrx. Now I actually get segfaults when trying to execute glxgears, flgrxinfo, glxinfo (using gdb these trace back to fglrx, so I tried another fresh install, but no luck.).

I read conflicting stories about how OpenGL is / is not supported by VirtualBox. People report success when running a Windows guest in Linux host. My setup is the other way around (Windows host, Linux guest).

I have 3D acceleration enabled for the guest, together with 128MB graphical memory.

I guess the bottomline is, if anyone has a setup similar to mine and got it to work, could you please tell me what you did to achieve this?
Or if you know for a fact that it's not possible, please do tell :). In this case I will resort to installing Ubuntu alongside Windows.

7
General / Problem using SFML 2.0 Ubuntu VirtualBox (black screen)
« on: August 09, 2011, 10:59:19 pm »
Hey,
I built the latest version of SFML 2.0 on both Windows 7 and Ubuntu.

On Windows 7 I am able to properly run SFML programs. Linking is done dynamically.

On Ubuntu (virtual box; host Windows 7) I have a problem. The RenderWindow will remain black, no matter what I draw.
I tried both linking dynamically and statically, but got the same result.

I have an ATI videocard but it works on the Windows 7 host, and I read this was fixed in 2.0.

Any suggestions what I can do?

8
Graphics / Ball movement and bouncing in the Pong example
« on: August 09, 2011, 06:00:52 pm »
A full circle is 2 * PI radians.

With this knowledge, draw a circle, take an arbitrary angle and play around with it.

See also: Unit Circle

Pages: [1]
anything