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

Pages: [1]
1
D / DSFML and dsss didn't work :/
« on: June 18, 2010, 12:32:03 pm »
I found this thread http://www.sfml-dev.org/forum/viewtopic.php?t=1272 and changed also all std.thread lines into core.thread.
But now i get a lot of error messages and don't know what i can do -.-

I try also to compile the samples, for example pong, but i get this from the console:
Quote

C:\D\DSFML\samples\dsfml>dsss build pong
pong is not described in the configuration file.

C:\D\DSFML\samples\dsfml>dsss build pong/pong.d
pong\pong.d => bin/pong
../../import\dsfml\system\alloc.d(10): module gc cannot read file 'std\gc.d'
Command C:\D\dsss\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting.


Know anybody what i do wrong?

edit:
i know it, std\gc.d are now core/memory.d.

Can anybody give me a newbie help to install dsss and dsfml with dmd 2.0?
I can't replace all the old code, it must exist an easier way :/

2
D / DSFML and dsss didn't work :/
« on: June 18, 2010, 01:31:49 am »
I just downloaded DFML under the following link
http://downloads.sourceforge.net/sfml/SFML-1.3-d-sdk-windows.zip
 and filed it in C:/D/DFML/.
After that I downloaded dsss and filed it in C:/D/dss and inserted it in my environment variables (%PATH%) in Windows so that I could give instructions from the cmd.exe, and that works so far.
Now I applied a dsss.conf data file and filed it in a test directory on my desktop in the folder D, which inhabites my test datas of d.

I have the following source code:
Code: [Select]

module veryquickstart;

import dsfml.system.all;
import dsfml.window.all;
import dsfml.graphics.all;

void main()
{
    RenderWindow app = new RenderWindow(VideoMode(800, 600, 32), "It works !");
    Shape s = Shape.circle(300.f, 300.f, 100.f, Color(120, 120, 120, 120));
    app.setFramerateLimit(100);
   
    Event evt;  
    while (app.isOpened())
    {
        while (app.getEvent(evt))
        {
            // close the window
            if ((evt.Type == Event.EventType.CLOSED) ||
               ((evt.Type == Event.EventType.KEYPRESSED) && (evt.Key.Code == KeyCode.ESCAPE)))
            {
                app.close();
                break;
            }        
        }

        s.move(0.1f, 0);
       
        app.draw(s);
        app.display();
    }
}

and the following dsss.conf data file:
Code: [Select]

[sfml_test.d]
buildflags += -Ic:\D\DSFML\import -Sc:\D\DSFML\extlibs\lib

 but I'm consistently getting the same error message if i try to put "dsss build" into the cmd.exe:
Quote

C:\Users\---\Desktop\D main\D>dsss build
sfml_test.d => sfml_test
c:\D\DSFML\import\dsfml\system\thread.d(38): module thread cannot read file 'std
\thread.d'
Command C:\dsss\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting.


Here the corresponding part from "thread.d, the lines 38 and 39:
Code: [Select]

    static import std.thread;
    alias std.thread.Thread DThread;

Pages: [1]
anything