Changes between Version 58 and Version 59 of WikiStart
- Timestamp:
- Jan 4, 2013, 3:56:43 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v58 v59 45 45 A2: Try installing gloss to use the GLFW window manager interface instead of GLUT: `cabal install gloss --flags="GLFW -GLUT"` 46 46 47 '''Q: Animations seem jerky.'''[[br]] 48 A: 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. 49 47 50 '''Q: On Windows, when I try to run a gloss program it says `user error (unknown GLUT entry glutInit)`.'''[[br]] 48 51 A1: 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. 49 52 50 '''Q: Animations seem jerky.'''[[br]]51 A: 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.53 '''Q: On Windows, how do I turn off the console window when the Gloss program runs?''' [[br]] 54 A: Pass GHC the flag `-optl-mwindows` when compiling the program. At runtime, if your program tries to write to `stdout` or `stderr` then Windows will kill the process. 52 55 53 56 '''Q: The window doesn't reshape properly under Xmonad.'''[[br]]