[Haskell-cafe] Trying to build a stand-alone executable GLUT app
with ghc, Windows XP
ps.haskell at gmail.com
Fri Apr 25 22:05:06 EDT 2008
Trying to build a stand-alone executable GLUT app with ghc, Windows XP
I compile and link (without errors) a simple GLUT application under Windows
When I run it, XP pops an error window saying the app cannot start due to a
I want to do a static build to create a stand-alone executable GLUT app
under Windows XP,
without using DLL files, or placing any files in the Windows system dir.
This is my first GUI code in Haskell, and I chose GLUT because it is a
Following are some details.
Thanks much for any advice.
-- Simple GLUT app to create a window
module Main(main) where
main = do
(progname, _) <- getArgsAndInitialize
createWindow "Hello World"
ghc-6.8.2 on a USB flashdrive under a non-admin Windows XP account
ghc dir is not on C:
XP shell used: cmd.exe
ghc library path
E:\ghcTest>ghc --make x -package GLUT
[1 of 1] Compiling Main ( x.hs, x.o )
Linking x.exe ...
files (sizes in bytes)
When application is run
Error dialog window pops up
a.exe - Unable To Locate Component
The application has failed to start because glut32.dll was not found.
Re-installing the application may fix this problem.
No output in shell; no glut window is created.
Other builds tried; same runtime error
ghc --make x -package GLUT -static
ghc -package GLUT x.hs -o x
ghc --make x -package GLUT -LE:\apps\ghc\ghc-6.8.2\lib\GLUT-188.8.131.52
ghc --make x -LE:\apps\ghc\ghc-6.8.2\lib\GLUT-184.108.40.206
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe