How to disable OpenGL on the Haskell platform?

I am on a shared Linux server where I cannot install the software. Installing OpenGL from the source seems to be a major pain (I stopped after discovering that Mesa is dependent on libxml2), and I don't use it in any of my Haskell programs.

How to disable OpenGL on the Haskell platform? I bypassed the configure checks by deleting them, but when I add --disable-OpenGLRaw or --without-OpenGLRaw to the ./configure options, it says “unrecognized options” and doesn't actually disable packages.

In addition, I tried using the boot bootstrap cabal, but for some reason cabal-install 0.14.0 does not work with GHC 7.6.3.

Many thanks!

+7
haskell haskell-platform cabal
source share
2 answers

You can use cabal-install 1.16.X with GHC 7.6.3. The Kabal web page is always lagging behind - it seems no one considers it their task to update this page. Instead, check out the hack page ( http://hackage.haskell.org/package/cabal-install ).

+6
source share

After a bit of trash, I seem to have got it. Send me a letter if I do not have enough instructions,

  • Comment on line printing errors from ./configure (or replace them with echo to keep syntax parity)
  • Remove all GL stuff (fgl, OpenGLRaw, GLUT, etc.) from packages/haskell-platform-*/haskell-platform.cabal and packages/platform.packages

The lines you should delete are as follows:

 as_fn_error $? "The OpenGL C library is required" "$LINENO" 5 

If you are stuck, here is a very bad diff that somehow works ( http://pastebin.com/azWNHsh8 ). Do not ask me, I deleted if by mistake and deleted fi elsewhere and it works ......

Let's hope the --disable-X flags work in a future version of the platform.

+5
source share

All Articles