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

Pages: 1 ... 7 8 [9] 10 11 ... 13
121
Python / Error Building the PySFML2-cython Bindings
« on: July 26, 2011, 02:37:39 pm »
I think I found a workaround. Go to the directory where the sf.def file was created, and type this:

Code: [Select]
dlltool --def sf.def --output-lib libsf.a

The libsf.a file will be created, and g++ should create the module correctly on the next run.

It seems that either there is a mismatch in Python and MinGW versions, or this is a bug in Python 2.7.

122
Python / PySFML2 Cython Text under Python 3
« on: July 23, 2011, 11:01:44 am »
Thanks, it should work now.

123
Python / pysfml2-cython
« on: July 19, 2011, 02:11:29 pm »
Thanks. ;)

124
Python / Error Building the PySFML2-cython Bindings
« on: July 19, 2011, 02:11:11 pm »
Did you try the solution I suggested? It's probably the simplest and there's no reason why it shouldn't work.
I'll try to test yours, but until then I can't really help.

125
Python / pysfml2-cython
« on: July 17, 2011, 03:43:56 am »
As far as I know, it's the only binding that's kept up-to-date. My main concern is about the API usability and bugs that probably lurk in methods that I never use.
So I don't know about making it the official binding, but it could help to make an announcement on the first page like you did for rbSFML. I think a lot of people don't know about this binding.

126
Python / Error Building the PySFML2-cython Bindings
« on: July 14, 2011, 08:55:11 pm »
As I said, I simply added SFML's headers and libraries to the MinGW folders, and it worked correctly. This would probably be much easier.
But your problem may be that your command-line arguments only refer to the include directory, so the linker can't find the libraries.

127
Python / pysfml-cython
« on: July 13, 2011, 02:27:20 am »
Project page: https://github.com/bastienleonard/pysfml-cython

Documentation: http://pysfml2-cython.readthedocs.org/

This binding is up to date (most of the time :roll:) and supports most features of SFML 2.
Currently there's no binary release, you have to compile the module yourself. If you download the current snapshot (in the downloads section on Github), you won't have to install Cython. I noticed in the past that I had forgotten to include some files in the snapshot, or that Github behaved strangely when replacing the it, so please tell me if something goes wrong when using it.
I guess that I will make the first binary release when SFML 2 has a binary release too.

Please read the documentation for more information on the binding, how to build it, etc. ;)

128
Python / Python binding generation tools
« on: July 11, 2011, 08:16:09 am »
Thanks for the suggestion, I didn't remember this one wasn't implemented.
But instead of giving the plain integer, I convert it to a real Unicode object directly. It seems more logical.

129
Python / Error Building the PySFML2-cython Bindings
« on: July 11, 2011, 07:42:35 am »
Don't worry, you were right to report the problem. ;)

If I remember correctly, when I tried to compile on Windows, all I needed to do was to add the headers and libs of SFML in the directories of MinGW (should be something like include/ and lib/).

By the way, since Laurent broke a quite large part of the API, it's possible that my changes introduced some bugs. Don't hesitate to report them.

130
Python / Python binding generation tools
« on: May 21, 2011, 04:29:26 pm »
Quote from: "BLU3 L30PARD"
Yes that works, but when the App was closed I'm getting this
Message from Windows....

I'm using Windows 7 Home Premium (x86 | 32bit) and
Python 2.7.1


Does this happen with every PySFML program?
I've built it on Windows, so I'll try to do some tests.

131
Python / Python binding generation tools
« on: May 21, 2011, 03:11:53 am »
Thanks for reporting the bug, I fixed it.

132
General discussions / Database support?
« on: May 05, 2011, 04:32:31 am »
You'll need to use another library for database access (e.g. SQLite).
For global statistics, you need to write a server, e.g. in PHP. The C++ client could simply send the local statistics to the server, which would show the global statistics to the web clients.

133
Python / Python binding generation tools
« on: May 04, 2011, 03:29:16 pm »
Can you run the text.py example? It works fine on my system.

134
Python / Python binding generation tools
« on: April 18, 2011, 03:26:40 pm »
Visual Studio reports a strange manifest for me as well, but it happens when I compile SFML. Maybe I'll give MinGW a try.
Good luck for your game. ;)

135
Python / Python binding generation tools
« on: April 17, 2011, 07:46:38 pm »
Beliar is probably right, the renaming of GetEvent() to PollEvent() in SFML is very recent. Try getting a new SFML 2 snapshot, or update your repo if you're using Git.

It's “normal” that the code generates a lot of warnings, I used to activate them with GCC on this project, but I always got the same warnings and I couldn't do much about it since the code is generated by Cython.
However, I guess you didn't activate all warnings and VS only shows the most important ones, and the most recurring is this conversion from double to float, so I'll see if there's something I can fix. Still, I think it's probably not a big deal since SFML uses floats for almost everything.

Pages: 1 ... 7 8 [9] 10 11 ... 13
anything