Error installing GLFW on mac using cabal for haskell

I have Max OSx 10.6.8, Xcode 3.2.6 (the latest version is available for my Mac version). I am using haskell, but I am having problems using opengl.

I found an offer on the Internet as follows:

cabal update cabal install OpenGL cabal install GLFW 

My mistake appeared in the third team. I got a fatal error, she says:

 cabal: Error: some packages failed to install: GLFW-0.4.2 failed during the building phase. The exception was: ExitFailure 1 

Here is the error (there are a large number of warnings that I do not include for readability and space):

 glfw/lib/macosx/macosx_window.c:374:0: error: 'typeLongInteger' undeclared (first use in this function) glfw/lib/macosx/macosx_window.c:374:0: error: (Each undeclared identifier is reported only once glfw/lib/macosx/macosx_window.c:374:0: error: for each function it appears in.) glfw/lib/macosx/macosx_window.c: At top level: glfw/lib/macosx/macosx_window.c:448:0: error: 'kEventWindowDrawContent' undeclared here (not in a function) glfw/lib/macosx/macosx_window.c: In function '_glfwWindowEventHandler': 

Any suggestions for resolving it?

This is an error when trying to download a file that requires graphics:

 Could not find module `Graphics.UI.GLFW': 
+4
source share
1 answer

Instead of using cabal, you can try to download the glfw source tar file and build and install it from the command line.

0
source

Source: https://habr.com/ru/post/1390939/


All Articles