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

Pages: [1]
1
D / Compilation of DSML
« on: August 31, 2010, 11:23:04 pm »
Hi,

Here is my problem. All is in the title. I found a tutorial on the french page of SFML which show how to compile DSFML and I did all wriiten in it.

So, here are the different steps:
1) I created the static libraries of SFML
2) I built the dynamic ones of CSFML
3) And finally, I convert the .lib to a format known by D linker with coffimplib.

My problem is in DSFML construction. Indeed, the call of the following command :

Code: [Select]
dsss build -O -release

give the following output

Code: [Select]
Creating imports for dsfml-audio

Creating imports for dsfml-network

Creating imports for dsfml-graphics

Creating imports for dsfml-system

Creating imports for dsfml-window

dsfml\audio => dsfml-audio
+ d:\programmation\D\Compilateur\dsss-0.75-dmd-win\bin\rebuild.exe -Idsss_import
s\ -I. -S.\ -Id:\programmation\D\Compilateur\dsss-0.75-dmd-win\include\d -Sd:\pr
ogrammation\D\Compilateur\dsss-0.75-dmd-win\lib\ -O -release  -Id:\programmation
\D\Compilateur\dsss-0.75-dmd-win\include\d -Sd:\programmation\D\Compilateur\dsss
-0.75-dmd-win\lib  -oqdsss_objs\D  -explicit -lib dsfml\audio\all.d dsfml\audio\
listener.d dsfml\audio\music.d dsfml\audio\sound.d dsfml\audio\soundbuffer.d dsf
ml\audio\soundbufferrecorder.d dsfml\audio\soundrecorder.d dsfml\audio\soundstat
us.d dsfml\audio\soundstream.d -ofdsfml-audio.lib
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(88)
: enum declaration is invalid
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(200
): unrecognized declaration
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(284): found 'INVALID_HANDLE_VALUE' when expecting ','
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(284): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(284): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(284): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(284): found ')' when expecting ','
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(284): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(284): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(284): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(285): found 'INVALID_SET_FILE_POINTER' when expecting ','
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(285): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(285): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(285): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(285): found ')' when expecting ','
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(285): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(285): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(285): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(286): found 'INVALID_FILE_SIZE' when expecting ','
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(286): enum member expected
d:\programmation\D\Compilateur\dmd2\windows\bin\..\..\src\druntime\import\core\s
ys\windows\windows.di(286): enum member expected
Command d:\programmation\D\Compilateur\dsss-0.75-dmd-win\bin\rebuild.exe returne
d with code 1, aborting.
Error: Command failed, aborting.


And now, I don't know what to do :(

For information, I use dmd2 and in an other thread, i saw that dsss isn't supported any more and doesn't work very well with dmd2. It is advised to use xfbuild, which alse give me some errors.

However, one problem at the time and, if needed, i will come back on these.

Thanks for your help

2
General / Lnk1120 Dynamic and static linking
« on: July 28, 2010, 03:01:18 pm »
I think you forgot to link with sfml-window-d.lib

Read the tutorial, all is explained in it.  :wink:

You have to link in this order:
sfml-graphics-d.lib
sfml-window-d.lib
sfml-system-d.lib

Of course, the definition of SFML_DYNAMIC is correct.

3
General / Deleting Sprites
« on: February 01, 2010, 04:54:18 pm »
You shoud do :
Code: [Select]

shotVector.erase(shotVector.begin() + j);


Doing shotVector[j], you access to the contained sf::Sprite. So,  function 'erase' is not found.

4
General / sf::string
« on: November 23, 2009, 08:55:00 am »
In your last function :

Code: [Select]
int TextEngine::DisplayText(sf::RenderWindow Window, sf::String FileToDisplay){
                                                            Window.Draw(FileToDisplay);
                                                            return 0;
};


You try to get a copy of sf::RenderWindow. The fact is sf::RenderWindow has sf::NonCopyable class as base Class. That means you can't copy an instance of sf::RenderWindow. You should try this:

Code: [Select]
int TextEngine::DisplayText(sf::RenderWindow& Window, sf::String FileToDisplay){
                                                            Window.Draw(FileToDisplay);
                                                            return 0;
};

Pages: [1]