delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/26/03:55:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <200310260855.h9Q8tIZ02043@bigmail.research.att.com>
From: suresh AT research DOT att DOT com
To: Brian Ford <ford AT vss DOT fsi DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: OpenGL and Cygwin
Date: Sun, 26 Oct 2003 04:00:02 -0500

Hi Brian, Andre, cygwin folks,
   Thanks for all your help to date. I have been somewhat lax in replying 
since I am sitting at my laptop in India with a slow connection. Here is 
the situation:

As per Andre's suggestion, I wanted to force linking via the windows gl 
headers, and so I just moved the /usr/include/GL/* headers out of the 
way, and am using the headers from /usr/include/w32api/GL

My g++ command line is

g++ -mno-cygwin .... -lglut32 -lglu32 -lopengl32

and a cygcheck on my exe file indicated that the glut file being linked 
is my local copy that I got from nvidia, and the glu,opengl32 libs are 
the dll files linked from c/windows/system32

As I mentioned, all of opengl1.1 works fine. In an attempt to get 
histograms, I enabled GL_VERSION_1.2 (I may have the spelling wrong here, 
but I used the correct #define). However, the way the windows gl files 
are structured, if the _WIN32 option is defined, the GL_VERSION_1_2 
option is ignored (i.e the GL_VERSION stuff is only included inside a 
#ifndef _WIN32 bracket).

Instead, I enabled GL_GLEXT_PROTOTYPES and that seemed to let the 
compilation go thru ok. However, at the link phase, I got stuck, with an 
error message of the form

undefined reference to _glGetMinmax AT 2

the @2 suggesting that at least I am using the right include files.

Now, i have been poking around with the nvidia opengl libs: the one I 
have doesn't appear to be the right kind though: (nvoglnt.dll) - I 
couldn't link it using -lnvoglnt (ld crashed)

This is my current state. I am trying to download the new nvidia drivers 
that were released Oct 23, but it is taking some time given my slow 
connection....


I 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019