
Hi and thanks for the answer! Well, I added --auto-ghci-libs after the --add-package (I added it twice since it occurrs in an if-else-statement). However HOpenGL.o still won't built, so I suppose I'll have to do without GHCi (after all I can do the largest part of the project before adding HOpenGL). Did you say that GHCi and HOpenGL works with Linux and Unix however if one adds --auto-ghci-libs ? ( Perhaps I'll install Linux some day then : ) (Guess there is no way to get HOpenGL working with Hugs since it doesn't even work with GHCi ?) Here comes some text from the bulid (perhaps you know what the error is): if test x"" = x ; then \ "/cygdrive/c/Program/Haskell/ghc-5.04/bin/ghc-pkg" --remove-package=HOpenGL | | true ; \ "/cygdrive/c/Program/Haskell/ghc-5.04/bin/ghc-pkg" --add-package --auto-ghci-libs < HOpenGL.conf ; \ else \ "/cygdrive/c/Program/Haskell/ghc-5.04/bin/ghc-pkg" --config-file="" --remove-package=HOpenGL || true ; \ "/cygdrive/c/Program/Haskell/ghc-5.04/bin/ghc-pkg" --config-file="" --force --add-package --auto-ghci-libs < HOpenGL.conf ; \ fi Saving old package config file... done. Writing new package config file... done. Reading package info from stdin... done. Expanding embedded variables...done. building GHCi library `$libdir/HOpenGL.o'...ld: cannot open output file $libdir/HOpenGL.o: No such file or directory done. Saving old package config file... done. Writing new package config file... done. Best regards Magnus Lindberg

Magnus Lindberg wrote:
[...] Did you say that GHCi and HOpenGL works with Linux and Unix however if one adds --auto-ghci-libs ?
Well, almost: GHCi's dynamic loader has a problem loading the GLUT library on my Linux, but I didn't have a closer look at that.
[...] (Guess there is no way to get HOpenGL working with Hugs since it doesn't even work with GHCi ?)
If I interpret the rumours correctly, there will be a new Hugs release very soon, implementing the new FFI. So probably there will be a way, but not yet.
Here comes some text from the bulid (perhaps you know what the error is): [...] building GHCi library `$libdir/HOpenGL.o'...ld: cannot open output file $libdir/HOpenGL.o: No such file or directory done.
Hmmm, a quick guess would be that this is a bug in ghc-pkg, but I can't tell at the moment. I'll have a look at the weekend. Cheers, S.
participants (2)
-
Magnus Lindberg
-
Sven Panne