SFML-haskell / SFML

Low level Haskell bindings for SFML 2.x
MIT License
41 stars 11 forks source link

fails to build with current homebrew csfml package on OSX #23

Open simonmichael opened 7 years ago

simonmichael commented 7 years ago

After discussion of easy haskell sound libs on #haskell just now, I tried installing SFML on OSX 10.12.4. It seems slightly out of date with csfml 2.4:

$ brew install csfml
...
==> Installing dependencies for csfml: flac, sfml
==> Installing csfml dependency: flac
==> Downloading https://homebrew.bintray.com/bottles/flac-1.3.2.sierra.bottle.tar.gz
####################################################################################################################################################################################################### 100.0%
==> Pouring flac-1.3.2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/flac/1.3.2: 53 files, 1.8MB
==> Installing csfml dependency: sfml
==> Downloading https://homebrew.bintray.com/bottles/sfml-2.4.2.sierra.bottle.tar.gz
####################################################################################################################################################################################################### 100.0%
==> Pouring sfml-2.4.2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/sfml/2.4.2: 126 files, 1.7MB
==> Installing csfml 
==> Downloading https://homebrew.bintray.com/bottles/csfml-2.4.sierra.bottle.tar.gz
####################################################################################################################################################################################################### 100.0%
==> Pouring csfml-2.4.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/csfml/2.4: 99 files, 793.8KB
$ stack install SFML 
stack install SFML 
SFML-2.3.2.4: configure
SFML-2.3.2.4: build

