cobbpg / hp2any

Haskell space profiling toolset
http://www.haskell.org/haskellwiki/Hp2any
14 stars 15 forks source link

Windows build glut isn't found #5

Open NCrashed opened 9 years ago

NCrashed commented 9 years ago

Building with Haskell Platform 2014.2.0.0

When building:

Configuring hp2any-graph-0.5.4.2...
setup-Cabal-1.18.1.3-x86_64-windows-ghc-7.8.3.exe: Missing dependency on a
foreign library:
* Missing C library: glut
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.
cabal: Error: some packages failed to install:
hp2any-graph-0.5.4.2 failed during the configure step. The exception was:
ExitFailure 1

Hot fix - replace extra-libs clause by:

    if os(windows) 
      extra-libraries: glut32 
    else 
      extra-libraries: glut