Re: [Haskell-cafe] Installing HOpenGL
No, ffi is no extra package. It would be helpful if you posted you configure output though. BTW, please CC the list when replying. The easiest way should be to use the "reply all" feature of your mail client. Thanks, Thomas On 24 jun 2007, at 15.24, Jimmy Miller wrote:
That's all I know right now. Is there another package I need to install for the C FFI? Also, is there any problem in Setup.hs saying that sh was not found?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
That looks like a missing C macro definition. It should probably expand to either stdcall or ccall. A bit more information would be helpful.
On 24 jun 2007, at 13.11, Jimmy Miller wrote:
I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems to work fine. It gives messages about things missing, like sh, but there are no errors.
When I run runghc Setup.hs build, I get the following error:
[ 4 of 81] Compiling Graphics.Rendering.OpenGL.GL.Extensions ( Graphics/Renderin g/OpenGL/GL/Extensions.hs, dist\build/Graphics/Rendering/OpenGL/GL/ Extensions.o )
Graphics/Rendering/OpenGL/GL/Extensions.hs:46:15: parse error on input `CALLCONV'
Does anyone know what might be going wrong?
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a> _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
Thanks, didn't know that. Here's the configure output: Configuring OpenGL-2.1... configure: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Dependency base-any: using base-2.0 configure: Using install prefix: C:\Program Files configure: Binaries installed in: C:\Program Files\Haskell\bin configure: Libraries installed in: C:\Program Files\Haskell\OpenGL-2.1\ghc-6.6 configure: Private binaries installed in: C:\Program Files\OpenGL-2.1 configure: Data files installed in: C:\Program Files\Common Files\OpenGL-2.1 configure: Using compiler: C:\ghc\ghc-6.6\bin\ghc.exe configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Using ar found on system at: C:\ghc\ghc-6.6\bin\ar.exe configure: No haddock found configure: No pfesetup found configure: No ranlib found configure: Using runghc found on system at: C:\ghc\ghc-6.6\bin\runghc.exe configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: C:\ghc\ghc-6.6\bin\hsc2hs.exe configure: No c2hs found configure: No cpphs found configure: No greencard found Setup.hs: Cannot find: sh On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
No, ffi is no extra package. It would be helpful if you posted you configure output though.
BTW, please CC the list when replying. The easiest way should be to use the "reply all" feature of your mail client.
Thanks,
Thomas
On 24 jun 2007, at 15.24, Jimmy Miller wrote:
That's all I know right now. Is there another package I need to install for the C FFI? Also, is there any problem in Setup.hs saying that sh was not found?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
That looks like a missing C macro definition. It should probably expand to either stdcall or ccall. A bit more information would be helpful.
On 24 jun 2007, at 13.11, Jimmy Miller wrote:
I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems to work fine. It gives messages about things missing, like sh, but there are no errors.
When I run runghc Setup.hs build, I get the following error:
[ 4 of 81] Compiling Graphics.Rendering.OpenGL.GL.Extensions ( Graphics/Renderin g/OpenGL/GL/Extensions.hs, dist\build/Graphics/Rendering/OpenGL/GL/ Extensions.o )
Graphics/Rendering/OpenGL/GL/Extensions.hs:46:15: parse error on input `CALLCONV'
Does anyone know what might be going wrong?
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a> _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
On 24 jun 2007, at 19.53, Jimmy Miller wrote:
Thanks, didn't know that. Here's the configure output:
Configuring OpenGL-2.1... configure: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Dependency base-any: using base-2.0 configure: Using install prefix: C:\Program Files configure: Binaries installed in: C:\Program Files\Haskell\bin configure: Libraries installed in: C:\Program Files\Haskell \OpenGL-2.1\ghc-6.6 configure: Private binaries installed in: C:\Program Files\OpenGL-2.1 configure: Data files installed in: C:\Program Files\Common Files \OpenGL-2.1 configure: Using compiler: C:\ghc\ghc-6.6\bin\ghc.exe configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Using ar found on system at: C:\ghc\ghc-6.6\bin\ar.exe configure: No haddock found configure: No pfesetup found configure: No ranlib found configure: Using runghc found on system at: C:\ghc\ghc-6.6\bin \runghc.exe configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: C:\ghc\ghc-6.6\bin\hsc2hs.exe configure: No c2hs found configure: No cpphs found configure: No greencard found Setup.hs: Cannot find: sh
Oh. This is an error during configuration. I guess we could make cabal be more clear about this. You probably have to install cygwin, I don't have any Windows system, so I don't know. I presume the easiest option would be some binary distribution. Isn't OpenGL part of GHC's extra packages?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
No, ffi is no extra package. It would be helpful if you posted you configure output though.
BTW, please CC the list when replying. The easiest way should be to use the "reply all" feature of your mail client.
Thanks,
Thomas
On 24 jun 2007, at 15.24, Jimmy Miller wrote:
That's all I know right now. Is there another package I need to install for the C FFI? Also, is there any problem in Setup.hs saying that sh was not found?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
That looks like a missing C macro definition. It should probably expand to either stdcall or ccall. A bit more information would be helpful.
On 24 jun 2007, at 13.11, Jimmy Miller wrote:
I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems to work fine. It gives messages about things missing, like sh, but there are no errors.
When I run runghc Setup.hs build, I get the following error:
[ 4 of 81] Compiling Graphics.Rendering.OpenGL.GL.Extensions ( Graphics/Renderin g/OpenGL/GL/Extensions.hs, dist\build/Graphics/Rendering/ OpenGL/GL/ Extensions.o )
Graphics/Rendering/OpenGL/GL/Extensions.hs:46:15: parse error on input `CALLCONV'
Does anyone know what might be going wrong?
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a> _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
I already installed Cygwin; I'll go over the INSTALL file and make sure I have all the required packages. And there was an HOpenGL tutorial from 2001 that said OpenGL would eventually be packaged with ghc, but I tried -package OpenGL and that didn't work, and I'm not sure where else I could download it. On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
On 24 jun 2007, at 19.53, Jimmy Miller wrote:
Thanks, didn't know that. Here's the configure output:
Configuring OpenGL-2.1... configure: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Dependency base-any: using base-2.0 configure: Using install prefix: C:\Program Files configure: Binaries installed in: C:\Program Files\Haskell\bin configure: Libraries installed in: C:\Program Files\Haskell \OpenGL-2.1\ghc-6.6 configure: Private binaries installed in: C:\Program Files\OpenGL-2.1 configure: Data files installed in: C:\Program Files\Common Files \OpenGL-2.1 configure: Using compiler: C:\ghc\ghc-6.6\bin\ghc.exe configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Using ar found on system at: C:\ghc\ghc-6.6\bin\ar.exe configure: No haddock found configure: No pfesetup found configure: No ranlib found configure: Using runghc found on system at: C:\ghc\ghc-6.6\bin \runghc.exe configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: C:\ghc\ghc-6.6\bin\hsc2hs.exe configure: No c2hs found configure: No cpphs found configure: No greencard found Setup.hs: Cannot find: sh
Oh. This is an error during configuration. I guess we could make cabal be more clear about this.
You probably have to install cygwin, I don't have any Windows system, so I don't know. I presume the easiest option would be some binary distribution. Isn't OpenGL part of GHC's extra packages?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
No, ffi is no extra package. It would be helpful if you posted you configure output though.
BTW, please CC the list when replying. The easiest way should be to use the "reply all" feature of your mail client.
Thanks,
Thomas
On 24 jun 2007, at 15.24, Jimmy Miller wrote:
That's all I know right now. Is there another package I need to install for the C FFI? Also, is there any problem in Setup.hs saying that sh was not found?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
That looks like a missing C macro definition. It should probably expand to either stdcall or ccall. A bit more information would be helpful.
On 24 jun 2007, at 13.11, Jimmy Miller wrote:
I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems to work fine. It gives messages about things missing, like sh, but there are no errors.
When I run runghc Setup.hs build, I get the following error:
[ 4 of 81] Compiling Graphics.Rendering.OpenGL.GL.Extensions ( Graphics/Renderin g/OpenGL/GL/Extensions.hs, dist\build/Graphics/Rendering/ OpenGL/GL/ Extensions.o )
Graphics/Rendering/OpenGL/GL/Extensions.hs:46:15: parse error on input `CALLCONV'
Does anyone know what might be going wrong?
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a> _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
I added Cygwin to my path so sh can be found, but now configure tells me "c compiler cannot create executables" On 6/24/07, Jimmy Miller <captainthunder@gmail.com> wrote:
I already installed Cygwin; I'll go over the INSTALL file and make sure I have all the required packages.
And there was an HOpenGL tutorial from 2001 that said OpenGL would eventually be packaged with ghc, but I tried -package OpenGL and that didn't work, and I'm not sure where else I could download it.
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
On 24 jun 2007, at 19.53, Jimmy Miller wrote:
Thanks, didn't know that. Here's the configure output:
Configuring OpenGL-2.1... configure: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Dependency base-any: using base-2.0 configure: Using install prefix: C:\Program Files configure: Binaries installed in: C:\Program Files\Haskell\bin configure: Libraries installed in: C:\Program Files\Haskell \OpenGL-2.1\ghc-6.6 configure: Private binaries installed in: C:\Program Files\OpenGL-2.1 configure: Data files installed in: C:\Program Files\Common Files \OpenGL-2.1 configure: Using compiler: C:\ghc\ghc-6.6\bin\ghc.exe configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Using ar found on system at: C:\ghc\ghc-6.6\bin\ar.exe configure: No haddock found configure: No pfesetup found configure: No ranlib found configure: Using runghc found on system at: C:\ghc\ghc-6.6\bin \runghc.exe configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: C:\ghc\ghc-6.6\bin\hsc2hs.exe configure: No c2hs found configure: No cpphs found configure: No greencard found Setup.hs: Cannot find: sh
Oh. This is an error during configuration. I guess we could make cabal be more clear about this.
You probably have to install cygwin, I don't have any Windows system, so I don't know. I presume the easiest option would be some binary distribution. Isn't OpenGL part of GHC's extra packages?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
No, ffi is no extra package. It would be helpful if you posted you configure output though.
BTW, please CC the list when replying. The easiest way should be to use the "reply all" feature of your mail client.
Thanks,
Thomas
On 24 jun 2007, at 15.24, Jimmy Miller wrote:
That's all I know right now. Is there another package I need to install for the C FFI? Also, is there any problem in Setup.hs saying that sh was not found?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
That looks like a missing C macro definition. It should probably expand to either stdcall or ccall. A bit more information would be helpful.
On 24 jun 2007, at 13.11, Jimmy Miller wrote:
> I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. > runghc Setup.hs configure seems to work fine. It gives messages about > things missing, like sh, but there are no errors. > > When I run runghc Setup.hs build, I get the following error: > > [ 4 of 81] Compiling Graphics.Rendering.OpenGL.GL.Extensions > ( Graphics/Renderin > g/OpenGL/GL/Extensions.hs, dist\build/Graphics/Rendering/ OpenGL/GL/ > Extensions.o > ) > > Graphics/Rendering/OpenGL/GL/Extensions.hs:46:15: > parse error on input `CALLCONV' > > Does anyone know what might be going wrong? > > -- > <a href="http://www.spreadfirefox.com/? > q=affiliates&id=153516&t=1"><textarea > rows="3" cols="40">Get Firefox!</a> > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
Yes, the OpenGL website seems unmaintained. I presume the easiest way to set it all up is to use the installer from http://www.haskell.org/ghc/download_ghc_661.html#windows From the size of it it seems to include all the extra packages. / Thomas On 24 jun 2007, at 21.50, Jimmy Miller wrote:
I already installed Cygwin; I'll go over the INSTALL file and make sure I have all the required packages.
And there was an HOpenGL tutorial from 2001 that said OpenGL would eventually be packaged with ghc, but I tried -package OpenGL and that didn't work, and I'm not sure where else I could download it.
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
On 24 jun 2007, at 19.53, Jimmy Miller wrote:
Thanks, didn't know that. Here's the configure output:
Configuring OpenGL-2.1... configure: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Dependency base-any: using base-2.0 configure: Using install prefix: C:\Program Files configure: Binaries installed in: C:\Program Files\Haskell\bin configure: Libraries installed in: C:\Program Files\Haskell \OpenGL-2.1\ghc-6.6 configure: Private binaries installed in: C:\Program Files \OpenGL-2.1 configure: Data files installed in: C:\Program Files\Common Files \OpenGL-2.1 configure: Using compiler: C:\ghc\ghc-6.6\bin\ghc.exe configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Using ar found on system at: C:\ghc\ghc-6.6\bin\ar.exe configure: No haddock found configure: No pfesetup found configure: No ranlib found configure: Using runghc found on system at: C:\ghc\ghc-6.6\bin \runghc.exe configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: C:\ghc\ghc-6.6\bin\hsc2hs.exe configure: No c2hs found configure: No cpphs found configure: No greencard found Setup.hs: Cannot find: sh
Oh. This is an error during configuration. I guess we could make cabal be more clear about this.
You probably have to install cygwin, I don't have any Windows system, so I don't know. I presume the easiest option would be some binary distribution. Isn't OpenGL part of GHC's extra packages?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
No, ffi is no extra package. It would be helpful if you posted you configure output though.
BTW, please CC the list when replying. The easiest way should be to use the "reply all" feature of your mail client.
Thanks,
Thomas
On 24 jun 2007, at 15.24, Jimmy Miller wrote:
That's all I know right now. Is there another package I need to install for the C FFI? Also, is there any problem in Setup.hs saying that sh was not found?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
That looks like a missing C macro definition. It should probably expand to either stdcall or ccall. A bit more information would be helpful.
On 24 jun 2007, at 13.11, Jimmy Miller wrote:
> I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. > runghc Setup.hs configure seems to work fine. It gives messages about > things missing, like sh, but there are no errors. > > When I run runghc Setup.hs build, I get the following error: > > [ 4 of 81] Compiling Graphics.Rendering.OpenGL.GL.Extensions > ( Graphics/Renderin > g/OpenGL/GL/Extensions.hs, dist\build/Graphics/Rendering/ OpenGL/GL/ > Extensions.o > ) > > Graphics/Rendering/OpenGL/GL/Extensions.hs:46:15: > parse error on input `CALLCONV' > > Does anyone know what might be going wrong? > > -- > <a href="http://www.spreadfirefox.com/? > q=affiliates&id=153516&t=1"><textarea > rows="3" cols="40">Get Firefox!</a> > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
I've installed ghc 6.6.1, but when I try to compile and OGL program like this: ghc -package GLUT ogl.hs I get the error: Failed to load interface for `GLUT': Use -v to see a list of the files searched for. I tried running -v, but it doesn't tell me anything useful. On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
Yes, the OpenGL website seems unmaintained. I presume the easiest way to set it all up is to use the installer from http://www.haskell.org/ghc/download_ghc_661.html#windows
From the size of it it seems to include all the extra packages.
/ Thomas
On 24 jun 2007, at 21.50, Jimmy Miller wrote:
I already installed Cygwin; I'll go over the INSTALL file and make sure I have all the required packages.
And there was an HOpenGL tutorial from 2001 that said OpenGL would eventually be packaged with ghc, but I tried -package OpenGL and that didn't work, and I'm not sure where else I could download it.
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
On 24 jun 2007, at 19.53, Jimmy Miller wrote:
Thanks, didn't know that. Here's the configure output:
Configuring OpenGL-2.1... configure: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Dependency base-any: using base-2.0 configure: Using install prefix: C:\Program Files configure: Binaries installed in: C:\Program Files\Haskell\bin configure: Libraries installed in: C:\Program Files\Haskell \OpenGL-2.1\ghc-6.6 configure: Private binaries installed in: C:\Program Files \OpenGL-2.1 configure: Data files installed in: C:\Program Files\Common Files \OpenGL-2.1 configure: Using compiler: C:\ghc\ghc-6.6\bin\ghc.exe configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: C:\ghc\ghc-6.6\bin\ghc-pkg.exe configure: Using ar found on system at: C:\ghc\ghc-6.6\bin\ar.exe configure: No haddock found configure: No pfesetup found configure: No ranlib found configure: Using runghc found on system at: C:\ghc\ghc-6.6\bin \runghc.exe configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: C:\ghc\ghc-6.6\bin\hsc2hs.exe configure: No c2hs found configure: No cpphs found configure: No greencard found Setup.hs: Cannot find: sh
Oh. This is an error during configuration. I guess we could make cabal be more clear about this.
You probably have to install cygwin, I don't have any Windows system, so I don't know. I presume the easiest option would be some binary distribution. Isn't OpenGL part of GHC's extra packages?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
No, ffi is no extra package. It would be helpful if you posted you configure output though.
BTW, please CC the list when replying. The easiest way should be to use the "reply all" feature of your mail client.
Thanks,
Thomas
On 24 jun 2007, at 15.24, Jimmy Miller wrote:
That's all I know right now. Is there another package I need to install for the C FFI? Also, is there any problem in Setup.hs saying that sh was not found?
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote: > That looks like a missing C macro definition. It should probably > expand to either stdcall or ccall. A bit more information would be > helpful. > > > On 24 jun 2007, at 13.11, Jimmy Miller wrote: > > > I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. > > runghc Setup.hs configure seems to work fine. It gives messages > about > > things missing, like sh, but there are no errors. > > > > When I run runghc Setup.hs build, I get the following error: > > > > [ 4 of 81] Compiling Graphics.Rendering.OpenGL.GL.Extensions > > ( Graphics/Renderin > > g/OpenGL/GL/Extensions.hs, dist\build/Graphics/Rendering/ OpenGL/GL/ > > Extensions.o > > ) > > > > Graphics/Rendering/OpenGL/GL/Extensions.hs:46:15: > > parse error on input `CALLCONV' > > > > Does anyone know what might be going wrong? > > > > -- > > <a href="http://www.spreadfirefox.com/? > > q=affiliates&id=153516&t=1"><textarea > > rows="3" cols="40">Get Firefox!</a> > > _______________________________________________ > > Haskell-Cafe mailing list > > Haskell-Cafe@haskell.org > > http://www.haskell.org/mailman/listinfo/haskell-cafe > >
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
On 25 jun 2007, at 00.18, Jimmy Miller wrote:
I've installed ghc 6.6.1, but when I try to compile and OGL program like this:
ghc -package GLUT ogl.hs
I get the error: Failed to load interface for `GLUT': Use -v to see a list of the files searched for.
I tried running -v, but it doesn't tell me anything useful.
Can you post the output of "ghc-pkg list"? If that doesn't list GLUT, then it is not installed (or not correctly). If it is installed, you can try ghc --make ogl.hs That usually takes care of all the required packages (so can avoid a lot of fiddling around). / Thomas
Here it is. Both OpenGL and GLUT are installed: Cabal-1.1.6.2, GLUT-2.1.1, HUnit-1.1.1, OpenGL-2.2.1, QuickCheck-1.0.1, Win32-2.1.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1, filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0, html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, regex-base-0.72, regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0, template-haskell-2.1, time-1.1.1, xhtml-3000.0.2 I tried using --make, but ghc said "could not find module GL" On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
On 25 jun 2007, at 00.18, Jimmy Miller wrote:
I've installed ghc 6.6.1, but when I try to compile and OGL program like this:
ghc -package GLUT ogl.hs
I get the error: Failed to load interface for `GLUT': Use -v to see a list of the files searched for.
I tried running -v, but it doesn't tell me anything useful.
Can you post the output of "ghc-pkg list"? If that doesn't list GLUT, then it is not installed (or not correctly). If it is installed, you can try
ghc --make ogl.hs
That usually takes care of all the required packages (so can avoid a lot of fiddling around).
/ Thomas
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
I got the packages imported by using the full names (Graphics.UI.GLUT and Graphics.Rendering.OpenGL.GL). The compiler doesn't recognize names like WindowPosition and WindowSize, but I assume that's because the code is so out of date (this is from the 2001 tutorial). I'll look in the docs to see how to procede. On 6/24/07, Jimmy Miller <captainthunder@gmail.com> wrote:
Here it is. Both OpenGL and GLUT are installed: Cabal-1.1.6.2, GLUT-2.1.1, HUnit-1.1.1, OpenGL-2.2.1, QuickCheck-1.0.1, Win32-2.1.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1, filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0, html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, regex-base-0.72, regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0, template-haskell-2.1, time-1.1.1, xhtml-3000.0.2
I tried using --make, but ghc said "could not find module GL"
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
On 25 jun 2007, at 00.18, Jimmy Miller wrote:
I've installed ghc 6.6.1, but when I try to compile and OGL program like this:
ghc -package GLUT ogl.hs
I get the error: Failed to load interface for `GLUT': Use -v to see a list of the files searched for.
I tried running -v, but it doesn't tell me anything useful.
Can you post the output of "ghc-pkg list"? If that doesn't list GLUT, then it is not installed (or not correctly). If it is installed, you can try
ghc --make ogl.hs
That usually takes care of all the required packages (so can avoid a lot of fiddling around).
/ Thomas
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
I found the examples included in the source code very helpful. http://darcs.haskell.org/packages/GLUT/examples/ I think the RedBook directory contains the most examples. If you want to know the modules a package exports you can use, e.g.. $ ghc-pkg describe OpenGL name: OpenGL version: 2.2.1 license: BSD3 copyright: maintainer: sven.panne@aedion.de stability: homepage: package-url: description: category: author: exposed: True exposed-modules: Graphics.Rendering.OpenGL.GL.Antialiasing Graphics.Rendering.OpenGL.GL.BasicTypes [...] These are the full names of the modules, you have to use to import them. For GLUT there's one module that re-exports all others, iirc. / Thomas On 25 jun 2007, at 01.21, Jimmy Miller wrote:
I got the packages imported by using the full names (Graphics.UI.GLUT and Graphics.Rendering.OpenGL.GL). The compiler doesn't recognize names like WindowPosition and WindowSize, but I assume that's because the code is so out of date (this is from the 2001 tutorial). I'll look in the docs to see how to procede.
On 6/24/07, Jimmy Miller <captainthunder@gmail.com> wrote:
Here it is. Both OpenGL and GLUT are installed: Cabal-1.1.6.2, GLUT-2.1.1, HUnit-1.1.1, OpenGL-2.2.1, QuickCheck-1.0.1, Win32-2.1.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1, filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0, html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, regex- base-0.72, regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0, template-haskell-2.1, time-1.1.1, xhtml-3000.0.2
I tried using --make, but ghc said "could not find module GL"
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
On 25 jun 2007, at 00.18, Jimmy Miller wrote:
I've installed ghc 6.6.1, but when I try to compile and OGL
program
like this:
ghc -package GLUT ogl.hs
I get the error: Failed to load interface for `GLUT': Use -v to see a list of the files searched for.
I tried running -v, but it doesn't tell me anything useful.
Can you post the output of "ghc-pkg list"? If that doesn't list GLUT, then it is not installed (or not correctly). If it is installed, you can try
ghc --make ogl.hs
That usually takes care of all the required packages (so can avoid a lot of fiddling around).
/ Thomas
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
I'll look at those. Everything's working fine now, thanks for all of your help :) On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
I found the examples included in the source code very helpful.
http://darcs.haskell.org/packages/GLUT/examples/
I think the RedBook directory contains the most examples.
If you want to know the modules a package exports you can use, e.g..
$ ghc-pkg describe OpenGL name: OpenGL version: 2.2.1 license: BSD3 copyright: maintainer: sven.panne@aedion.de stability: homepage: package-url: description: category: author: exposed: True exposed-modules: Graphics.Rendering.OpenGL.GL.Antialiasing Graphics.Rendering.OpenGL.GL.BasicTypes [...]
These are the full names of the modules, you have to use to import them. For GLUT there's one module that re-exports all others, iirc.
/ Thomas
On 25 jun 2007, at 01.21, Jimmy Miller wrote:
I got the packages imported by using the full names (Graphics.UI.GLUT and Graphics.Rendering.OpenGL.GL). The compiler doesn't recognize names like WindowPosition and WindowSize, but I assume that's because the code is so out of date (this is from the 2001 tutorial). I'll look in the docs to see how to procede.
On 6/24/07, Jimmy Miller <captainthunder@gmail.com> wrote:
Here it is. Both OpenGL and GLUT are installed: Cabal-1.1.6.2, GLUT-2.1.1, HUnit-1.1.1, OpenGL-2.2.1, QuickCheck-1.0.1, Win32-2.1.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1, filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0, html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, regex- base-0.72, regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0, template-haskell-2.1, time-1.1.1, xhtml-3000.0.2
I tried using --make, but ghc said "could not find module GL"
On 6/24/07, Thomas Schilling <nominolo@googlemail.com> wrote:
On 25 jun 2007, at 00.18, Jimmy Miller wrote:
I've installed ghc 6.6.1, but when I try to compile and OGL
program
like this:
ghc -package GLUT ogl.hs
I get the error: Failed to load interface for `GLUT': Use -v to see a list of the files searched for.
I tried running -v, but it doesn't tell me anything useful.
Can you post the output of "ghc-pkg list"? If that doesn't list GLUT, then it is not installed (or not correctly). If it is installed, you can try
ghc --make ogl.hs
That usually takes care of all the required packages (so can avoid a lot of fiddling around).
/ Thomas
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/? q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
-- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a>
participants (2)
-
Jimmy Miller -
Thomas Schilling