Re: [Haskell] ANNOUNCE: OpenGL 2.3.0.0

On Wed, Jul 29, 2009 at 06:26:30PM +0200, Sven Panne wrote:
Apart from that, a bug in vertexAttribPointer has been fixed.
...and the new ObjectName, StateVar and Tensor packages are being used, and this is great! Thanks for the release. -- Felipe.

Just a heads up:
I did a cabal install Tensor on my Ubuntu box, and got the following
message:
src/Data/Tensor.hs:333:18: Not in scope: `mapAccumL'
I will investigate a little more and let you know.
On Wed, Jul 29, 2009 at 13:55, Felipe Lessa
On Wed, Jul 29, 2009 at 06:26:30PM +0200, Sven Panne wrote:
Apart from that, a bug in vertexAttribPointer has been fixed.
...and the new ObjectName, StateVar and Tensor packages are being used, and this is great! Thanks for the release.
-- Felipe. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

That was quick! mapAccumL was added to Data.Traversable in package base-4. GHC 6.8.2 uses base-3... I think I will be forced to upgrade my GHC by hand... I just can't stand 6.8.2 anymore... On Wed, Jul 29, 2009 at 22:17, Rafael Gustavo da Cunha Pereira Pinto < RafaelGCPP.Linux@gmail.com> wrote:
Just a heads up:
I did a cabal install Tensor on my Ubuntu box, and got the following message:
src/Data/Tensor.hs:333:18: Not in scope: `mapAccumL'
I will investigate a little more and let you know.

On Wed, Jul 29, 2009 at 10:24:23PM -0300, Rafael Gustavo da Cunha Pereira Pinto wrote:
mapAccumL was added to Data.Traversable in package base-4. GHC 6.8.2 uses base-3...
But this means that Tensor's dependencies should be on base >= 4, not 3. -- Felipe.

BTW, OpenGL-2.3 breaks GLFW-0.3
On Wed, Jul 29, 2009 at 22:47, Felipe Lessa
On Wed, Jul 29, 2009 at 10:24:23PM -0300, Rafael Gustavo da Cunha Pereira Pinto wrote:
mapAccumL was added to Data.Traversable in package base-4. GHC 6.8.2 uses base-3...
But this means that Tensor's dependencies should be on base >= 4, not 3.
-- Felipe. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Rafael Gustavo da Cunha Pereira Pinto

Here is a patch that makes it compile, but then it breaks all code developed for GLFW-0.3, as all Floats need to be changed to CFloat. For all haskellers here: Sorry for all this annoyance, but I was starting to study those libraries (OpenGL, GLUT and GLFW) using Haskell and the update broke some of my code. Best Regards, Rafael

I just the the rebuild of the haskell glut / opengl libs and I got the following message Configuring OpenGLRaw-1.0.1.0... cabal: Missing dependency on a foreign library: * Missing C library: GL This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. cabal: Error: some packages failed to install: GLURaw-1.0.0.0 depends on OpenGLRaw-1.0.1.0 which failed to install. OpenGL-2.3.0.0 depends on OpenGLRaw-1.0.1.0 which failed to install. OpenGLRaw-1.0.1.0 failed during the configure step. The exception was: and I don't see how to get the openglraw to build or what has changed thanks for any help -Carter On Thu, Jul 30, 2009 at 8:23 PM, Rafael Gustavo da Cunha Pereira Pinto < RafaelGCPP.Linux@gmail.com> wrote:
Here is a patch that makes it compile, but then it breaks all code developed for GLFW-0.3, as all Floats need to be changed to CFloat.
For all haskellers here:
Sorry for all this annoyance, but I was starting to study those libraries (OpenGL, GLUT and GLFW) using Haskell and the update broke some of my code.
Best Regards,
Rafael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Carter,
It seems you need to install opengl-dev or something like that in your Linux
instalation (using apt-get, yum or similar tool).
Regards,
Rafael
On Fri, Jul 31, 2009 at 17:24, Carter Schonwald
I just the the rebuild of the haskell glut / opengl libs and I got the following message Configuring OpenGLRaw-1.0.1.0... cabal: Missing dependency on a foreign library: * Missing C library: GL This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. cabal: Error: some packages failed to install: GLURaw-1.0.0.0 depends on OpenGLRaw-1.0.1.0 which failed to install. OpenGL-2.3.0.0 depends on OpenGLRaw-1.0.1.0 which failed to install. OpenGLRaw-1.0.1.0 failed during the configure step. The exception was:
and I don't see how to get the openglraw to build or what has changed
thanks for any help -Carter
On Thu, Jul 30, 2009 at 8:23 PM, Rafael Gustavo da Cunha Pereira Pinto < RafaelGCPP.Linux@gmail.com> wrote:
Here is a patch that makes it compile, but then it breaks all code developed for GLFW-0.3, as all Floats need to be changed to CFloat.
For all haskellers here:
Sorry for all this annoyance, but I was starting to study those libraries (OpenGL, GLUT and GLFW) using Haskell and the update broke some of my code.
Best Regards,
Rafael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Rafael Gustavo da Cunha Pereira Pinto

pardon if this is the wrong context to ask, but whats the approriate way to
do that on os x?
2009/7/31 Rafael Gustavo da Cunha Pereira Pinto
Carter,
It seems you need to install opengl-dev or something like that in your Linux instalation (using apt-get, yum or similar tool).
Regards,
Rafael
On Fri, Jul 31, 2009 at 17:24, Carter Schonwald < carter.schonwald@gmail.com> wrote:
I just the the rebuild of the haskell glut / opengl libs and I got the following message Configuring OpenGLRaw-1.0.1.0... cabal: Missing dependency on a foreign library: * Missing C library: GL This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. cabal: Error: some packages failed to install: GLURaw-1.0.0.0 depends on OpenGLRaw-1.0.1.0 which failed to install. OpenGL-2.3.0.0 depends on OpenGLRaw-1.0.1.0 which failed to install. OpenGLRaw-1.0.1.0 failed during the configure step. The exception was:
and I don't see how to get the openglraw to build or what has changed
thanks for any help -Carter
On Thu, Jul 30, 2009 at 8:23 PM, Rafael Gustavo da Cunha Pereira Pinto < RafaelGCPP.Linux@gmail.com> wrote:
Here is a patch that makes it compile, but then it breaks all code developed for GLFW-0.3, as all Floats need to be changed to CFloat.
For all haskellers here:
Sorry for all this annoyance, but I was starting to study those libraries (OpenGL, GLUT and GLFW) using Haskell and the update broke some of my code.
Best Regards,
Rafael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Rafael Gustavo da Cunha Pereira Pinto

Rafael Gustavo da Cunha Pereira Pinto wrote:
Sorry for all this annoyance, but I was starting to study those libraries (OpenGL, GLUT and GLFW) using Haskell and the update broke some of my code.
Here is a patch that makes it compile, but then it breaks all code developed for GLFW-0.3, as all Floats need to be changed to CFloat.
--- GLFW-0.3/Graphics/UI/GLFW.hs 2008-01-15 20:23:18.000000000 -0200 +++ GLFW.hs 2009-07-30 21:09:55.000000000 -0300 @@ -517,11 +517,11 @@ _GLFW_INFINITY = 100000.0 :: Double
-- Callback function type -type GLFWwindowsizefun = Int32 -> Int32 -> IO () +type GLFWwindowsizefun = CInt -> CInt -> IO ()
[snip] You should use the type aliases GLint, GLfloat, etc. HTH, Bertram
participants (4)
-
Bertram Felgenhauer
-
Carter Schonwald
-
Felipe Lessa
-
Rafael Gustavo da Cunha Pereira Pinto