Help me set up cygwin for OpenGL under Windows 10

It's been 15 years since I've set up a cygwin from scratch. A lot has changed...

Im trying to get code located at http://www.cplusplus.com/forum/general/232984/ to compile. To run slow, like the original poster says. Since the code is running slow, I figured it would be a good place to start.

I download all the pieces mentioned in the post and put them where they belong.

I followed instructions for installing OpenGL under cygwin at http://web.eecs.umich.edu/~sugih/courses/eecs487/glut-howto/#cygwin - minus the part about installing stuff from nVidia (I'm not using an nVidia card on my laptop) and instead installed the free glut from the available package list...

This is where I'm stuck. I get either a missing libglut32 error, or if I symlink the one I found into /lib, I get this instead:

$ gcc kindgnice.cpp -o kindgnice -lglut32 -lglu32 -lopengl32
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible /usr/lib/w32api/libglut32.a when searching for -lglut32
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible /usr/lib/w32api/libglut32.a when searching for -lglut32
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible /usr/lib/w32api/libglut32.a when searching for -lglut32
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lglut32
collect2: error: ld returned 1 exit status


Last edited on
Topic archived. No new replies allowed.