Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: Brian Ford cc: cygwin AT cygwin DOT com Subject: Re: OpenGL and cygwin In-Reply-To: Message-ID: References: <200311031609 DOT hA3G9kZ17540 AT bigmail DOT research DOT att DOT com> <20031110174953 DOT GB13143 AT redhat DOT com> <20031110204458 DOT GC1808 AT tishler DOT net> <20031110205820 DOT GA17282 AT redhat DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 -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/