public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* OpenGL problem
@ 2001-08-01 19:15 Aks3001
  2001-08-02  7:06 ` Andre Bleau
  0 siblings, 1 reply; 7+ messages in thread
From: Aks3001 @ 2001-08-01 19:15 UTC (permalink / raw)
  To: cygwin, bleau

Hi,

    Thanks for the response to my openGL problem.  I tried to link the 
libraries as per the readme document.  I used:

g++ -lglut32 -lglu32 -lopengl32 program.c

Unfortunately I got the same error messages (stating that there undefined 
references to glBegin etc).  I am probabally making some other mistake.  I 
would appreciate more advice in this matter.  I am attaching the earlier 
messages below for convenience.

By the way, I have another minor problem:  I tried setting the cygwin window 
size to fill the screen and now can't seem to go back.  Is there a command 
for this?

Many thanks!
aks

p.s.  I am using a PC running Windows ME 
------------------------------------------------------------------------------

-----------------------------------
Hi,

    I just installed cygwin and am having a problem with openGL code.  The 
libraries gl.h and glut.h are being found ok, but I still get "undefined 
reference" errors for basic open gl commands (such as glBegin and glEnd).  
Typical error messages are:

  /cygdrive/c/WINDOWS/TEMP/ccErOYTE.o(.text+0x35d):sqr.c: undefined reference 
to 'glBegin'

/usr/libcygwin.a(libmain.o)(.text+0x6a):libmain.c: undefined reference to 
'Winmain@16'

When I type 'echo $PATH" I find:
/usr/local/bin:/usr/bin:/bin:/cygdrive/C/WINDOWS:/cygdrive/C/WINDOWS/COMMAND

Is my path ok?  After running setup I didn't do anything else (I got the 
impression I didn't need to do anything else as everything was running; I 
even got the hello world program to run) and I'm wondering if I need to set 
up the path or my profile etc.

Hope somebody can help fix this problem,

Many thanks in advance!

aks


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: OpenGL problem
  2001-08-01 19:15 OpenGL problem Aks3001
@ 2001-08-02  7:06 ` Andre Bleau
  0 siblings, 0 replies; 7+ messages in thread
From: Andre Bleau @ 2001-08-02  7:06 UTC (permalink / raw)
  To: Aks3001; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]

At 22:14 2001-08-01 -0400, you wrote:
>Hi,
>
>     Thanks for the response to my openGL problem.  I tried to link the
>libraries as per the readme document.  I used:
>
>g++ -lglut32 -lglu32 -lopengl32 program.c

Librairies have to be specified _after_ the files that need them. Correct 
command is:

gcc program.c -o program -lglut32 -lglu32 -lopengl32


>Unfortunately I got the same error messages (stating that there undefined
>references to glBegin etc).  I am probabally making some other mistake.  I
>would appreciate more advice in this matter.  I am attaching the earlier
>messages below for convenience.
>
>By the way, I have another minor problem:  I tried setting the cygwin window
>size to fill the screen and now can't seem to go back.  Is there a command
>for this?
>
>Many thanks!
>aks
>
>p.s.  I am using a PC running Windows ME


André Bleau, Cygwin's OpenGL package maintainer.

email: bleau at igb dot umontreal dot ca
(Fight SPAM: encode your email-address)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: OpenGL problem
  2005-02-17 15:01 ` André Bleau
@ 2005-02-17 15:31   ` Christopher Faylor
  0 siblings, 0 replies; 7+ messages in thread
From: Christopher Faylor @ 2005-02-17 15:31 UTC (permalink / raw)
  To: cygwin

On Wed, Feb 16, 2005 at 08:02:39PM -0500, Andr? Bleau wrote:
>>Now, I also apologize for writing to you directly, but although I am
>>subscribed to cygwin-apps, I didn't receive the message to which I am
>>now replying.  I only found it on the web.  This is why I thought it
>>better to reply directly to you.
>
>This is really surprising.  If you are subscribed to the list, you
>should receive all messages sent to it.  If not, you should inquire
>with the list manager.  If your email connection with Cygwin's lists is
>unreliable, I suggest that you add the following line to messages you
>send to the lists:
>
>"Please CC your response to this message directly to my address."
>
>I never reply directly to people sending messages to lists, unless they
>require it explicitely.

