This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Problems running OpenGL program on Cygwin
- From: "Larry Griffith" <castlehill at alum dot mit dot edu>
- To: <cygwin-xfree at cygwin dot com>
- Date: Wed, 6 Jul 2005 15:17:13 -0400
- Subject: Problems running OpenGL program on Cygwin
- Reply-to: cygwin-xfree at cygwin dot com
Dear List Members,
I'm a newbie to Cygwin who is trying to learn how to run an OpenGL
program under Cygwin-X. I used a standard program written by
SGI (called cube.c) that I know runs correctly under Solaris 9, using
gcc and the Mesa library, so I don't think the program itself is the
problem.
I ran xinit to get a bash shell, cd'd to the proper directory, and ran
the
following command:
gcc cube.c -o cube -I/usr/X11R6/include -L/usr/X11R6/lib -lglut -lGLU
-lGL -lX11
which compiles correctly (thanks to some assistance from your mailing
list archives).
When I type
./cube
I get a black rectangle with no picture (and in particular no cube) and
no error messages. I can click the shell window and press CTRL-C
to get out.
I've checked the FAQ, the user guide, and the archives (which did give
me some help), but I can't get past this point. As already mentioned,
I know this program works on Solaris/gcc/Mesa, so I'm wondering if
there is a problem with my cygwin installation, libraries, or commands.
I'm running the latest version of the Cygwin system as far as I can tell
on Windows XP SP2.