Games

外部ライブラリのインストール

パッケージ名

Ubuntu 18.04 (apt)

Mac (brew)

ALUT

libalut-dev

alut

bindings-GLFW

libxi-dev

libxrandr-dev

libxcursor-dev

libxinerama-dev

freenect

libfreenect-dev

libfreenect

pkg-config

FTGL

libftgl-dev

ftgl

haskell-gi

libgirepository1.0-dev

libwebkit2gtk-4.0-dev

libgtksourceview-3.0-dev

gobject-introspection gtk+ gtk+3

hcwiid

libcwiid-dev

ncurses

libncursesw5-dev

OpenAL

libopenal-dev

OpenGLRaw

freeglut3-dev

proteaaudio

libpulse-dev

SDL

libsdl1.2-dev

sdl

SDL-image

libsdl-image1.2-dev

sdl_image

SDL-mixer

libsdl-mixer1.2-dev

sdl_mixer

SDL-ttf

libsdl-ttf2.0-dev

sdl_ttf

sdl2

libsdl2-dev

sdl2

pkg-config

sdl2-gfx

libsdl2-gfx-dev

sdl2_gfx

sdl2-image

libsdl2-image-dev

sdl2_image

sdl2-mixer

libsdl2-mixer-dev

sd2_mixer

sdl2-ttf

libsdl2-ttf-dev

sdl2_ttf

X11

libx11-dev

libxrandr-dev

libxinerama-dev

libxss-dev

xquartz

ALUT

Configuring library for ALUT-2.4.0.3..
cabal: Missing dependency on a foreign library:
* Missing (or bad) C library: alut
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
$ sudo apt install libalut-dev

bindings-GLFW

Configuring library for bindings-GLFW-3.3.1.0..
cabal: Missing dependencies on foreign libraries:
cabal: Failed to build bindings-GLFW-3.3.1.0 (which is required by
* Missing (or bad) C libraries: Xi, Xrandr, Xcursor, Xinerama
This problem can usually be solved by installing the system packages that
GLFW-b-3.3.0.0). See the build log above for details.
$ sudo apt install \
    libxi-dev \
    libxrandr-dev \
    libxcursor-dev \
    libxinerama-dev

freenect

Configuring freenect-1.2...
cabal: Missing dependencies on foreign libraries:
* Missing (or bad) header file: libfreenect.h
* Missing (or bad) C libraries: freenect, freenect_sync
$ sudo apt install libfreenect-dev

FTGL

* Missing (or bad) C library: ftgl
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
$ sudo apt install libftgl-dev

OpenAL

Configuring library for OpenAL-1.7.0.5..
cabal: Missing dependency on a foreign library:
* Missing (or bad) C library: openal
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
$ sudo apt install libopenal-dev

OpenGLRaw

Configuring library for OpenGLRaw-3.3.4.0..
cabal: Missing dependency on a foreign library:
* Missing (or bad) C library: GL
See the build log above for details.
This problem can usually be solved by installing the system package that

provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
$ sudo apt-get install freeglut3-dev

haskell-gi

cabal: Could not resolve dependencies:
[__0] trying: sudokuhs-0.1.0.0 (user goal)
[__1] next goal: haskell-gi (dependency of sudokuhs)
[__1] rejecting: haskell-gi-0.23.0 (conflict: pkg-config package
gobject-introspection-1.0==1.32 || >1.32, not found in the pkg-config
database)
$ sudo apt install \
    libgirepository1.0-dev \
    libwebkit2gtk-4.0-dev \
    libgtksourceview-3.0-dev

hcwiid

Configuring hcwiid-0.0.6.1...
cabal: Missing dependencies on foreign libraries:
* Missing (or bad) header file: cwiid.h
* Missing (or bad) C libraries: bluetooth, cwiid
$ sudo apt install libcwiid-dev

ncurses

Configuring ncurses-0.2.16...
cabal: Missing dependencies on foreign libraries:
* Missing (or bad) C libraries: panelw, ncursesw
$ sudo apt install libncursesw5-dev

SDL

Configuring SDL-0.6.7.0...
configure: WARNING: unrecognized options: --with-compiler
checking for sdl-config... no
checking for sdl11-config... no
configure: error: *** SDL not found! Get SDL from www.libsdl.org.
$ sudo apt install libsdl1.2-dev

SDL-image

Configuring SDL-ttf-0.6.3.0...
checking for sdl-config... /usr/bin/sdl-config
checking for gcc... /usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking for TTF_OpenFont in -lSDL_ttf... no
configure: error: *** SDL_ttf lib not found! Get SDL_ttf from
$ sudo apt install libsdl-image1.2-dev

SDL-mixer

cabal: Failed to build SDL-mixer-0.6.3.0. The failure occurred during the
$ sudo apt install libsdl-mixer1.2-dev

SDL-ttf

Configuring SDL-ttf-0.6.3.0...
checking for sdl-config... /usr/bin/sdl-config
checking for gcc... /usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking for TTF_OpenFont in -lSDL_ttf... no
configure: error: *** SDL_ttf lib not found! Get SDL_ttf from
$ sudo apt install libsdl-ttf2.0-dev

sdl2

$ sudo apt install libsdl2-dev

sdl2-image

cabal: Could not resolve dependencies:
[__0] trying: dino-rush-0.0.0 (user goal)
[__1] next goal: sdl2-image (dependency of dino-rush)
[__1] rejecting: sdl2-image-2.0.0 (conflict: pkg-config package
SDL2_image==2.0.0 || >2.0.0, not found in the pkg-config database)
$ sudo apt install libsdl2-image-dev

sdl2-mixer

cabal: Could not resolve dependencies:
[__0] trying: dino-rush-0.0.0 (user goal)
[__1] next goal: sdl2-mixer (dependency of dino-rush)
[__1] rejecting: sdl2-mixer-1.1.0 (conflict: pkg-config package
SDL2_mixer==2.0.0 || >2.0.0, not found in the pkg-config database)
$ sudo apt install libsdl2-mixer-dev

sdl2-ttf

cabal: Could not resolve dependencies:
[__0] trying: dino-rush-0.0.0 (user goal)
[__1] next goal: sdl2-ttf (dependency of dino-rush)
[__1] rejecting: sdl2-ttf-2.1.0 (conflict: pkg-config package SDL2_ttf==2.0.12
|| >2.0.12, not found in the pkg-config database)
$ sudo apt install libsdl2-ttf-dev

sdl2-gfx

$ sudo apt install libsdl2-gfx-dev 

X11

checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether to build Xinerama... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking X11/extensions/Xinerama.h usability... no
checking X11/extensions/Xinerama.h presence... no
checking for X11/extensions/Xinerama.h... no
WARNING: Xinerama headers not found. Building without Xinerama support
checking X11/extensions/Xrandr.h usability... no
checking X11/extensions/Xrandr.h presence... no
checking for X11/extensions/Xrandr.h... no
configure: error: X11/extensions/Xrandr.h (from libXrandr) is required
$ sudo apt install \
    libx11-dev \
    libxrandr-dev \
    libxinerama-dev \
    libxss-dev
stack.yaml
extra-lib-dirs:
- /opt/X11/lib
extra-include-dirs:
- /opt/X11/include

Last updated