delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/10/20:04:47

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
Date: Mon, 10 Nov 2003 20:00:20 -0500 (EST)
From: Suresh Venkatasubramanian <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
In-Reply-To: <Pine.GSO.4.56.0311101708390.9584@eos>
Message-ID: <Pine.LNX.4.58.0311101956440.3450@apollonius.research.att.com>
References: <200311031609 DOT hA3G9kZ17540 AT bigmail DOT research DOT att DOT com>
<Pine DOT GSO DOT 4 DOT 56 DOT 0311031014390 DOT 9584 AT eos> <Pine DOT CYG DOT 4 DOT 58 DOT 0311101203590 DOT 508 AT euclid>
<20031110174953 DOT GB13143 AT redhat DOT com> <Pine DOT LNX DOT 4 DOT 58 DOT 0311101256310 DOT 3450 AT apollonius DOT research DOT att DOT com>
<20031110204458 DOT GC1808 AT tishler DOT net> <Pine DOT LNX DOT 4 DOT 58 DOT 0311101551050 DOT 3450 AT apollonius DOT research DOT att DOT com>
<20031110205820 DOT GA17282 AT redhat DOT com> <Pine DOT LNX DOT 4 DOT 58 DOT 0311101605010 DOT 3450 AT apollonius DOT research DOT att DOT com>
<Pine DOT GSO DOT 4 DOT 56 DOT 0311101708390 DOT 9584 AT eos>
MIME-Version: 1.0

On Mon, 10 Nov 2003, Brian Ford wrote:

> This is part of your confusion.  Cygwin proper has no OpenGL libs (ie.
> opengl32, glu32) per se.  It only has import libraries for the Window's
> ones.  (Cygwin does have a glut.dll and import lib as you have seen.)
>
> Cygwin XFree86 supplies OpenGL libs (ie. GL, GLU) via Mesa software
> emulation.
>
> > I compiled my code using
> >
> > gcc -mno-cygwin <src files> -lglut32 -lglu32 -lopengl32
> >
> Did you try it without -mno-cygwin?  You will still get your Nvidia
> OpenGL libs, but will be subject to Cygwin's license.
>
> > the code compiles correctly, and does not run, giving the error I
> > indicated earlier.
> >
> Maybe this is because you are getting Cygwin's glut import lib even when
> using Nvidia's glut?  Just a guess.
>

So I compiled without -mno-cygwin. According to cygcheck, I get the
correct dlls (dump enclosed below). This time the program runs silently,
and exits without popping up a window and with no errors. From
appropriately placed print statements, it appears that the program is
having trouble creating a window with glutCreateWindow and appears to die
silently before completing that step (or just after).

As I mentioned earlier, I will try to create a pared-down version that
recreates the problem: might be easier to circulate the src then, if
anyone wants to try their hand at compiling it...

euclid 8:00pm [3d_diameter]> cygcheck main.exe
Found: .\main.exe
main.exe
  C:\cygwin\bin\cygwin1.dll
    C:\WINDOWS\System32\KERNEL32.dll
      C:\WINDOWS\System32\ntdll.dll
  C:\WINDOWS\System32\GLU32.DLL
    C:\WINDOWS\System32\msvcrt.dll
    C:\WINDOWS\System32\OPENGL32.dll
      C:\WINDOWS\System32\ADVAPI32.dll
        C:\WINDOWS\System32\RPCRT4.dll
      C:\WINDOWS\System32\GDI32.dll
        C:\WINDOWS\System32\USER32.dll
      C:\WINDOWS\System32\DDRAW.dll
        C:\WINDOWS\System32\DCIMAN32.dll
  .\glut32.dll
    C:\WINDOWS\System32\WINMM.dll

Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical Staff    Web: http://www.research.att.com/~suresh/
AT&T Shannon Labs

"The guitar is the ideal instrument for anyone who is able to love loneliness." --Angelo Gilardino

--
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