X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,TW_BX,TW_DL,TW_GL,TW_IB,TW_XC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: From: =?iso-8859-1?B?QW5kcukgQmxlYXU=?= To: Subject: Re: Segmentation Fault in OpenGL - glutMainLoop Date: Wed, 1 Dec 2010 10:01:46 -0500 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Nathan Rose wrote: =20 > Hi all, =20 Hi Nathan, =20 >=20 > I suspect this problem may be beyond the scope of this mailing list, but = I would really appreciate any > help that you could provide.=20 >=20=20 > I have someone else's code that uses OpenGL (it's a massive set of files,= so I'm not going to attach them > here). It compiles fine on Cygwin, but w= hen the glutMainLoop method is called I get a segmentation fault. > I have = tested it on Ubuntu and this does not occur there, so my assumption is that= there is something=20 > wrong with how I have set up Cygwin. The following packages have been ins= talled:=20 > libglut-devel > freeglut > libglut3 > opengl > glproto > libGL-devel > libGL1 > libGLU-devel > libGLU1 > libglitz > libxcb-dlx-devel > libxcb-glx0 > (basically, I've installed everything from the Select Packages page that = has 'gl' in its name) >=20 > I have attached the stackdump from the segfault and the output from cygch= eck, in case they can help=20 > identify the cause of this issue. I'm not expecting that anyone will be a= ble to magically solve this with=20 > what little information I have provided, but any hints as to which direct= ion I should proceed would be=20 > appreciated. =20 First thing: there are 2 ways to use OpenGL and GLUT under Cygwin: through = an X server and natively. As you=20 ran it under Unbutu, I suspect you use the X server, but please confirm it.= I cannot deduce anything from=20 your stackdump. Some applications have configure script to build with an X = server on Linux and natively on=20 Windows. =20 If your application goes for the native route, my package (the opengl packa= ge) is concerned and I will try=20 to help you further. In that case, you may uninstall the other packages men= tionned above to clear any=20 possible (but improbable) confusion. Try some simple program first: see if = one of the native GLUT example=20 programs run properly: /usr/lib/glut-examples/helloGlut.exe , then /usr/lib= /glui-examples/example6.exe . If they work, try rebuilding them by going to /usr/share/doc/opengl-1.1.0/G= LUTexamples and /usr/share/doc/opengl-1.1.0/GLUIexamples and typing "make". =20 If your application goes for the X server route, I will let the maintainers= of the related packages take you from here. You may uninstall the opengl package to clear any possible (agai= n improbable) confusion.=20 X related issues should be discussed on a separate list: cygwin-xfree at cy= gwin dot com . =20 >=20 > Thanks, >=20 > Nathan >=20 =20 HTH, =20 Andr=E9 Bleau, Cygwin's OpenGL package maintainer Please send any questiopn or comment about the OpenGL package to cygwin at = cygwin dot com, not directly to me.=20=09=09=20=09=20=20=20=09=09=20=20 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple