delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <BLU149-W61362F960F0FAABEA6CE9A938E0@phx.gbl> |
From: | =?iso-8859-1?B?QW5kcukgQmxlYXU=?= <andre_bleau AT hotmail DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Re: OpenGL linking problems |
Date: | Sat, 4 Sep 2010 12:29:39 -0400 |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
David Doria wrote: =20 > I'm trying to build a library (VTK) in Cygwin. I am getting a lot of > errors like this >=20 > undefined reference to `_glDepthMask' > undefined reference to?`_glGetIntegerv' > undefined reference to?`_glMatrixMode' >=20 > I installed ALL of the cygwin packages to try to avoid problems like > this. I also added >=20 > export LD_LIBRARY_PATH=3D$LD_LIBRARY_PATH:/lib >=20 > to my ~/.bash_profile >=20 > Anyone know how to get something to link against OpenGL in cygwin? =20 Well, we need more info to help us help you. What kind of application are y= ou trying to build? X11 or native? There are 2 ways to build OpenGL-related= programs: =20 1- Using native OpenGL, with driver supported hardware acceleration. For th= at, you need some way to=20 get a graphic device context. One portable way to do that is to use the GLU= T library, provided by=20 the opengl package that I maintain. Look at the doc in /usr/share/doc/openg= l-1.1.0 to learn how to=20 do that. =20 The OpenGL implementation in that case is provided by Window's opengl32.dll= . Cygwin's w32api package=20 provides the headers and link library for that version of OpenGL. =20 LD_LIBRARY_PATH has no effect if you go that way. =20 2- Using X11, which provides an opengl implementation. At one point, there = was support for hardware=20 acceleration; then, it went away; I don't know if it came back or if it is = coming back "soon". I will let the maintainer of the libGL* packages answer= questions you may have about it. You would better send them to cygwin-xfre= e at cygwin dot com . =20 >=20 > Thanks, >=20 > David >=20 =20 - Andr=E9 Bleau, Cygwin's opengl package maintainer. Please send any question or comment about the opengl package to cygwin at c= ygwin dot com, not directly to me. =20=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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |