Skip to content

Haskell SFML installation is failling on Ubuntu 16.04 #27

Open
@lhcopetti

Description

@lhcopetti

I'm currently trying to compile this project on my machine: Ubuntu Linux x64 (16.04).

I am facing the below error while executing the command line mentioned in the wiki:
cabal install --extra-include-dirs=/path/to/CSFML/include --extra-lib-dirs=/path/to/CSFML-AND-SFML-libs

Resolving dependencies...
Configuring SFML-2.3.2.4...
Building SFML-2.3.2.4...
Failed to install SFML-2.3.2.4
Build log ( /home/lhcopetti/.cabal/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: In function ‘main’:
BlendMode.hsc:58:5: warning: implicit declaration of function ‘hsc_alignment’ [-Wimplicit-function-declaration]
BlendMode.hsc:58:20: error: expected expression before ‘sfBlendFactor’
BlendMode.hsc:66:20: error: expected expression before ‘sfBlendEquation’
BlendMode.hsc:74:20: error: expected expression before ‘sfBlendMode’
compiling dist/build/SFML/Graphics/BlendMode_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/SFML/Graphics/BlendMode_hsc_make.c -o dist/build/SFML/Graphics/BlendMode_hsc_make.o -fno-stack-protector -D__GLASGOW_HASKELL__=710 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -I/home/lhcopetti/Documents/Dev/Tools/CSFML-2.3/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/lib/ghc/base_HQfYBxpPvuw8OunzQu6JGM/include -I/usr/lib/ghc/integ_2aU3IZNMF9a7mQ0OzsZ0dS/include -I/usr/lib/ghc/include -I/usr/lib/ghc/include/
cabal: Error: some packages failed to install:
SFML-2.3.2.4 failed during the building phase. The exception was:
ExitFailure 1
  • The SFML version downloaded:
    http://www.sfml-dev.org/download/sfml/2.3.2/

  • The CSFML (compiled myself) version:
    https://www.sfml-dev.org/files/CSFML-2.3-sources.zip

  • The /usr/bin/gcc version:

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions