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 - christoph

Pages: [1] 2 3 ... 7
1
General / Patch for gcc-4.6
« on: May 17, 2011, 12:42:35 am »
Hi!

one of my colleagues at Debian pkg-games wrote a patch for building SFML with gcc-4.6:

Code: [Select]

From: Evgeni Golov <evgeni@debian.org>
Subject: [PATCH] debian/gcc-4.6

Properly link with GCC 4.6.
#include <cstddef> everywhere.
Closes: #625031

Signed-off-by: Evgeni Golov <evgeni@debian.org>

---
 include/SFML/Audio/Music.hpp           |    1 +
 include/SFML/Audio/Sound.hpp           |    1 +
 include/SFML/Audio/SoundBuffer.hpp     |    1 +
 include/SFML/Graphics/PostFX.hpp       |    1 +
 include/SFML/Graphics/RenderWindow.hpp |    1 +
 include/SFML/Graphics/Sprite.hpp       |    1 +
 include/SFML/Graphics/String.hpp       |    1 +
 include/SFML/System/ResourcePtr.inl    |    1 +
 src/SFML/Graphics/Font.cpp             |    1 +
 src/SFML/Graphics/Image.cpp            |    1 +
 10 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/include/SFML/Audio/Music.hpp b/include/SFML/Audio/Music.hpp
index 0b8f70d..3320676 100755
--- a/include/SFML/Audio/Music.hpp
+++ b/include/SFML/Audio/Music.hpp
@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/Audio/SoundStream.hpp>
 #include <string>
 #include <vector>
diff --git a/include/SFML/Audio/Sound.hpp b/include/SFML/Audio/Sound.hpp
index 7cb8002..5a46481 100755
--- a/include/SFML/Audio/Sound.hpp
+++ b/include/SFML/Audio/Sound.hpp
@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/System/Resource.hpp>
 #include <SFML/System/Vector3.hpp>
 #include <SFML/Audio/AudioResource.hpp>
diff --git a/include/SFML/Audio/SoundBuffer.hpp b/include/SFML/Audio/SoundBuffer.hpp
index 023e5aa..2db29ad 100755
--- a/include/SFML/Audio/SoundBuffer.hpp
+++ b/include/SFML/Audio/SoundBuffer.hpp
@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/System/Resource.hpp>
 #include <SFML/Audio/AudioResource.hpp>
 #include <string>
diff --git a/include/SFML/Graphics/PostFX.hpp b/include/SFML/Graphics/PostFX.hpp
index c875377..be2200a 100755
--- a/include/SFML/Graphics/PostFX.hpp
+++ b/include/SFML/Graphics/PostFX.hpp
@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/Graphics/Drawable.hpp>
 #include <SFML/Graphics/Image.hpp>
 #include <istream>
diff --git a/include/SFML/Graphics/RenderWindow.hpp b/include/SFML/Graphics/RenderWindow.hpp
index 088e368..b2154cc 100755
--- a/include/SFML/Graphics/RenderWindow.hpp
+++ b/include/SFML/Graphics/RenderWindow.hpp
@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/Graphics/Image.hpp>
 #include <SFML/Graphics/RenderTarget.hpp>
 #include <SFML/Window/Window.hpp>
diff --git a/include/SFML/Graphics/Sprite.hpp b/include/SFML/Graphics/Sprite.hpp
index 9d47bb4..deb6bab 100755
--- a/include/SFML/Graphics/Sprite.hpp
+++ b/include/SFML/Graphics/Sprite.hpp
@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/System/Resource.hpp>
 #include <SFML/Graphics/Drawable.hpp>
 #include <SFML/Graphics/Rect.hpp>
diff --git a/include/SFML/Graphics/String.hpp b/include/SFML/Graphics/String.hpp
index b0ca81b..6b9c483 100755
--- a/include/SFML/Graphics/String.hpp
+++ b/include/SFML/Graphics/String.hpp
@@ -28,6 +28,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/System/Resource.hpp>
 #include <SFML/System/Unicode.hpp>
 #include <SFML/Graphics/Drawable.hpp>
diff --git a/include/SFML/System/ResourcePtr.inl b/include/SFML/System/ResourcePtr.inl
index dbfcd0d..7bda5f1 100755
--- a/include/SFML/System/ResourcePtr.inl
+++ b/include/SFML/System/ResourcePtr.inl
@@ -22,6 +22,7 @@
 //
 ////////////////////////////////////////////////////////////
 
+#include <cstddef>
 
 ////////////////////////////////////////////////////////////
 /// Default constructor
diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp
index 36c4c28..350c0cc 100755
--- a/src/SFML/Graphics/Font.cpp
+++ b/src/SFML/Graphics/Font.cpp
@@ -25,6 +25,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/Graphics/Font.hpp>
 #include <SFML/Graphics/FontLoader.hpp>
 #include <iostream>
