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

Pages: 1 2 [3] 4 5 6
31
General / Compile SFML with Code::Blocks and MinGW
« on: October 06, 2008, 04:51:47 pm »
I understand your right observation..
I checked all..
The same code compiled 1second later run well simply changing search directory from SFML SVN to 1.3 and leaving extra libs
This night I'll go to retry all.

I love Code::Blocks but when I drop in a strange error only VS Debug can save me.

32
Graphics / svn: sf::String sfs -> Access violation
« on: October 06, 2008, 04:42:18 pm »
Thaks SirJulio & Laurent.

I found same problem trying with static variable in class but declaration remain out in .cpp and get same problem.

I solve my problem coping String initialization instructions in all 4 files/class.

So isn't simple share same Font on many class. (for now I'm ok)

Thanks

33
General / Compile SFML with Code::Blocks and MinGW
« on: October 06, 2008, 01:56:52 pm »
Hi, I just return here after found page that you report here now.
http://www.sfml-dev.org/tutorials/1.4/start-cb.php
but I have to say that that this page
1) Don't contain example of the possible errors (idem in forum) (Google don't' send me here)
2) Isn't exhaustive for a normal developer without experience in Linux commands.. I can go to download CYGWIN & binutils but after this I have to study how to setup & use these.
Reading on forum about some code problem in SFML 1.3 I intend from text that I can compile&use SVN version without particular difficulty.
3) I try to use alternative method suggested in tutorial by linking libs directly in my application.. ok.. quite easy.. compile ok.. but program crash at start with abnormal runtime error.

For who wants to try I write here libs that I add into my project link options:
Code: [Select]
-lfreetype
-lopenal32
-lsndfile
-lgdi32
-lopengl32
-lwinmm
-lws2_32


adding serach dir of
Code: [Select]
/extlibs/libs-mingw
mingw/lib


All this post is written only to help SFML community and small developers.
I'm love all about SFML and the great documentation into the site!
I'm only hate losing time on compiler problems.

34
General / Compile SFML with Code::Blocks and MinGW
« on: October 06, 2008, 02:58:58 am »
Hi.. I spent a lot of time to compile SFML SVN(1.4)
I use with MinGW and with VS9C++
I compiled and used successfully SFML in VS9++.
Now I need SFML in MinGW for CodeBlocks..
Compile of SFML compile successfully with about 44 general warnings
but now, when go to compile my program
I get strange error that I cant found in SFML site.
The same program go well with
 SFML SVN(1.4)VS9++ and with C::B+MinGW+SFML1.3
I cant build with C::B+MinGW+SFML(SVN1.4)
I tried with Debug and Release simply
 changing the 2 search directory in C::B.

error in Debug mode:
Code: [Select]
E:\E\P\SFML\src\SFML\Audio\Sound.cpp|40|undefined reference to `_imp__alGenSources'|"

error in Release mode:
Code: [Select]
E:\E\P\SFML\src\SFML\Audio\Sound.cpp:(.text+0xe)||undefined reference to `_imp__alSourcePlay'|"


