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

Pages: [1] 2 3
1
Graphics / compilling SFML2 with CodeBlocks
« on: February 18, 2010, 02:52:23 pm »
Quote from: "Laurent"
The name of the generated libraries is wrong, the extension is ".dll.a" instead of ".a".

I think that you can change the default extension in the linker options; in the meantime I'll see if I can force it in the projects settings.

Strange. All build configurations works on my CodeBlocks 8.02 build at Feb 27 2008 - and this is latest build of C::B.

Laurent, what is that extra step and why isn't it performed in CodeBlocks?

2
Graphics / compilling SFML2 with CodeBlocks
« on: February 18, 2010, 02:20:09 pm »
Anyway if you just open SFML2 workspace sfml-main is active, so rebuilding workspace will rebuild all samples.

About that batch build. You mentioned about some "extra step". Is this "extra step" done when building static library from inside CodeBlocks?

3
Graphics / compilling SFML2 with CodeBlocks
« on: February 18, 2010, 01:57:19 pm »
Quote from: "Laurent"
Quote
So if you will choose to rebuild workspace it will start from activated project and continue to build projects from this one

I never noticed this behaviour, "rebuild workspace" always rebuild every project that has the current build target (samples and SFML libraries don't have the same set of targets).

You are right. It makes sense :).

Quote from: "Laurent"

Quote
Keep in mind, that every project has its own set of build targets, and if you set build target for sfml-system as (for example) "Release DLL_Win32" that doesn't mean that all projects will have same build target. So you need to manually change each project build target.

Changing it from the dropdown list in the toolbar doesn't really work (at least with the version that I use), but doing it from the menu changes the current target for everything.

Hmmm... if I choose from dropdown list some target and rebuild workspace all projects will be rebuild with this target. Same for menu.

4
Graphics / Re: compilling SFML2 with CodeBlocks
« on: February 18, 2010, 01:18:14 pm »
Quote from: "dkaip"
Working in XP in a new installation of codeblocks, i am trying to compille SFML2.
Opening SFML workspace, and compilling, compiller says... and nothing ...

Linking console executable: ..\..\bin\ftp-d.exe
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-network-s-d.a: No such file or directory
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-system-s-d.a: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

What i have wrong?
Thank's
Jim


I had same issue. Problem is that active project is set to one of samples in SFML2 workspace. So if you will choose to rebuild workspace it will start from activated project and continue to build projects from this one. To successfully build SFML2 workspace in CodeBlocks set project "sfml-system" as active and then rebuild workspace. Keep in mind, that every project has its own set of build targets, and if you set build target for sfml-system as (for example) "Release DLL_Win32" that doesn't mean that all projects will have same build target. So you need to manually change each project build target.

// edit
Notice, that most of examples (if not all examples) are linking static SFML libraries, so you will need these to successfully compile examples.

5
General discussions / Java
« on: February 16, 2010, 01:37:05 pm »
Quote from: "Tank"
Great work. Why don't you release the source code so that everybody can build their own Java library?

I don't think that jSFML is ready for release yet. There are no makefiles so there is no easy way to build it under Linux, there is no good solution for building on Windows and there is nothing for MacOSX. Code needs cleanup. There are no javadoc entries in Java code. Still few functions are not implemented. I want to prepare it to be easy to modify and maintain and then release it. And of course doing all this i want to learn a whole bunch of new thing :). For few weeks you will have to depend on libraries provided by me. Or few days ;).

6
General discussions / Java
« on: February 16, 2010, 01:59:26 am »
Windows version available for download from:
:arrow:  here - jSFML.dll

If you will get some mysterious external dependency error while running Java app make sure that you have libsndfile-1.dll in one of these directories:
:arrow:  Window
:arrow:  Window\System32
:arrow:  app home directory

And dont forget about:
Code: [Select]
-Djava.library.path=/some/example/path
or this line if you have jSFML.dll in Java app home directory
Code: [Select]
-Djava.library.path=./
Happy testing :)