cygwin-apps is a subscriber-only mailing list devoted to a specific
purpose.  Since the OpenGL message was just a request for help and the
OP had already appropriately sent similar messages to the main cygwin
list, they were unsubscribed from cygwin-apps.

I usually rely on someone telling off-topic posters that they are
off-topic but in this case that didn't happen.

cgf

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: OpenGL problem
       [not found] <20050215233600.A8799@bar.loria.fr>
@ 2005-02-17 15:01 ` André Bleau
  2005-02-17 15:31   ` Christopher Faylor
  0 siblings, 1 reply; 7+ messages in thread
From: André Bleau @ 2005-02-17 15:01 UTC (permalink / raw)
  To: Denis.Roegel; +Cc: cygwin



>From: Denis Roegel <Denis.Roegel@loria.fr>
>To: andre_bleau@hotmail.com
>CC: Denis Roegel <Denis.Roegel@loria.fr>
>Subject: Re: OpenGL problem
>Date: Tue, 15 Feb 2005 23:36:00 +0100
>
>Dear André,

Hi Denis,

>
>I did not mean to offend you, but I have written (as you suggested
>a year ago) to cygwin@cygwin.com, and then Larry Hall suggested to use
>cygwin-apps. Maybe you didn't read the message because it was
>lost after the server problems.
>

No offense taken.

I've read both of your 2 messages to cygwin at cygwin.com and the one you 
sent to cygwin-apps at cygwin.com. I replied to all of them, in their 
respective mailing list:

http://cygwin.com/ml/cygwin/2005-02/msg00408.html
http://cygwin.com/ml/cygwin/2005-02/msg00409.html
http://cygwin.com/ml/cygwin-apps/2005-02/msg00024.html

What Larry meant is that if you find a packaging error in the OpenGL 
package, that is, if the package does not respect the layout required for 
Cygwin's packages, you should report it to the cygwin-apps list. If you have 
any other sort of trouble with the OpenGL package, report it to the main 
cygwin list.

>Now, I also apologize for writing to you directly, but although
>I am subscribed to cygwin-apps, I didn't receive the message
>to which I am now replying. I only found it on the web.
>This is why I thought it better to reply directly to you.
>

This is really surprising. If you are subscribed to the list, you should 
receive all messages sent to it. If not, you should inquire with the list 
manager. If your email connection with Cygwin's lists is unreliable, I 
suggest that you add the following line to messages you send to the lists:

"Please CC your response to this message directly to my address."

I never reply directly to people sending messages to lists, unless they 
require it explicitely.

>I have been subscribed to the cygwin list, and now instead
>to the cygwin-apps list. Should I return to the main cygwin list?

Yes.

>I am confused...
>
>If you can solve the problem, I would be very thankful, as I have
>had it for a year. None of my complex programs using tessellation
>seem to work on cygwin (and also apparently not on some other
>Windows environment, from what my students tell me).
>On the other hand, I have the feeling that I am the only one
>on Earth needing such features, or somehow nobody is trying tessellation
>with cygwin.
>
>Denis
>

The "solution" to your problem was in my reply to your original message to 
the cygwin list:

http://cygwin.com/ml/cygwin/2005-02/msg00408.html

Regarding tessallation and Cygwin, the tess.c sample program about which you 
wrote to me last year works reliably on Cygwin. Your new program doesn't, 
but as outlined in message msg00408, it is because of a programming error. 
Please try the suggestions in that message, and if you have other problems 
that are specific to OpenGL under Cygwin, write about it to the cygwin list.


André Bleau, Cygwin's OpenGL package maintainer

_________________________________________________________________
Partagez une seule photo ou un diaporama complet dans MSN Messenger. 
http://join.msn.com/?pgmarket=fr-ca&page=features/messenger Commencez dès 
maintenant à profiter de tous les avantages de MSN Premium et obtenez les 
deux premiers mois GRATUITS*.


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* OpenGL Problem
@ 2002-12-23 19:10 Paul Deppe
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Deppe @ 2002-12-23 19:10 UTC (permalink / raw)
  To: cygwin

Gents:

While working on the FlightGear project we came across this "feature" of the
Cygwin OpenGL support:

