2016-07-07 3 views
0

gd을 종속성으로 설치하려고하지만 설치되지 않은 C 라이브러리에서는 실패합니다. Windows에 GD 라이브러리 설치

Configuring gd-3000.7.3... 
setup-Simple-Cabal-1.22.5.0-ghc-7.10.3.exe: Missing dependencies on foreign 
libraries: 
* Missing (or bad) header file: gd.h 
* Missing C libraries: gd, png, jpeg, fontconfig, freetype, expat 
This problem can usually be solved by installing the system packages that 
provide these libraries (you may need the "-dev" versions). If the libraries 
are already installed but in a non-standard location then you can use the 
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. 
If the header 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. 

나는 내가 등록 할 수 있도록 내가 그것을 설치해야 아무 생각하지만 GD for Windows를 사전 구축 발견했다.

답변

0

pacman package manager을 제공하는 최신 버전의 스택 번들 MSYS2.

우선 자체

stack exec -- pacman -S mingw-w64-x86_64-gd 
+0

감사를 통해 설치 될 수

stack exec -- pacman -Syu 

GD [레딧 ON/U/tejon (https://www.reddit.com/를 사용 MSYS 환경을 업데이트하려고 r/haskellgamedev/comments/4jpthu/windows_sdl2_is_now_almost_painless_via_stack /)를 호출합니다. –