In program where I don't use Audio I get:
Code: [Select]
E:\E\P\SFML\src\SFML\Graphics\FontLoader.cpp|91|undefined reference to `FT_Done_FreeType'|


Please help me, thanks.

35
Graphics / svn: sf::String sfs -> Access violation
« on: October 06, 2008, 12:06:12 am »
error:
Access violation reading location 0x00000000

in:
Context.cpp of SFML SVN compiled with VS9 C++

at:
Code: [Select]
void Context::SetActive(bool Active)
{
    myDummyWindow->SetActive(Active);
}


where:
in my program and in SFML samples too.

to try:
simply put variable definition "sf::String sfs;" before main()

I need it to share same String settings in many files of my program.

36
Graphics / sf::String Memory Leak?
« on: September 25, 2008, 08:35:02 am »
Hi, I discovered the source of all problems.  :shock:

In release mode VC9 activate all compiler Optimizations
that boost application removing randomly some code lines.  :evil:

The appearance is that because I setup 1 breakpoints for every line but
in runtime many of that disappear.
but
the problem is that when I active optimization /O1 or /O2
I get very strange results in variables.
If I have:
Code: [Select]
a=1;
b=2;
c=3;

using break points
I see on line b that "a=1" ok!
on line c I see "a=314696412638" grrrr
I don't know how to investigate now..
For now turn off Optimizations.
Byebye

37
Graphics / sf::String Memory Leak?
« on: September 23, 2008, 05:09:41 pm »
Hi. Now I using SVN version and problem in String disappear. :D

Unfortunately now have a similar problem when
I go to extract data from a sf:Packet.  :evil:
Always only in Release(:evil:) mode.
I see that data in Packet is correct
but in variables I get very big numbers.
Tonight I'm going to make an apposite experimental project.

38
Graphics / SetBackgroundColor in SVN version
« on: September 23, 2008, 12:02:26 pm »
:P Perfect..  now is better with clear.  :P

but it appears as a Fill function rater than clear. :roll:

for me is Ok, good work, byebye

Thanks  :P

39
Graphics / SetBackgroundColor in SVN version
« on: September 23, 2008, 01:48:09 am »
sf::RenderWindow Class in 1.3:
http://www.sfml-dev.org/documentation/1.3/classsf_1_1RenderWindow.htm
Quote
void    SetBackgroundColor (const Color &Col)
    Change the background color of the window.

40
Graphics / sf::String Memory Leak?
« on: September 22, 2008, 11:48:23 pm »
Hi, I have this problem too  :evil:
I discovered it only today after 1 week of research.
Infact I get error only in Release version as general runtime error.
Using traps and testing different codes
I identify problem in sf::String.SetText.
Code: [Select]
OutputDebugStringA( (mRun?"A":"a") );
mDicesString.[b]SetText[/b]("dadi"); // <--- errrrrrrrrrr
OutputDebugStringA( (mRun?"B":"b") );

after SetText mRun bool variable change.
I found that after comment lines where use Draw(mDicesString) to prevent general error in runtime.
I try to move code and variables:
 error change its targhet when move variable definition line.
I worked with 1.3 version and now go to test SVN just downloaded.

41
Graphics / SetBackgroundColor in SVN version
« on: September 22, 2008, 11:33:37 pm »
Hi, great work but where is SetBackgroundColor in SVN version?
Thanks

42
Graphics / LoadFromFile() Problem:"[...] Reason : Unable to open f
« on: September 21, 2008, 12:11:49 pm »
Output win report this:
Code: [Select]

SILLY_d.dll', Il file binario non รจ stato compilato con le informazioni di debug.
<F>loadSprite: data/village.png  err.LoadFromFile==false  err.Width==0
^this from my internal debug code.


Now I found why SFML don't want to load images:
Code: [Select]

assert(  ok = aImage->LoadFromFile( ssFileName.str() )  );


In Release mode, code into assert isn't compiled at all.

Now my program load all ^_^ Thanks for patience.

43
Graphics / LoadFromFile() Problem:"[...] Reason : Unable to open f
« on: September 21, 2008, 11:10:08 am »
yes, I retested in many modes (moving/renaming dir)
and comparing/testing with debug version that work.

Now, I want to test it in runtime..

How can I see, by program code, directory that SFML LoadFromFile use to find files?

Thanks

44
Graphics / LoadFromFile in Release mode in VC9
« on: September 20, 2008, 08:08:14 pm »
Hi Laurent. I love your SFML but lost many days to understand VC9 compiler option to make the Release version of a mini game that run perfectly in debug mode.
Now all compile well in Release version too but
I get and strange error derived from the fact that
Image.LoadFromFile fail! return false and width of image=0.
I verify directory in configuration and run from bin directory too.
What can I check?
How to check actual directory from program code?
Can be a lib that not work in release mode?
I use: SFML 1.3 in \lib\vc2008
I just try to restore in Release config all lib with -d at end but not get variations.
Any idea? thanks.

45
SFML website / Peerguardian block SFML site
« on: September 18, 2008, 11:42:48 am »
Other sites have this problem because are all on a server in France where Agency operate(or is an error)
See:
http://forums.phoenixlabs.org/showthread.php?t=2490
Connection Rejected: 213.186.33.2 - copyright-agency.com

Pages: 1 2 [3] 4 5 6
anything