> Paul Deppe writes:
> >
> > I found that Cygwin installs TWO copies of gl.h:
> >
> > opengl package installs: /usr/include/GL/gl.h (which declares
> > glActiveTextureARB) and w32api package installs:
> > /usr/include/w32api/GL/gl.h, (which does not).
> >
> > The w32api gl.h is dated later but does not declare glActiveTextureARB.
> >
> > Aha... it works _without_ the above patch when I hide
> > /usr/include/w32api/GL!  Is this a Cygwin bug?

Are there really supposed to be two copies of GL/gl.h?  If so, how does one
make sure that configure picks the right one?

Forwarded for your consideration.

Thanks,

Paul

Paul R. Deppe
Veridian Engineering (formerly Calspan)
Flight & Aerospace Research Group
150 North Airport Drive
Buffalo, NY  14225
(716) 631-6898
(716) 631-6990 FAX
paul.deppe@veridian.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: openGL problem
@ 2001-07-30  7:06 Andre Bleau
  0 siblings, 0 replies; 7+ messages in thread
From: Andre Bleau @ 2001-07-30  7:06 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]

>Hi,
>
>     I just installed cygwin and am having a problem with openGL code.  The
>libraries gl.h and glut.h are being found ok, but I still get "undefined
>reference" errors for basic open gl commands (such as glBegin and glEnd).
>Typical error messages are:
>
>   /cygdrive/c/WINDOWS/TEMP/ccErOYTE.o(.text+0x35d):sqr.c: undefined 
> reference
>to 'glBegin'
>
>/usr/libcygwin.a(libmain.o)(.text+0x6a):libmain.c: undefined reference to
>'Winmain@16'

This a linking problem. Consult /usr/doc/opengl-1.1.0/README.txt for 
linking instructions. What command exactly did you use for linking ?


>When I type 'echo $PATH" I find:
>/usr/local/bin:/usr/bin:/bin:/cygdrive/C/WINDOWS:/cygdrive/C/WINDOWS/COMMAND
>
>Is my path ok?  After running setup I didn't do anything else (I got the
>impression I didn't need to do anything else as everything was running; I
>even got the hello world program to run) and I'm wondering if I need to set
>up the path or my profile etc.

I don't think that the path or your profile has anything to do with your 
problem.


>Hope somebody can help fix this problem,
>
>Many thanks in advance!
>
>aks


André Bleau, Cygwin's OpenGL package maintainer.

email: bleau at igb dot umontreal dot ca
(Fight SPAM: encode your email-address)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* openGL problem
@ 2001-07-29 20:45 Aks3001
  0 siblings, 0 replies; 7+ messages in thread
From: Aks3001 @ 2001-07-29 20:45 UTC (permalink / raw)
  To: cygwin

Hi,

    I just installed cygwin and am having a problem with openGL code.  The 
libraries gl.h and glut.h are being found ok, but I still get "undefined 
reference" errors for basic open gl commands (such as glBegin and glEnd).  
Typical error messages are:

  /cygdrive/c/WINDOWS/TEMP/ccErOYTE.o(.text+0x35d):sqr.c: undefined reference 
to 'glBegin'

/usr/libcygwin.a(libmain.o)(.text+0x6a):libmain.c: undefined reference to 
'Winmain@16'

When I type 'echo $PATH" I find:
/usr/local/bin:/usr/bin:/bin:/cygdrive/C/WINDOWS:/cygdrive/C/WINDOWS/COMMAND

Is my path ok?  After running setup I didn't do anything else (I got the 
impression I didn't need to do anything else as everything was running; I 
even got the hello world program to run) and I'm wondering if I need to set 
up the path or my profile etc.

Hope somebody can help fix this problem,

Many thanks in advance!

aks


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-02-17  1:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-01 19:15 OpenGL problem Aks3001
2001-08-02  7:06 ` Andre Bleau
     [not found] <20050215233600.A8799@bar.loria.fr>
2005-02-17 15:01 ` André Bleau
2005-02-17 15:31   ` Christopher Faylor
  -- strict thread matches above, loose matches on Subject: below --
2002-12-23 19:10 OpenGL Problem Paul Deppe
2001-07-30  7:06 openGL problem Andre Bleau
2001-07-29 20:45 Aks3001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).