Changes between Version 52 and Version 53 of WikiStart


Ignore:
Timestamp:
Oct 13, 2012, 6:24:03 AM (12 years ago)
Author:
Ben Lippmeier
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v52 v53  
    3333
    3434== Frequently Asked Questions (FAQ) ==
    35 Q: Gloss freezes in `ghci`. It tries to draw the window but I don't get a picture and must kill the process.[[br]]
     35'''Q: Gloss freezes in `ghci`. It tries to draw the window but I don't get a picture and must kill the process.'''[[br]]
    3636A0: Upgrade to at least GHC 7.2[[br]]
    3737A1: Start `ghci` with `-fno-ghci-sandbox`. This is because OpenGL uses thread local state, which doesn't work when the running program is in a different thread.[[br]]
    3838A2: Try installing gloss to use the GLFW window manager interface instead of GLUT: `cabal install gloss --flags="GLFW -GLUT"`
    3939
    40 Q: Animations seem jerky.[[br]]
     40'''Q: On Windows, when I try to run a gloss program it says `user error (unknown GLUT entry glutInit)`.'''[[br]]
     41A1: You need to install `glut32.dll`. Copy it into `\Windows\System32` (for 32-bit installs) or `\Windows\SysWOW64` (for 64-bit installs). Alternatively, you can just copy it into the same directory as the `Main.exe` executable you are trying to run.
     42
     43'''Q: Animations seem jerky.'''[[br]]
    4144A: Make sure you're compiling with {{{-O2 -threaded}}}. Without the threaded runtime, the code that manages the frame rate will behave badly. This is because GHC takes too long to reschedule the gloss process after the sleep timer has expired. With the threaded runtime, most simple animations should run at about 100fps, which is our internal frame-rate cap.
    4245
    43 Q: The window doesn't reshape properly under Xmonad.[[br]]
     46'''Q: The window doesn't reshape properly under Xmonad.'''[[br]]
    4447A: Use the GLFW window manager interface instead, or prod the Xmonad people about it. This is probably an incompatibility between Xmonad and GLUT, but the main Gloss developer doesn't use Xmonad.
    4548