[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] Re: [Chicken-users] OpenGL on MinGW

From: Brandon J. Van Every
Subject: [Chicken-hackers] Re: [Chicken-users] OpenGL on MinGW
Date: Mon, 25 Sep 2006 17:24:06 -0700
User-agent: Thunderbird (Windows/20060909)

felix winkelmann wrote:
On 9/24/06, Brandon J. Van Every <address@hidden> wrote:

- I modified the attached opengl.setup file to remove GLUT support.
GLUT is ancient.  The last official release of GLUT was in 1998, it is
unsupported, and the license does not allow modifications of the source
code to be distributed.  FreeGLUT is more recent, dating to 2005, but it
didn't compile on MinGW.  GLUT should not be assumed to be available or
maintained on all platforms. As such, it needs to be moved to its own egg.

I haved separated the opengl and glut functionality into two different eggs.

Great! I see the GLUT-less opengl.setup is in the egg repository. Unfortunately it still fails on MinGW:

"E:\Program Files\Chicken\bin\csc" -feature compiling-extension gl.scm -s -O2
-d0 -L "-L/usr/X11R6/lib -L/usr/X11/lib -lGL -LX11"
'E:\Program' is not recognized as an internal or external command,
operable program or batch file.
make: Failed to make shell invocation failed with non-zero return status
Error: shell invocation failed with non-zero return status
"\"E:\\Program Files\\Chicken\\bin\\csc\" -feature compiling-extension gl.scm -.

I belive this line is the problem:

((and (eq? (software-type) 'windows) (eq? (build-platform) 'cygwin))

The line in the file I posted, which actually works, is:

((eq? (software-type) 'windows)

I think mingw needs its own test and installation method.  If "-feature cygwin" 
works for MinGW, that strikes me as fortunate.

- the attached sdl-gears.scm demo (thanks again from Felix) will compile
with the following build command.  It then runs just fine, proving that
the opengl support works.

  csc sdl-gears.scm -C `sdl-config --cflags` -L "`sdl-config --libs`"

- the build fails with:

  csc sdl-gears.scm -C "`sdl-config --cflags`" -L "`sdl-config --libs`"

There is a problem with -C and quoting the resultant
-I/usr/local/include option.

I'm somehow sceptical about your shell. Is this the MSYS shell?
(does such a thing exist? I dunno nothin' about mingw, see)

Hm my MSYS is non-standard now.  I will see what happens on Cygwin.

Brandon Van Every

reply via email to

[Prev in Thread] Current Thread [Next in Thread]