delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/04/19:16:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <BLU149-W61362F960F0FAABEA6CE9A938E0@phx.gbl>
References: <BLU149-W61362F960F0FAABEA6CE9A938E0 AT phx DOT gbl>
Date: Sat, 4 Sep 2010 19:16:28 -0400
Message-ID: <AANLkTik5E=zE3NbxNFNcSVSU2QFp3mTqFEOeZfGdCecw@mail.gmail.com>
Subject: Re: OpenGL linking problems
From: David Doria <daviddoria AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

> Well, we need more info to help us help you. What kind of application are=
 you trying to build? X11 or native? There are 2 ways to build OpenGL-relat=
ed programs:
>
> 1- Using native OpenGL, with driver supported hardware acceleration. For =
that, you need some way to
> get a graphic device context. One portable way to do that is to use the G=
LUT library, provided by
> the opengl package that I maintain. Look at the doc in /usr/share/doc/ope=
ngl-1.1.0 to learn how to
> do that.
>
> The OpenGL implementation in that case is provided by Window's opengl32.d=
ll. Cygwin's w32api package
> provides the headers and link library for that version of OpenGL.
>
> LD_LIBRARY_PATH has no effect if you go that way.
>
> 2- Using X11, which provides an opengl implementation. At one point, ther=
e was support for hardware
> acceleration; then, it went away; I don't know if it came back or if it i=
s coming back "soon". I will let the maintainer of the libGL* packages answ=
er questions you may have about it. You would better send them to cygwin-xf=
ree at cygwin dot com .
>
>>
>> Thanks,
>>
>> David
>>
>
> - Andr=E9 Bleau, Cygwin's opengl package maintainer.

Hi Andr=E9,

I think I'm trying to build an X11 application - I'm trying to use a
library called VTK (http://www.vtk.org/). I don't believe it uses
glut, and I do see a bunch of X11 options in the CMake files. Even if
there is no support for hardware acceleration with this method, it
should still build, right?

I do have C:\Windows\System32\opengl32.dll . I should also have the
w32api package because I installed all of the cygwin packages.

Any other thoughts of things that would causes these linking errors?

Thanks for your help so far,

David

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

- Raw text -


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