--  While building package SFML-2.3.2.4 using:
      /Users/simon/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/simon/.stack/global/.stack-work/logs/SFML-2.3.2.4.log

    Configuring SFML-2.3.2.4...
    Building SFML-2.3.2.4...
    Preprocessing library SFML-2.3.2.4...
    BlendMode.hsc:22:9: warning: 'hsc_alignment' macro redefined [-Wmacro-redefined]
    #define hsc_alignment(t ) hsc_printf ( "%lu", (unsigned long)offsetof(struct {char x__; t(y__); }, y__));
            ^
    /Users/simon/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:9: note: previous definition is here
    #define hsc_alignment(t...) \
            ^
    1 warning generated.
    FontInfo.hsc:15:9: warning: 'hsc_alignment' macro redefined [-Wmacro-redefined]
    #define hsc_alignment(t ) hsc_printf ( "%lu", (unsigned long)offsetof(struct {char x__; t(y__); }, y__));
            ^
    /Users/simon/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:9: note: previous definition is here
    #define hsc_alignment(t...) \
            ^
    1 warning generated.
    RenderStates.hsc:22:9: warning: 'hsc_alignment' macro redefined [-Wmacro-redefined]
    #define hsc_alignment(t ) hsc_printf ( "%lu", (unsigned long)offsetof(struct {char x__; t(y__); }, y__));
            ^
    /Users/simon/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:9: note: previous definition is here
    #define hsc_alignment(t...) \
            ^
    1 warning generated.
    ContextSettings.hsc:19:9: warning: 'hsc_alignment' macro redefined [-Wmacro-redefined]
    #define hsc_alignment(t ) hsc_printf ( "%lu", (unsigned long)offsetof(struct {char x__; t(y__); }, y__));
            ^
    /Users/simon/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:9: note: previous definition is here
    #define hsc_alignment(t...) \
            ^
    1 warning generated.
    Event.hsc:131:15: warning: '' is deprecated [-Wdeprecated-declarations]
        hsc_peek (sfMouseWheelEvent, delta);
                  ^
    /usr/local/Cellar/csfml/2.4/include/SFML/Window/Event.h:126:9: note: '' has been explicitly marked deprecated here
    typedef struct CSFML_DEPRECATED
            ^
    Event.hsc:132:15: warning: '' is deprecated [-Wdeprecated-declarations]
        hsc_peek (sfMouseWheelEvent, x);
                  ^
    /usr/local/Cellar/csfml/2.4/include/SFML/Window/Event.h:126:9: note: '' has been explicitly marked deprecated here
    typedef struct CSFML_DEPRECATED
            ^
    Event.hsc:133:15: warning: '' is deprecated [-Wdeprecated-declarations]
        hsc_peek (sfMouseWheelEvent, y);
                  ^
    /usr/local/Cellar/csfml/2.4/include/SFML/Window/Event.h:126:9: note: '' has been explicitly marked deprecated here
    typedef struct CSFML_DEPRECATED
            ^
    3 warnings generated.
    JoystickIdentification.hsc:18:9: warning: 'hsc_alignment' macro redefined [-Wmacro-redefined]
    #define hsc_alignment(t ) hsc_printf ( "%lu", (unsigned long)offsetof(struct {char x__; t(y__); }, y__));
            ^
    /Users/simon/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:9: note: previous definition is here
    #define hsc_alignment(t...) \
            ^
    1 warning generated.
    Mouse.hsc:22:9: warning: 'hsc_alignment' macro redefined [-Wmacro-redefined]
    #define hsc_alignment(t ) hsc_printf ( "%lu", (unsigned long)offsetof(struct {char x__; t(y__); }, y__));
            ^
    /Users/simon/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:9: note: previous definition is here
    #define hsc_alignment(t...) \
            ^
    1 warning generated.
    [ 1 of 75] Compiling SFML.Window.WindowHandle ( src/SFML/Window/WindowHandle.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/WindowHandle.o )
    [ 2 of 75] Compiling SFML.Window.VideoMode ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/VideoMode.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/VideoMode.o )
    [ 3 of 75] Compiling SFML.Window.Types ( src/SFML/Window/Types.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Types.o )
    [ 4 of 75] Compiling SFML.Window.Keyboard ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Keyboard.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Keyboard.o )
    [ 5 of 75] Compiling SFML.Window.JoystickIdentification ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/JoystickIdentification.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/JoystickIdentification.o )
    [ 6 of 75] Compiling SFML.Window.Joystick ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Joystick.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Joystick.o )
    [ 7 of 75] Compiling SFML.Window.ContextSettings ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/ContextSettings.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/ContextSettings.o )
    [ 8 of 75] Compiling SFML.Utils       ( src/SFML/Utils.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Utils.o )
    [ 9 of 75] Compiling SFML.System.Vector3 ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Vector3.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Vector3.o )
    [10 of 75] Compiling SFML.System.Vector2 ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Vector2.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Vector2.o )
    [11 of 75] Compiling SFML.Window.Mouse ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Mouse.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Mouse.o )
    [12 of 75] Compiling SFML.Window.Event ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Event.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Event.o )
    [13 of 75] Compiling SFML.System.Time ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Time.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Time.o )
    [14 of 75] Compiling SFML.System.Sleep ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Sleep.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Sleep.o )
    [15 of 75] Compiling SFML.System.InputStream ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/InputStream.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/InputStream.o )
    [16 of 75] Compiling SFML.SFResource  ( src/SFML/SFResource.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/SFResource.o )
    [17 of 75] Compiling SFML.Window.Context ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Context.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Context.o )
    [18 of 75] Compiling SFML.SFException ( src/SFML/SFException.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/SFException.o )
    [19 of 75] Compiling SFML.SFDisplayable ( src/SFML/SFDisplayable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/SFDisplayable.o )
    [20 of 75] Compiling SFML.Window.SFWindow ( src/SFML/Window/SFWindow.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/SFWindow.o )
    [21 of 75] Compiling SFML.Window.Window ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Window.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window/Window.o )
    [22 of 75] Compiling SFML.SFCopyable  ( src/SFML/SFCopyable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/SFCopyable.o )
    [23 of 75] Compiling SFML.System.Clock ( src/SFML/System/Clock.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System/Clock.o )
    [24 of 75] Compiling SFML.System      ( src/SFML/System.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/System.o )
    [25 of 75] Compiling SFML.Window      ( src/SFML/Window.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Window.o )
    [26 of 75] Compiling SFML.Graphics.Types ( src/SFML/Graphics/Types.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Types.o )
    [27 of 75] Compiling SFML.Graphics.SFSmoothTexture ( src/SFML/Graphics/SFSmoothTexture.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFSmoothTexture.o )
    [28 of 75] Compiling SFML.Graphics.SFShapeResizable ( src/SFML/Graphics/SFShapeResizable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFShapeResizable.o )
    [29 of 75] Compiling SFML.Graphics.SFCoordSpace ( src/SFML/Graphics/SFCoordSpace.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFCoordSpace.o )
    [30 of 75] Compiling SFML.Graphics.SFBindable ( src/SFML/Graphics/SFBindable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFBindable.o )
    [31 of 75] Compiling SFML.Graphics.Rect ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Rect.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Rect.o )
    [32 of 75] Compiling SFML.Graphics.SFBounded ( src/SFML/Graphics/SFBounded.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFBounded.o )
    [33 of 75] Compiling SFML.Graphics.SFViewable ( src/SFML/Graphics/SFViewable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFViewable.o )
    [34 of 75] Compiling SFML.Graphics.Texture ( src/SFML/Graphics/Texture.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Texture.o )
    [35 of 75] Compiling SFML.Graphics.Transform ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Transform.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Transform.o )
    [36 of 75] Compiling SFML.Graphics.SFTransformable ( src/SFML/Graphics/SFTransformable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFTransformable.o )
    [37 of 75] Compiling SFML.Graphics.View ( src/SFML/Graphics/View.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/View.o )
    [38 of 75] Compiling SFML.Graphics.PrimitiveType ( src/SFML/Graphics/PrimitiveType.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/PrimitiveType.o )
    [39 of 75] Compiling SFML.Graphics.Glyph ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Glyph.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Glyph.o )
    [40 of 75] Compiling SFML.Graphics.FontInfo ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/FontInfo.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/FontInfo.o )
    [41 of 75] Compiling SFML.Graphics.Font ( src/SFML/Graphics/Font.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Font.o )
    [42 of 75] Compiling SFML.Graphics.Color ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Color.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Color.o )
    [43 of 75] Compiling SFML.Graphics.Image ( src/SFML/Graphics/Image.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Image.o )
    [44 of 75] Compiling SFML.Graphics.SFShape ( src/SFML/Graphics/SFShape.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFShape.o )
    [45 of 75] Compiling SFML.Graphics.SFTexturable ( src/SFML/Graphics/SFTexturable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFTexturable.o )
    [46 of 75] Compiling SFML.Graphics.ConvexShape ( src/SFML/Graphics/ConvexShape.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/ConvexShape.o )
    [47 of 75] Compiling SFML.Graphics.RectangleShape ( src/SFML/Graphics/RectangleShape.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/RectangleShape.o )
    [48 of 75] Compiling SFML.Graphics.Shader ( src/SFML/Graphics/Shader.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Shader.o )
    [49 of 75] Compiling SFML.Graphics.Shape ( src/SFML/Graphics/Shape.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Shape.o )
    [50 of 75] Compiling SFML.Graphics.Text ( src/SFML/Graphics/Text.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Text.o )
    [51 of 75] Compiling SFML.Graphics.Vertex ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Vertex.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Vertex.o )
    [52 of 75] Compiling SFML.Graphics.VertexArray ( src/SFML/Graphics/VertexArray.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/VertexArray.o )
    [53 of 75] Compiling SFML.Graphics.CircleShape ( src/SFML/Graphics/CircleShape.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/CircleShape.o )
    [54 of 75] Compiling SFML.Graphics.BlendMode ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/BlendMode.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/BlendMode.o )
    [55 of 75] Compiling SFML.Graphics.RenderStates ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/RenderStates.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/RenderStates.o )
    [56 of 75] Compiling SFML.Graphics.SFRenderTarget ( src/SFML/Graphics/SFRenderTarget.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFRenderTarget.o )
    [57 of 75] Compiling SFML.Graphics.RenderTexture ( src/SFML/Graphics/RenderTexture.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/RenderTexture.o )
    [58 of 75] Compiling SFML.Graphics.RenderWindow ( src/SFML/Graphics/RenderWindow.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/RenderWindow.o )
    [59 of 75] Compiling SFML.Graphics.SFDrawable ( src/SFML/Graphics/SFDrawable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/SFDrawable.o )
    [60 of 75] Compiling SFML.Graphics.Sprite ( src/SFML/Graphics/Sprite.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics/Sprite.o )
    [61 of 75] Compiling SFML.Graphics    ( src/SFML/Graphics.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Graphics.o )

    /private/var/folders/r7/f9j9c2zd1k97v47cr84j_qvc0000gn/T/stack55950/SFML-2.3.2.4/src/SFML/Graphics.hs:19:2: warning: [-Wtabs]
        Tab character found here.
        Please use spaces instead.
    [62 of 75] Compiling SFML.Audio.Types ( src/SFML/Audio/Types.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/Types.o )
    [63 of 75] Compiling SFML.Audio.SoundStatus ( src/SFML/Audio/SoundStatus.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SoundStatus.o )
    [64 of 75] Compiling SFML.Audio.SFSoundRecorder ( src/SFML/Audio/SFSoundRecorder.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SFSoundRecorder.o )
    [65 of 75] Compiling SFML.Audio.SFSoundBuffer ( src/SFML/Audio/SFSoundBuffer.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SFSoundBuffer.o )
    [66 of 75] Compiling SFML.Audio.SFSound ( src/SFML/Audio/SFSound.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SFSound.o )
    [67 of 75] Compiling SFML.Audio.Sound ( src/SFML/Audio/Sound.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/Sound.o )
    [68 of 75] Compiling SFML.Audio.SoundStream ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SoundStream.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SoundStream.o )
    [69 of 75] Compiling SFML.Audio.SFSampled ( src/SFML/Audio/SFSampled.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SFSampled.o )
    [70 of 75] Compiling SFML.Audio.SoundBuffer ( src/SFML/Audio/SoundBuffer.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SoundBuffer.o )
    [71 of 75] Compiling SFML.Audio.SoundBufferRecorder ( src/SFML/Audio/SoundBufferRecorder.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SoundBufferRecorder.o )
    [72 of 75] Compiling SFML.Audio.SoundRecorder ( src/SFML/Audio/SoundRecorder.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/SoundRecorder.o )
    [73 of 75] Compiling SFML.Audio.Music ( src/SFML/Audio/Music.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/Music.o )
    [74 of 75] Compiling SFML.Audio.Listener ( src/SFML/Audio/Listener.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio/Listener.o )
    [75 of 75] Compiling SFML.Audio       ( src/SFML/Audio.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/SFML/Audio.o )

    /private/var/folders/r7/f9j9c2zd1k97v47cr84j_qvc0000gn/T/stack55950/SFML-2.3.2.4/cbits/SFML/Graphics/Font_helper.c:6:67: error:
         error: too few arguments to function call, expected 5, have 4
            *glyph = sfFont_getGlyph (font, codePoint, characterSize, bold);
                     ~~~~~~~~~~~~~~~                                      ^

    /usr/local/Cellar/csfml/2.4/include/SFML/Graphics/Font.h:100:1: error:
         note: 'sfFont_getGlyph' declared here
    CSFML_GRAPHICS_API sfGlyph sfFont_getGlyph(sfFont* font, sfUint32 codePoint, unsigned int characterSize, sfBool bold, float outlineThickness);
    ^

    /usr/local/Cellar/csfml/2.4/include/SFML/Graphics/Export.h:43:32: error:
         note: expanded from macro 'CSFML_GRAPHICS_API'
            #define CSFML_GRAPHICS_API CSFML_API_IMPORT
                                       ^

    /usr/local/Cellar/csfml/2.4/include/SFML/Config.h:101:34: error:
         note: expanded from macro 'CSFML_API_IMPORT'
                #define CSFML_API_IMPORT CSFML_EXTERN_C __attribute__ ((__visibility__ ("default")))
                                         ^

    /usr/local/Cellar/csfml/2.4/include/SFML/Config.h:43:28: error:
         note: expanded from macro 'CSFML_EXTERN_C'
            #define CSFML_EXTERN_C extern
                                   ^
    1 error generated.
    `gcc' failed in phase `C Compiler'. (Exit code: 1)
biglambda commented 7 years ago

Wow, I have the exact same issue.

biglambda commented 7 years ago

Here's a quick fix: https://github.com/biglambda/SFML/commit/0b57192a638d70690c1b6d1e455bcb9011f24583

jeannekamikaze commented 7 years ago

That is right; last time I touched these bindings SFML was at version 2.3. Do you want to make a pull request with that fix or make changes directly to this repo?

biglambda commented 7 years ago

I think thats a hack, I didn't actually pipe the parameter all the way up to the binding, I just put a default in. This gets it to compile basically.