7
General discussions / Java
« on: February 14, 2010, 08:48:08 pm »
First release of jSFML is here! Yay! To use SFML in Java download these files:
:arrow:  jSFML.so native library (Linux)
:arrow:  jSFML.jar Java jar library

Then you need to:
:arrow:  have SFML 2 libraries in "/usr/lib"
:arrow:  add jSFML.jar to classpath in your Java project
:arrow:  include following line in your code
Code: [Select]
System.loadLibrary("jSFML");
:arrow:  run your Java program with special parameter for java describing where is jSFML.so file located
Code: [Select]
-Djava.library.path=/some/example/path

Sample code here.

Happy testing! I'm waiting for JVM crash reports! :)

PS. About prevoius post. I was thinking about sunday. I have no idea why i wrote saturday ;).

8
General discussions / Java
« on: February 09, 2010, 11:49:29 pm »
Quote from: "tireswing"
Any progress?  I'm writing a couple of apps in Java and jSFML would come in handy.

I will try to release jSFML for Linux on Saturday. I dont have plans for Windows and MacOSX yet.

9
Graphics / Drawing int or double with sf::String
« on: February 02, 2010, 04:51:13 pm »

10
Graphics / Issue with creating sf::Image
« on: February 02, 2010, 10:35:11 am »
Quote from: "Laurent"
Any message on the standard error output?
Only this one qouted above.

Quote from: "Laurent"
What about your graphics drivers, are they up-to-date?
Nope.

Quote from: "Laurent"
You may also try the latest sources from SVN (you'll have to recompile SFML).
But if you could try these code sample on your Linux I would be grateful :). I was competing in 2h game compo and I was using SFML for graphics and input. After 1 hour I tried to compile what i wrote and see the results but i got this error and it took me another hour to figure out what causes this error. Sooo i didnt submit my work :(. And I would really like to know if this was SFML fault or my OS or some other sinister force ;).

11
Graphics / Re: Issue with creating sf::Image
« on: February 01, 2010, 08:39:13 pm »
Quote from: "solgar"
My OS is Linux Mint 8 and SFML version is 1.5


Tried only with 1.5 downloaded from site download section.

12
Graphics / Issue with creating sf::Image
« on: February 01, 2010, 08:24:36 pm »
Following code: http://ideone.com/IqTCnnpr produces following error:
Quote
Failed to create image, its internal size is too high (319x94)

First image is loaded and drawn perfectly. Loading second prints this error and is not drawn at all. This code http://ideone.com/wqYJVndB works perfectly. In second listing window is created before images. Issue occurs on Linux. On Windows there is no difference between those two code listings. My OS is Linux Mint 8 and SFML version is 1.5. Quite strange... is this SFML issue?

13
General discussions / Java
« on: January 14, 2010, 12:07:44 am »
I'm so lazy after loong absence in work around xmas... There is some progress in Audio but nothing works for now. I will try to motivate myself and finish working on 1283 revision to start working on head revision in February.

14
General discussions / Benchmark : SDL vs SFML
« on: January 11, 2010, 09:37:26 am »
Testing machine: some HP Pavilion dv7.
Result:

Code: [Select]
1/ Test : sprites
SDL  displayed 51 frames
SFML displayed 69 frames
--> SFML is 1.4x as fast as SDL

2/ Test : alpha-blended sprites
SDL  displayed 24 frames
SFML displayed 69 frames
--> SFML is 2.9x as fast as SDL

3/ Test : rotating sprites
SDL  displayed 14 frames
SFML displayed 71 frames
--> SFML is 5.1x as fast as SDL

4/ Test : static text
SDL  displayed 804 frames
SFML displayed 2566 frames
--> SFML is 3.2x as fast as SDL

5/ Test : dynamic text
SDL  displayed 119 frames
SFML displayed 2300 frames
--> SFML is 19.3x as fast as SDL


Test from http://www.sfml-dev.org/temp/bench-sdl-sfml.zip

15
General discussions / Java
« on: December 22, 2009, 06:38:11 pm »
Quote from: "Raygoe"
This would be quite nice. Any updates on it?

Last  week i was sick and now are xmas so i think that next update will be in january.

Pages: [1] 2 3