diff --git a/src/SFML/Graphics/Image.cpp b/src/SFML/Graphics/Image.cpp
index 14346fb..8b18fb7 100755
--- a/src/SFML/Graphics/Image.cpp
+++ b/src/SFML/Graphics/Image.cpp
@@ -25,6 +25,7 @@
 ////////////////////////////////////////////////////////////
 // Headers
 ////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <SFML/Graphics/Image.hpp>
 #include <SFML/Graphics/ImageLoader.hpp>
 #include <SFML/Graphics/RenderWindow.hpp>
--


2
General discussions / 64bit SFML
« on: July 16, 2010, 04:02:35 pm »
Working fine for DEC ALPHA as well (and IBM-zSeries)

And jep also for "just" amd64 with GNU/kFreeBSD, GNU/Linux

3
General / Make install did not install correctly
« on: June 18, 2010, 08:42:43 pm »
I'm not aware of any distribution where /usr/local/lib is not in ldconfig's path. No need to do anything special there.

I guess I can get mesa-dev for the next upload of the debian packages into ecommended (filling bug helps isses to be solved!)

4
General discussions / Switching to CMake
« on: June 05, 2010, 12:46:21 am »
CMake gives me a more common interface (apart from make ; make install sfml is -- well a bit custom) ;)

5
General / Included new GLEW links agains the older GLEW from SFML :(
« on: April 24, 2010, 10:33:48 pm »
As long as GLEW doesn't do symbol veersioning both in the Version in SFML and in your Version you'll need to make sure to only have one version linked in at any point in time ;)

6
Graphics / sf::string Text using as sprintf?
« on: April 10, 2010, 01:25:50 pm »
Quote from: "Laurent"
Using an ostringstream and its str() function is better (so that you get the whole content of the stream).

Defining a function is also much more convenient.
Code: [Select]
template <typename T>
std::string str(const T& x)
{
    std::ostringstream oss;
    oss << x;

    return oss.str();
}

sf::String text;
text.SetText("Pos y : " + str(Posx) + " Pos x : " + str(Posy));


He that looks really much like boost's lexical_cast (and works the same way).

an interesting alternative might be boost::format working basically like that:

Code: [Select]
Hello.SetText(boost::format("Pos y : %f1% Pos x : %2% ") % Posy % Posx);

7
Python / 1.6 python release?
« on: April 10, 2010, 12:53:55 pm »
Hi all!

the python binding for 1.5 doesn't build against 1.6. is there a chance of seeing a 1.6 python binding soon?If it's all that is needed I can of course prepare a patch to make it build again (1.6 doesn't introduce new stuff the binding needs to forward, right?)

8
General discussions / cheeseburger.ttf
« on: April 10, 2010, 12:33:09 pm »
Well even if it is, distributing it in SFML's tarballs hardly qualifies as personal use ;)

9
General discussions / cheeseburger.ttf
« on: April 10, 2010, 11:53:45 am »
Hi Laurent!

You seem to include a for-sale comercial font in the samples directory:

./samples/bin/datas/pong/cheeseburger.ttf
./samples/bin/datas/post-fx/cheeseburger.ttf

This font is sale for $$$ on http://www.fontbros.com/cgi-bin/commerce.cgi?preadd=action&key=FOLI-CHEE

10
General discussions / SFML 1.6 released soon
« on: March 24, 2010, 08:12:06 pm »
OK should have read again more carefully. It's now going there:

http://random.christoph-egger.org/sfml-1.6-amd64.tar.bz2

http://random.christoph-egger.org/sfml-1.6-amd64.tar.bz2.gpg is a signature to check the archive's integrity

11
General discussions / SFML 1.6 released soon
« on: March 24, 2010, 06:21:36 pm »
ok building.

does that in- or exclude CSFML python-sfml (or others?)

[EDIT]

Also, do you want full packages or just the binaries?

12
General discussions / SFML 1.6 released soon
« on: March 24, 2010, 11:23:07 am »
I can do so when I'm home, just plain make + taring up?

13
General discussions / Compiling and deleting
« on: March 17, 2010, 11:37:44 am »
If you just build sfml (e.g. make) you have all the needed stuff there. You can even reorganize that (as long as you keep the structure of include/ intact but will then need to tell your compiler/linker where to look for header files / libraries.

If there is broader need I could actually set up some debian packages of newer versions (though I didn't look at sfml1 yet) so it's just another apt-get install away. (I do that for Ubuntu already as it's easy and doesn't cose me any permanent resources using launchpad's PPAs)

14
General / make install => Syntax error: word unexpected
« on: February 11, 2010, 08:11:22 pm »
have you tried gmake instead of make? IIRC FreeBSD shipps gnumake as gmake and SFML might use some GNU make only features

15
General discussions / SFML 1.6 released soon
« on: January 28, 2010, 07:47:00 pm »
OGreat :) builds now fine. I ight come around to do some tests later then :)

Pages: [1] 2 3 ... 7