Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: error building samples in dsfml  (Read 3049 times)

0 Members and 1 Guest are viewing this topic.

michaelp

  • Newbie
  • *
  • Posts: 18
    • View Profile
error building samples in dsfml
« on: February 05, 2009, 10:47:16 pm »
Hey, I finally got my mom's old laptop and I can now use DSFML. Woot! :D
I got the D compiler working, DSSS, and DSFML working, except there is one little thing that I have to ask.
When I build the dsss.conf that builds all the samples, I get an error building voip. The error is in util.d:

Code: [Select]
C:\D\DSFML\samples\dsfml>dsss build
pong\pong.d => bin/pong

postFX\postFX.d => bin/postFX

socket\socketclient.d => bin/client

socket\socketserver.d => bin/server

sound3d\sound3d.d => bin/sound3d

soundstream\soundstream.d => bin/soundstream

voip\entry.d => bin/voip
voip\util.d(23): Error: non-constant expression new Cout
Command C:\D\dmd\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting.

C:\D\DSFML\samples\dsfml>


I'm using DMD 1.039, DSFML 1.3, downloaded the package, and DSSS 0.78.
Thanks in advance,
-michaelp :D  :D
D Programming Language

michaelp

  • Newbie
  • *
  • Posts: 18
    • View Profile
error building samples in dsfml
« Reply #1 on: February 06, 2009, 10:31:07 pm »
Okay, I updated to the SVN version of DSFML, and now they all build... but they don't run. :|
I have all the DLL's in the folder.

Here are the errors:
Code: [Select]
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-audio.dll, symbol : sfSound_SetPlayingOffset)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-audio.dll, symbol : sfSoundStream_GetPlayingOffset)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-audio.dll, symbol : sfSoundStream_GetLoop)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-audio.dll, symbol : sfSoundStream_SetLoop)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-window.dll, symbol : sfWindow_SetSize)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-window.dll, symbol : sfWindow_SetIcon)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfImage_CopyScreen)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfImage_Copy)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfRenderWindow_Clear)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfShape_GetPointPosition)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfShape_SetPointPosition)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfShape_GetPointColor)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfShape_SetPointColor)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfShape_GetPointOutlineColor)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfShape_SetPointOutlineColor)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfShape_TransformToLocal)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfShape_TransformToGlobal)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfSprite_TransformToLocal)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfSprite_TransformToGlobal)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfString_GetCharacterPos)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfString_TransformToLocal)
Loading error. Reason : Symbol cannot be found in specified library (library : c
sfml-graphics.dll, symbol : sfString_TransformToGlobal)


And here is a screenshot:
D Programming Language

Odeamus

  • Newbie
  • *
  • Posts: 8
    • View Profile
error building samples in dsfml
« Reply #2 on: March 30, 2009, 08:37:38 pm »
I'd say you have the wrong version of the C bindings. I just tried the samples with the combination of SFML 1.4, CSFML 1.4 and compiling the D bindings from svn, and they worked just fine. I had to do one change to dsfml.system.dllloader to make it compile, but otherwise everything seems fine.