OpenGL under Cygwin with GtkGlExt

2010-10-19 Thread Stedy

Hi,

I'm using Cygwin under Windows Vista and have installed the OpenGL Libs at
Cygwin setup.

Now im trying to configure GtkGlExt (with ./configure). But I get a message
GL not installed..

Can you help me?

Regards
-- 
View this message in context: 
http://old.nabble.com/OpenGL-under-Cygwin-with-GtkGlExt-tp3118p3118.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Re: OpenGL under Cygwin with GtkGlExt

2010-10-19 Thread André Bleau

Stedy dillmann dot stefan at web dot de wrote:
 
 Hi,
 
Hi Stedy,
 
 
 I'm using Cygwin under Windows Vista and have installed the OpenGL Libs at
 Cygwin setup.
 
 Now im trying to configure GtkGlExt (with ./configure). But I get a message
 GL not installed..
 
Are you configuring to use OpenGL in an X11 window? If yes, you need the libGL* 
packages,
not the opengl package, which is meant for native Win32 graphics.
 
 
 Can you help me?
 
 Regards

 

André Bleau, Cygwin's volunteer OpenGL package maintainer. 
 
Please send any question or comment about the opengl package to cygwin at 
cygwin dot com,
not to directly to me.
  

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



Re: OpenGL under Cygwin with GtkGlExt

2010-10-19 Thread Stedy

Hi André,

Yes, Im using X11..
In the meanwhile I've installed every GL package I found at Cygwin setup
incl. libGL-devel and libGL1 but I still get the error :-/
do I have to manual install this libs?
I just run cygwin setup process
-- 
View this message in context: 
http://old.nabble.com/OpenGL-under-Cygwin-with-GtkGlExt-tp3118p30002045.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Re: OpenGL under Cygwin with GtkGlExt

2010-10-19 Thread André Bleau


Stedy dillmann dot stefan at web dot de wrote:
 
 Hi AndrÃ,
 
 Yes, Im using X11..
 In the meanwhile I've installed every GL package I found at Cygwin setup
 incl. libGL-devel and libGL1 but I still get the error :-/
 do I have to manual install this libs?
 I just run cygwin setup process
 
If you have installed the packages, you have installed the libs.
 
This seems to be a configure script problem. You will have to discuss this with
the GtkGlExt author(s).

André Bleau, Cygwin's volunteer OpenGL package maintainer.  
 
Please send any question or comment about the opengl package to cygwin at 
cygwin dot com,
not to directly to me.

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



Re: OpenGL under Cygwin with GtkGlExt

2010-10-19 Thread Yaakov (Cygwin/X)
On Tue, 2010-10-19 at 09:39 -0700, Stedy wrote:
 Yes, Im using X11..

As you must, since our GTK+ is also X11.

 In the meanwhile I've installed every GL package I found at Cygwin setup
 incl. libGL-devel and libGL1 but I still get the error :-/

Building GtkGLExt also requires libGLU-devel, and of course
libgtk2.0-devel.  Binary packages are available from Cygwin Ports, but
if you want to build it yourself, you will also need a patch:

http://cygwin-ports.git.sourceforge.net/git/gitweb.cgi?p=cygwin-ports/ports;a=tree;f=gnome/gtkglext1.0

HTH,


Yaakov



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



Re: OpenGL under Cygwin with GtkGlExt

2010-10-19 Thread Stedy

libgl and libglu seem to be installed correctly..
I can compile with those libs at gcc..

So there really maybe a problem with the configure script.

Can I maybe download the GtkGlExt lib as binaries? I just found the
sources.. 
-- 
View this message in context: 
http://old.nabble.com/OpenGL-under-Cygwin-with-GtkGlExt-tp3118p30003221.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



RE: OpenGL and cygwin

2010-10-12 Thread André Bleau

Dear Jurg,
 
From that description:
 
 we are using cygwin on windows 7 on a DELL M4500 to remotely connect HP Z800 
 linux-pc via
 network. So on the linux-pc we use CAE applications with graphics over 
 network. What can I do to  improve the graphics performance via network?
 
I understand that your graphics are displayed via Cygwin's X-server. If they 
use OpenGL, you should
use the very latest version of that server, which just received hardware 
acceleration for OpenGL 
graphics. You can read about it at: http://cygwin.com/ml/cygwin-xfree/
 
Please note that I do not maintain any package relating to OpenGL on the 
X-server, so if you have 
any question, you should direct it to the list (cygwin-xfree at cygwin.com).

Regards,
 
- André   

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



OpenGL/Cg cygwin makefile

2006-04-01 Thread Theo Verelst

Dear Readers,

I've been doing work in the accelerated computer graphics area on 
compiling OpenGL/Cg (shader) programs with cygwin, and made a Makefile 
for one of the SDK examples which comes with the NVidia Cg compiler, see:


  http://www.theover.org/graphics

maybe some people have worked on the subject already, or else I could 
make some more examples suitable for cygwin compilation, which is a 
great improvement (and Open Source and Free) over the windows tools! Let 
me know what you think.\


Regards,

  Theo Verelst


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



OPENGL ON CYGWIN

2004-07-13 Thread Loren Greenman
Hi,
My name is Loren Greenman, and I am running Cygwin at home.  When I log in
remotely (secure shell) to the computers at where I work, I am unable to
run application that require OpenGL.  I have downloaded the OpenGL
library, and am otherwise up to date on Cygwin.  However, I still get an
error that says OpenGL not available whenever I try to use this program.
My graphics card has OpenGL capabilities, and when I run a OpenGL test
program from Cygwin it works, but when I try it after remotely logging
into another computer I am unable to use this program.  Any help is
greatly appreciated.
Loren Greenman


Re: OPENGL ON CYGWIN

2004-07-13 Thread Alexander Gottwald
On Tue, 13 Jul 2004, Loren Greenman wrote:

 Hi,
 My name is Loren Greenman, and I am running Cygwin at home.  When I log in
 remotely (secure shell) to the computers at where I work, I am unable to
 run application that require OpenGL.  I have downloaded the OpenGL
 library, and am otherwise up to date on Cygwin.  However, I still get an
 error that says OpenGL not available whenever I try to use this program.
 My graphics card has OpenGL capabilities, and when I run a OpenGL test
 program from Cygwin it works, but when I try it after remotely logging
 into another computer I am unable to use this program.  Any help is
 greatly appreciated.

- What OS are you using at work?
- Do other X11 programs work on the remote host?
No: Check FAQ for X11 Forwarding
- What does glxinfo report?

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: OPENGL ON CYGWIN

2004-07-13 Thread Igor Pechtchanski
Loren,

Considering the message that made it to the list just before yours
(http://cygwin.com/ml/cygwin-xfree/2004-07/msg00074.html), the choice of
ALL-CAPS for the subject was perhaps not the wisest... :-)
More below.

On Tue, 13 Jul 2004, Loren Greenman wrote:

 Hi,
 My name is Loren Greenman, and I am running Cygwin at home.  When I log in
 remotely (secure shell) to the computers at where I work, I am unable to
 run application that require OpenGL.  I have downloaded the OpenGL
 library, and am otherwise up to date on Cygwin.  However, I still get an
 error that says OpenGL not available whenever I try to use this program.
 My graphics card has OpenGL capabilities, and when I run a OpenGL test
 program from Cygwin it works, but when I try it after remotely logging
 into another computer I am unable to use this program.  Any help is
 greatly appreciated.
 Loren Greenman

I believe you're confusing the native OpenGL support (which you get from
the opengl package) and the OpenGL/GLX extension for the X server.  The
OpenGL test program is most likely running using the native OpenGL.  For
the remote program to use OpenGL, you'll need to have the GLX extension
enabled in the X server.  While from what I recall it is already working
(see http://cygwin.com/ml/cygwin-xfree/2004-03/msg00323.html), you'll
need to post the exact error message you're getting and the exact commands
you used to invoke your XWin session and the failing program.  You might
also be asked later to post /tmp/XWin.log from a failed session.
Igor
P.S. A WAG: since you mentioned that you connect via ssh, take a look at
http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-no-x11forwarding.
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


OpenGL and cygwin

2003-11-16 Thread Suresh Venkatasubramanian

Hi all,
  I have been trying for the last few days to recreate some of the OpenGl
problems that I have been asking the list about. Fortunately (or
unfortunately, depending on one's perspective :)), I have been unable to
get the errors reproduced in a standalone form, and in fact many of my
OpenGL programs, even those that use more advanced features of OpenGL
1.3+, are working fine.

Thanks a lot to Andre, Brian and CGF for helping out.

Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT 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/



Re: OpenGL and cygwin

2003-11-11 Thread Andre Bleau
Suresh Venkatasubramanian wrote:


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).
To me, that means your program is not calling glutInit before glutCreateWindow.



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
Let's clarify something: the GLUT dll in Cygwin's OpenGL package does not 
use any cygwin function. It should not make your program depend on 
cygwin1.dll if _all_ your own source files are compiled with -mno-cygwin. I 
don't understand why you insist on using NVDIA's glut32.dll. Cygwin's is 
GLUT version 3.7 too; I suggest that you try to link with it to make sure 
that NVDIA's dll is not the cause of your problem.

André Bleau, Cygwin's OpenGL package maintainer.

Please address all questions and problem reports about Cygwin's OpenGL 
package to [EMAIL PROTECTED] .  

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


Re: OpenGL and cygwin

2003-11-11 Thread Brian Ford
On Mon, 10 Nov 2003, Suresh Venkatasubramanian wrote:

 On Mon, 10 Nov 2003, Brian Ford wrote:

  Did you try it without -mno-cygwin?  You will still get your Nvidia
  OpenGL libs, but will be subject to Cygwin's license.
 
 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).

 euclid 8:00pm [3d_diameter] cygcheck main.exe
 Found: .\main.exe
 main.exe
   C:\cygwin\bin\cygwin1.dll
   .\glut32.dll

Since you are now using the Cygwin dll, I would suggest you also use
Cygwin's glut32.dll just so you have a known/supported environment to
start from.

If you get this working, then you can experiment whith Nvidia's glut or
-mno-cygwin.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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



Re: OpenGL and Cygwin

2003-11-10 Thread Suresh Venkatasubramanian

On Mon, 3 Nov 2003, Brian Ford wrote:

 AFAIK, Cygwin's glut is 3.7.3.

  61 [unknown (0x48)] ? 3804 cygheap_fixup_in_child: Couldn't reserve space
  for cygwin's heap (0x6160 0x0) in child, Win32 error 487
 
 WAG: Have you read this?

I read the doc on increasing cygwin's max memory limit and ran the test
program provided there. The limit I get is 1 GB, and my program memory
usage is only in the small MB - so I don't think a simple memory limit is
the problem here.

p.s I also tried using the cygwin glut package, with the same results.

I will try to pare down the program to its basic error-producing elements:
since the red book demos work fine, there is something in the extra
functionality I am using (histogramming etc) that might be causing this.
In the meantime, any thoughts, suggestions would be appreciated.

thanks !

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



Re: OpenGL and cygwin

2003-11-10 Thread Christopher Faylor
On Mon, Nov 10, 2003 at 12:06:53PM -0500, Suresh Venkatasubramanian wrote:

On Mon, 3 Nov 2003, Brian Ford wrote:

 AFAIK, Cygwin's glut is 3.7.3.

  61 [unknown (0x48)] ? 3804 cygheap_fixup_in_child: Couldn't reserve space
  for cygwin's heap (0x6160 0x0) in child, Win32 error 487
 
 WAG: Have you read this?

I read the doc on increasing cygwin's max memory limit and ran the test
program provided there. The limit I get is 1 GB, and my program memory
usage is only in the small MB - so I don't think a simple memory limit is
the problem here.

This problem is usually caused by dll placement in forked processes and
should be fixed by rebasing any dlls that you use.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.com

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



Re: OpenGL and cygwin

2003-11-10 Thread Suresh Venkatasubramanian

On Mon, 10 Nov 2003, Christopher Faylor wrote:

 On Mon, Nov 10, 2003 at 12:06:53PM -0500, Suresh Venkatasubramanian wrote:
 
   61 [unknown (0x48)] ? 3804 cygheap_fixup_in_child: Couldn't reserve space
   for cygwin's heap (0x6160 0x0) in child, Win32 error 487
  
  WAG: Have you read this?
 
 I read the doc on increasing cygwin's max memory limit and ran the test
 program provided there. The limit I get is 1 GB, and my program memory
 usage is only in the small MB - so I don't think a simple memory limit is
 the problem here.

 This problem is usually caused by dll placement in forked processes and
 should be fixed by rebasing any dlls that you use.

Sorry: am a cygwin newbie. I read /usr/doc/Cygwin/rebase-2.2.README and
noted that there are some parameters I need to supply to rebaseall ? or to
rebase itself ? Is there a way to figure out how to do this ? I use
cygcheck to check which dlls I am using, and its output is:

euclid 2:04pm [3d_diameter] cygcheck main
Found: .\main.exe
main.exe
  C:\WINDOWS\System32\msvcrt.dll
C:\WINDOWS\System32\KERNEL32.dll
  C:\WINDOWS\System32\ntdll.dll
  C:\WINDOWS\System32\GLU32.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
  C:\cygwin\bin\glut32.dll
C:\WINDOWS\System32\WINMM.dll

I am guessing that the main dlls I am concerned with are:

glut32.dll
glu32.dll
opengl32.dll

Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT 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/



Re: OpenGL and cygwin

2003-11-10 Thread Jason Tishler
Suresh,

On Mon, Nov 10, 2003 at 02:02:29PM -0500, Suresh Venkatasubramanian wrote:
 euclid 2:04pm [3d_diameter] cygcheck main
 Found: .\main.exe
 main.exe
   C:\WINDOWS\System32\msvcrt.dll
 C:\WINDOWS\System32\KERNEL32.dll
   C:\WINDOWS\System32\ntdll.dll
   C:\WINDOWS\System32\GLU32.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
   C:\cygwin\bin\glut32.dll
 C:\WINDOWS\System32\WINMM.dll

AFAICT, the above implies that main is *not* a Cygwin app.  If this
conclusion is correct, then rebasing will not help.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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



Re: OpenGL and cygwin

2003-11-10 Thread Suresh Venkatasubramanian

I see. this is true I think, inasmuch as I compiled the program using gcc
-mno-cygwin (because I need native windows opengl dlls rather than the
cygwin stuff)

On Mon, 10 Nov 2003, Jason Tishler wrote:

 Suresh,

 On Mon, Nov 10, 2003 at 02:02:29PM -0500, Suresh Venkatasubramanian wrote:
  euclid 2:04pm [3d_diameter] cygcheck main
  Found: .\main.exe
  main.exe
C:\WINDOWS\System32\msvcrt.dll
  C:\WINDOWS\System32\KERNEL32.dll
C:\WINDOWS\System32\ntdll.dll
C:\WINDOWS\System32\GLU32.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
C:\cygwin\bin\glut32.dll
  C:\WINDOWS\System32\WINMM.dll

 AFAICT, the above implies that main is *not* a Cygwin app.  If this
 conclusion is correct, then rebasing will not help.

 Jason

 --
 PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
 Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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



Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT 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/



Re: OpenGL and cygwin

2003-11-10 Thread Christopher Faylor
On Mon, Nov 10, 2003 at 03:51:58PM -0500, Suresh Venkatasubramanian wrote:
I see.  this is true I think, inasmuch as I compiled the program using
gcc -mno-cygwin (because I need native windows opengl dlls rather than
the cygwin stuff)

Then you can't use the cygwin glut32.dll.

On Mon, 10 Nov 2003, Jason Tishler wrote:
 Suresh,

 On Mon, Nov 10, 2003 at 02:02:29PM -0500, Suresh Venkatasubramanian wrote:
  euclid 2:04pm [3d_diameter] cygcheck main
  Found: .\main.exe
  main.exe
C:\WINDOWS\System32\msvcrt.dll
  C:\WINDOWS\System32\KERNEL32.dll
C:\WINDOWS\System32\ntdll.dll
C:\WINDOWS\System32\GLU32.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
C:\cygwin\bin\glut32.dll
  C:\WINDOWS\System32\WINMM.dll

 AFAICT, the above implies that main is *not* a Cygwin app.  If this
 conclusion is correct, then rebasing will not help.

 Jason

 --
 PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
 Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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



Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT 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/

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



Re: OpenGL and cygwin

2003-11-10 Thread Suresh Venkatasubramanian

OK. now I am really confused.
Let me try to summarize what I want to do.

I want to compile an OpenGL program that uses the native windows
opengl drivers for linking rather than cygwin's libraries. I compiled my
code using

gcc -mno-cygwin src files -lglut32 -lglu32 -lopengl32

also making sure that I was using the /usr/include/w32api/GL includes.

the code compiles correctly, and does not run, giving the error I
indicated earlier.

Various suggestions (Andre/Brian) indicated that I could use
/usr/bin/glut32.dll as opposed to an nvidia glut dll that I had been using
for this purpose. The error I get is independent of the choice of dll
used.

cjf's mail now indicates that I cannot do this ? any help would be greatly
appreciated

Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT 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/



Re: OpenGL and cygwin

2003-11-10 Thread Christopher Faylor
On Mon, Nov 10, 2003 at 04:16:00PM -0500, Suresh Venkatasubramanian wrote:

OK. now I am really confused.
Let me try to summarize what I want to do.

I want to compile an OpenGL program that uses the native windows
opengl drivers for linking rather than cygwin's libraries. I compiled my
code using

gcc -mno-cygwin src files -lglut32 -lglu32 -lopengl32

also making sure that I was using the /usr/include/w32api/GL includes.

the code compiles correctly, and does not run, giving the error I
indicated earlier.

Various suggestions (Andre/Brian) indicated that I could use
/usr/bin/glut32.dll as opposed to an nvidia glut dll that I had been using
for this purpose. The error I get is independent of the choice of dll
used.

cjf's mail now indicates that I cannot do this ? any help would be greatly
appreciated

You can't use cygwin DLLs with non-cygwin apps.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.com

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



Re: OpenGL and cygwin

2003-11-10 Thread Suresh Venkatasubramanian

True,  but I am not using cygwin dlls. I am using native windows opengl
dlls and an nvidia glut dll. moreover, I compile using -mno-cygwin


Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT 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/



Re: OpenGL and cygwin

2003-11-10 Thread Christopher Faylor
On Mon, Nov 10, 2003 at 04:43:10PM -0500, Suresh Venkatasubramanian wrote:
True, but I am not using cygwin dlls.  I am using native windows opengl
dlls and an nvidia glut dll.  moreover, I compile using -mno-cygwin

Go back and read the output from cygcheck that you sent to this mailing
list.  It shows that you *are* using a cygwin DLL:

C:\cygwin\bin\glut32.dll

So, I will say it again: You can't use cygwin DLLs in a non-cygwin
application.

I don't know anthing about OpenGL, glut, or what, exactly, you are trying
to do.  I am just telling you that your use of a cygwin DLL in a non-cygwin
application is not going to work.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.com

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



Re: OpenGL and cygwin

2003-11-10 Thread Suresh Venkatasubramanian

On Mon, 10 Nov 2003, Christopher Faylor wrote:

 On Mon, Nov 10, 2003 at 04:43:10PM -0500, Suresh Venkatasubramanian wrote:
 True, but I am not using cygwin dlls.  I am using native windows opengl
 dlls and an nvidia glut dll.  moreover, I compile using -mno-cygwin

 Go back and read the output from cygcheck that you sent to this mailing
 list.  It shows that you *are* using a cygwin DLL:

 C:\cygwin\bin\glut32.dll

 So, I will say it again: You can't use cygwin DLLs in a non-cygwin
 application.

I understand what you are saying. Hence I tried compiling using an nvidia
glut dll rather than cygwin\bin\glut32.dll. The results I got were the
same i.e the same error. nvidia is a graphics card manufacturer and they
provide windows dlls for their windows demos (that run fine). The
glut32.dll they provide is non-cygwin as are the other opengl dlls I am
using, so as far as I can make out, all my dlls are non-cygwin.

euclid 5:06pm [3d_diameter] cygcheck main
Found: .\main.exe
main.exe
  C:\WINDOWS\System32\msvcrt.dll
C:\WINDOWS\System32\KERNEL32.dll
  C:\WINDOWS\System32\ntdll.dll
  C:\WINDOWS\System32\GLU32.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

where .\glut32.dll is the nvidia dll I was referring to.

the error message (on this executable) is reproduced below:

euclid 5:09pm [3d_diameter] ./main ifile1
  2 [unknown (0x8C4)] ? 2364 cygheap_fixup_in_child: Couldn't reserve
spacefor cygwin's heap (0x6160 0x0) in child, Win32 error 487
C:\cygwin\home\Suresh\src\myopengl\envelopes\3d_diameter\main.exe: ***
m.AllocationBase 0x6160, m.BaseAddress 0x6160, m.RegionSize 0x3000, m.State
0x1000


Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT 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/



Re: OpenGL and cygwin

2003-11-10 Thread Christopher Faylor
On Mon, Nov 10, 2003 at 05:12:12PM -0500, Suresh Venkatasubramanian wrote:

On Mon, 10 Nov 2003, Christopher Faylor wrote:

 On Mon, Nov 10, 2003 at 04:43:10PM -0500, Suresh Venkatasubramanian wrote:
 True, but I am not using cygwin dlls.  I am using native windows opengl
 dlls and an nvidia glut dll.  moreover, I compile using -mno-cygwin

 Go back and read the output from cygcheck that you sent to this mailing
 list.  It shows that you *are* using a cygwin DLL:

 C:\cygwin\bin\glut32.dll

 So, I will say it again: You can't use cygwin DLLs in a non-cygwin
 application.

I understand what you are saying. Hence I tried compiling using an nvidia
glut dll rather than cygwin\bin\glut32.dll. The results I got were the
same i.e the same error. nvidia is a graphics card manufacturer and they
provide windows dlls for their windows demos (that run fine). The
glut32.dll they provide is non-cygwin as are the other opengl dlls I am
using, so as far as I can make out, all my dlls are non-cygwin.

So, as I said, I don't know OpenGL.  However, if I was debugging this,
I would surely take cygwin entirely out of the mix since you are
building the application with -mno-cygwin and there should be no
reliance on the cygwin DLL at all, contrary to what is showing up
in your error message.

That means I wouldn't run the application from a bash shell.  You might
even remove cygwin from the path entirely.  If you were desperate, you
could even rename cygwin1.dll to something else temporarily.

euclid 5:06pm [3d_diameter] cygcheck main
Found: .\main.exe
main.exe
  C:\WINDOWS\System32\msvcrt.dll
C:\WINDOWS\System32\KERNEL32.dll
  C:\WINDOWS\System32\ntdll.dll
  C:\WINDOWS\System32\GLU32.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

where .\glut32.dll is the nvidia dll I was referring to.

the error message (on this executable) is reproduced below:

euclid 5:09pm [3d_diameter] ./main ifile1
  2 [unknown (0x8C4)] ? 2364 cygheap_fixup_in_child: Couldn't reserve
spacefor cygwin's heap (0x6160 0x0) in child, Win32 error 487
C:\cygwin\home\Suresh\src\myopengl\envelopes\3d_diameter\main.exe: ***
m.AllocationBase 0x6160, m.BaseAddress 0x6160, m.RegionSize 0x3000, m.State
0x1000
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.com

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



Re: OpenGL and cygwin

2003-11-10 Thread Suresh Venkatasubramanian

I see. What is interesting is that I tried running the program from
outside bash (i.e via a windows prompt), and then it complained because it
couldn't find cygwin1.dll. So the cygwin dll is indeed being linked
somehow. my compiling command line is:

g++ -w -mno-cygwin 

from inside a cygwin tcsh shell.




Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT 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/



Re: OpenGL and cygwin

2003-11-10 Thread Brian Ford
On Mon, 10 Nov 2003, Suresh Venkatasubramanian wrote:

 OK. now I am really confused.
 Let me try to summarize what I want to do.

 I want to compile an OpenGL program that uses the native windows
 opengl drivers for linking rather than cygwin's libraries.

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 src files -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.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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



Re: OpenGL and cygwin

2003-11-10 Thread Suresh Venkatasubramanian

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 src files -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 StaffWeb: http://www.research.att.com/~suresh/
ATT 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/



Re: OpenGL and Cygwin

2003-11-03 Thread suresh

 My g++ command line is
 
 g++ -mno-cygwin  -lglut32 -lglu32 -lopengl32
 
 and a cygcheck on my exe file indicated that the glut file being linked
 is my local copy that I got from nvidia,
 
 Can you tell us why you are using GLUT from NVDIA instead of GLUT from 
 Cygwin's OpenGL package?

The reason I was using Nvidia's glut is because they have a more recent 
version of it (glut 3.7 I believe) than the stated version that cygwin 
provides. I recognize that this may cause weird unsupported problems, so I 
tried both versions, and get the same behaviour (success/failure) 
whichever one I use.

As for using extgl to do dynamic loading, that works fine: I now can 
successfully compile my code. It still doesn't run :), but given the 
complexity of the program I am running, I am not sure where exactly the 
problem is or if it is a cygwin error. The error itself comes from cygwin: 
the error message states:

61 [unknown (0x48)] ? 3804 cygheap_fixup_in_child: Couldn't reserve space
for cygwin's heap (0x6160 0x0) in child, Win32 error 487

and follows by giving some state info about the stack etc. 
 
As I said, I don't quite know if this is my problem or cygwin's. All I 
have to go on is that the same code works under linux and g++. I will play 
around with some simpler versions of the code: if this error message comes 
from some familiar mistake that I'm making, I'd be grateful to hear it. 



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



Re: OpenGL and Cygwin

2003-11-03 Thread Brian Ford
On Mon, 3 Nov 2003 [EMAIL PROTECTED] wrote:

 The reason I was using Nvidia's glut is because they have a more recent
 version of it (glut 3.7 I believe) than the stated version that cygwin
 provides. I recognize that this may cause weird unsupported problems, so I
 tried both versions, and get the same behaviour (success/failure)
 whichever one I use.

AFAIK, Cygwin's glut is 3.7.3.

 61 [unknown (0x48)] ? 3804 cygheap_fixup_in_child: Couldn't reserve space
 for cygwin's heap (0x6160 0x0) in child, Win32 error 487

WAG: Have you read this?

http://cygwin.com/cygwin-ug-net/setup-maxmem.html

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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



Re: OpenGL and Cygwin

2003-10-31 Thread Andre Bleau
suresh at research dot att dot com wrote:


Hi Brian, Andre, cygwin folks,
   Thanks for all your help to date. I have been somewhat lax in replying
since I am sitting at my laptop in India with a slow connection. Here is
the situation:
As per Andre's suggestion, I wanted to force linking via the windows gl
headers, and so I just moved the /usr/include/GL/* headers out of the
way, and am using the headers from /usr/include/w32api/GL
My g++ command line is

g++ -mno-cygwin  -lglut32 -lglu32 -lopengl32

and a cygcheck on my exe file indicated that the glut file being linked
is my local copy that I got from nvidia,
Can you tell us why you are using GLUT from NVDIA instead of GLUT from 
Cygwin's OpenGL package?

and the glu,opengl32 libs are
the dll files linked from c/windows/system32
As I mentioned, all of opengl1.1 works fine. In an attempt to get
histograms, I enabled GL_VERSION_1.2 (I may have the spelling wrong here,
but I used the correct #define). However, the way the windows gl files
are structured, if the _WIN32 option is defined, the GL_VERSION_1_2
option is ignored (i.e the GL_VERSION stuff is only included inside a
#ifndef _WIN32 bracket).
Instead, I enabled GL_GLEXT_PROTOTYPES and that seemed to let the
compilation go thru ok. However, at the link phase, I got stuck, with an
error message of the form
undefined reference to [EMAIL PROTECTED]

the @2 suggesting that at least I am using the right include files.
OpenGL 1.2 and up functions have to be loaded dynamically on the Windows 
platform, whether you are using Cygwin or not. Your code cannot simply call 
glGetMinmax; your code needs to load that function first. No fancy linking 
option or library or dll, from NVDIA or someone else, can avoid that.

This is a common problem for OpenGL programmers on the Windows platform, 
and it is not related to Cygwin. I suggest that you look in some OpenGL 
forum to learn how to do that, such as:
http://www.opengl.org/discussion_boards/cgi_directory/forumdisplay.cgi?action=topicsnumber=2start=here

If dynamic loading sounds to much trouble, I suggest that you look at 
extgl, a library that makes programming OpenGL 1.2+ applications on the 
Windows platform easier:

http://www.levp.de/3d/


Now, i have been poking around with the nvidia opengl libs: the one I
have doesn't appear to be the right kind though: (nvoglnt.dll) - I
couldn't link it using -lnvoglnt (ld crashed)
You cannot link with that dll.


This is my current state. I am trying to download the new nvidia drivers
that were released Oct 23, but it is taking some time given my slow
connection


André Bleau, Cygwin's OpenGL package maintainer.

Please address all questions and problem reports about Cygwin's OpenGL 
package to [EMAIL PROTECTED] . 

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


Re: OpenGL and Cygwin

2003-10-26 Thread suresh
Hi Brian, Andre, cygwin folks,
   Thanks for all your help to date. I have been somewhat lax in replying 
since I am sitting at my laptop in India with a slow connection. Here is 
the situation:

As per Andre's suggestion, I wanted to force linking via the windows gl 
headers, and so I just moved the /usr/include/GL/* headers out of the 
way, and am using the headers from /usr/include/w32api/GL

My g++ command line is

g++ -mno-cygwin  -lglut32 -lglu32 -lopengl32

and a cygcheck on my exe file indicated that the glut file being linked 
is my local copy that I got from nvidia, and the glu,opengl32 libs are 
the dll files linked from c/windows/system32

As I mentioned, all of opengl1.1 works fine. In an attempt to get 
histograms, I enabled GL_VERSION_1.2 (I may have the spelling wrong here, 
but I used the correct #define). However, the way the windows gl files 
are structured, if the _WIN32 option is defined, the GL_VERSION_1_2 
option is ignored (i.e the GL_VERSION stuff is only included inside a 
#ifndef _WIN32 bracket).

Instead, I enabled GL_GLEXT_PROTOTYPES and that seemed to let the 
compilation go thru ok. However, at the link phase, I got stuck, with an 
error message of the form

undefined reference to [EMAIL PROTECTED]

the @2 suggesting that at least I am using the right include files.

Now, i have been poking around with the nvidia opengl libs: the one I 
have doesn't appear to be the right kind though: (nvoglnt.dll) - I 
couldn't link it using -lnvoglnt (ld crashed)

This is my current state. I am trying to download the new nvidia drivers 
that were released Oct 23, but it is taking some time given my slow 
connection


I 

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



Re: OpenGL and Cygwin

2003-10-24 Thread Brian Ford
On Fri, 24 Oct 2003 [EMAIL PROTECTED] wrote:

 thanks Andre ! the fix worked. I can now compile helloglut and many of
 the red book opengl demos.

I went back to review this thread, but I am unsure exactly what fix you
actually used.  It would help greatly to see your exact compile line, and
to know what headers/libs you are, or think you are, using.  Did you move
/usr/include/GL/[gl.h glu.h] out of the way like I suggested?

BTW,

Andre Bleau wrote:
Forget about LD_LIBRARY_PATH; it is not used by cygwin.

Plain old PATH is sort of the equivalent here to find DLLs.

 I noticed that glGetMinmax and some histogram related functions are not
 supported. It is possible that this is because these are opengl 1.2
 functions.

I short, yes.  But I really need to know what headers/libs you are using
to give you the correct advice on how to obtain them.

 By setting appropriate flags I got the appropriate GL_flags
 set correctly:

You mean defining GL_VERSION_1_2?  So, you are using the headers from the
opengl package in /usr/include/GL.  That is ok as long as you don't want
1.3 functionality.  Otherwise, I suggest following my move out of the
way suggestion.

  however it appears that the libopengl32.a supplied with
 cygwin is only opengl1.1 compliant, which appears to be consistent with
 the README.

That is because Microsoft only supplies 1.1 functionality.  If you want
greater, you must load those functions as extensions.

 I have more recent nvidia drivers (I think :)): Is there any way to
 convert them to to a linkable form ? (i.e using dlltool or something like
 that). I

You do.  Most nvidia drivers are 1.3 or 1.4.  You don't need to convert
them, they are linkable as is via the normal described methods.

I think I can probably be of great help to you here, but you need to
describe you problems/goals in much greater detail.  I promise to try my
best to help if you do.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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



Re: OpenGL and Cygwin

2003-10-23 Thread suresh
thanks Andre ! the fix worked. I can now compile helloglut and many of 
the red book opengl demos.

I noticed that glGetMinmax and some histogram related functions are not 
supported. It is possible that this is because these are opengl 1.2 
functions. By setting appropriate flags I got the appropriate GL_flags 
set correctly: however it appears that the libopengl32.a supplied with 
cygwin is only opengl1.1 compliant, which appears to be consistent with 
the README.

I have more recent nvidia drivers (I think :)): Is there any way to 
convert them to to a linkable form ? (i.e using dlltool or something like 
that). I 

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



Re: OpenGL and Cygwin

2003-10-22 Thread Andre Bleau
suresh at research dot att dot com wrote:

As per Andre's suggestion, i compiled and ran the attached program. Below
are the outputs under different system settings:
All programs run from tcsh inside cygwin. My LD_LIBRARY_PATH also had my
current dir, because I had the nvidia glut32.dll and glut32.lib files in
it (which work when compiled with visual C++ on a different machine - I
tried one of their demos)
Forget about LD_LIBRARY_PATH; it is not used by cygwin.


This was the first run, just from scratch with no extra parameters.

--
[EMAIL PROTECTED] ~/src]$ g++ -o helloglut opengltest.c -lglut32 -lglu32 -
lopengl32
/tmp/ccwy9vdk.o(.text+0xe):opengltest.c: undefined reference to `_glClear'
/tmp/ccwy9vdk.o(.text+0x4c):opengltest.c: undefined reference to
`_glutInit'
/tmp/ccwy9vdk.o(.text+0x58):opengltest.c: undefined reference to
`_glutCreateWin
dow'
/tmp/ccwy9vdk.o(.text+0x64):opengltest.c: undefined reference to
`_glutDisplayFu
nc'
/tmp/ccwy9vdk.o(.text+0x69):opengltest.c: undefined reference to
`_glutMainLoop'
collect2: ld returned 1 exit status
-
The error messages above make it clear: you are using the wrong headers. 
Cygwin's OpenGL headers would have generated messages like:

$ g++ helloGlut.c -o helloGlut
/cygdrive/c/DOCUME~1/bleau/LOCALS~1/Temp/cc99dyy4.o(.text+0xe):helloGlut.c: 
unde
fined reference to [EMAIL PROTECTED]'
/cygdrive/c/DOCUME~1/bleau/LOCALS~1/Temp/cc99dyy4.o(.text+0x50):helloGlut.c: 
und
efined reference to [EMAIL PROTECTED]'
/cygdrive/c/DOCUME~1/bleau/LOCALS~1/Temp/cc99dyy4.o(.text+0x5f):helloGlut.c: 
und
efined reference to [EMAIL PROTECTED]'
/cygdrive/c/DOCUME~1/bleau/LOCALS~1/Temp/cc99dyy4.o(.text+0x6e):helloGlut.c: 
und
efined reference to [EMAIL PROTECTED]'
/cygdrive/c/DOCUME~1/bleau/LOCALS~1/Temp/cc99dyy4.o(.text+0x76):helloGlut.c: 
und
efined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status

Notice the @4, @8, and @0 after the names.

You said in a previous message that you downloaded headers from NVDIA's 
site. If you are using these, that's the source of the problem. They are 
incompatible with gcc and g++ because they do not specify the right calling 
convention.

My advice: ditch those headers and use the ones from Cygwin's OpenGL 
package, or the ones from Cygwin's w32api package.

Alternative: modify NVDIA's headers to specify the right calling convention 
by adding

__attribute__ ((__stdcall__))

to the declaration of the functions. However, if you choose that path, do 
not expect anymore help from me; I am not going to support people who 
replace headers from Cygwin packages with headers from third parties. You 
would have to go to NVDIA's site for support.



André Bleau, Cygwin's OpenGL package maintainer.

Please address all questions and problem reports about Cygwin's OpenGL 
package to [EMAIL PROTECTED] . 

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


Re: OpenGL and Cygwin

2003-10-21 Thread suresh
As per Andre's suggestion, i compiled and ran the attached program. Below 
are the outputs under different system settings:

All programs run from tcsh inside cygwin. My LD_LIBRARY_PATH also had my 
current dir, because I had the nvidia glut32.dll and glut32.lib files in 
it (which work when compiled with visual C++ on a different machine - I 
tried one of their demos)

This was the first run, just from scratch with no extra parameters.

--
[EMAIL PROTECTED] ~/src]$ g++ -o helloglut opengltest.c -lglut32 -lglu32 -
lopengl32
/tmp/ccwy9vdk.o(.text+0xe):opengltest.c: undefined reference to `_glClear'
/tmp/ccwy9vdk.o(.text+0x4c):opengltest.c: undefined reference to 
`_glutInit'
/tmp/ccwy9vdk.o(.text+0x58):opengltest.c: undefined reference to 
`_glutCreateWin
dow'
/tmp/ccwy9vdk.o(.text+0x64):opengltest.c: undefined reference to 
`_glutDisplayFu
nc'
/tmp/ccwy9vdk.o(.text+0x69):opengltest.c: undefined reference to 
`_glutMainLoop'

collect2: ld returned 1 exit status
-

To account for the vagaries of LD_LIBRARY_PATH, I then tried explicitly 
giving the desired paths for the lib files:


[EMAIL PROTECTED] ~/src]$ g++ -o helloglut opengltest.c -L/usr/lib/w32api -
lglut32 -lglu32 -lopengl32
/tmp/cc5Cu8ni.o(.text+0xe):opengltest.c: undefined reference to `_glClear'
/tmp/cc5Cu8ni.o(.text+0x4c):opengltest.c: undefined reference to 
`_glutInit'
/tmp/cc5Cu8ni.o(.text+0x58):opengltest.c: undefined reference to 
`_glutCreateWin
dow'
/tmp/cc5Cu8ni.o(.text+0x64):opengltest.c: undefined reference to 
`_glutDisplayFu
nc'
/tmp/cc5Cu8ni.o(.text+0x69):opengltest.c: undefined reference to 
`_glutMainLoop'

collect2: ld returned 1 exit status

--

I also then tried compiling with =mno-cygwin

-
[EMAIL PROTECTED] ~/src]$ g++ -mno-cygwin -o helloglut opengltest.c -lglut32 -
lglu32
-lopengl32
/tmp/cceShHmg.o(.text+0xe):opengltest.c: undefined reference to 
`__imp__glClear'

/tmp/cceShHmg.o(.text+0x4e):opengltest.c: undefined reference to 
`_glutInit'
/tmp/cceShHmg.o(.text+0x5a):opengltest.c: undefined reference to 
`_glutCreateWin
dow'
/tmp/cceShHmg.o(.text+0x66):opengltest.c: undefined reference to 
`_glutDisplayFu
nc'
/tmp/cceShHmg.o(.text+0x6b):opengltest.c: undefined reference to 
`_glutMainLoop'

collect2: ld returned 1 exit status

--

The only difference in this case was the different library call for 
glClear. I also tried linking the /usr/X11R6/lib opengl libraries using  -
lGL. that cf course got rid of the glClear undefined reference but didn't 
solve the glut problem.




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



Re: OpenGL and Cygwin

2003-10-20 Thread Andre Bleau
Suresh Venkatasubramanian wrote:


Hi,
  I apologize in advance if this duplicates questions already asked and
answered: I have searched the cygwin/cygwin-apps mailing lists already,
and there appears to be no clear answer, and most of the FAQs are a bit
outdated.
I have an opengl program that I wish to compile under the cygwin
environment, but using NO mesa drivers, only the native windows drivers.
This program uses GLU and GLUT, as well as opengl and nvidia extensions.
Now I have downloaded the nvidia extensions headers, and am able to create
object files correctly, after some experimenting (it appears that I need
to use the -mno-cygwin flag to enable the _WIN32 macros).
Do the nvidia extensions headers you downloaded include gl.h ? If yes, 
that could be your problem.


However, I have severe problems when linking using g++ *.o -lglu32
-lglut32 -lopengl32 (as per the /usr/doc/opengl*/README file).
/usr/doc/opengl*/README says:

Add -lglut32 -lglu32 -lopengl32 to your link command (in that order).

 Most of the
stubs cannot be found. A sampling of the errors I get:
undefined reference to [EMAIL PROTECTED]
undefined reference [EMAIL PROTECTED]
A sign that I am probably missing some more basic libs is that I even get
undefined references to __assert, as well as something mysterious called
__imp__iob, which again looks like somethng unrelated to the opengl code I
am compiling.
I'd appreciate any help
Try something simple, like compiling and linking the following example with
g++ -o helloGlut helloGlut.c -lglut32 -lglu32 -lopengl32
and report _all_ and _exact_ error messages to this list (not to me!).

-- helloGlut.c 
#include GL/glut.h
void display_func()
{
glClear(GL_COLOR_BUFFER_BIT);
}
int main(int argc, char* argv[])
{
glutInit(argc, argv);
glutCreateWindow(Hello GLUT!);
glutDisplayFunc(display_func);
glutMainLoop();
return 0;
}
-- helloGlut.c 


André Bleau, Cygwin's OpenGL package maintainer.

Please address all questions and problem reports about Cygwin's OpenGL 
package to [EMAIL PROTECTED] . 

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


OpenGL and Cygwin

2003-10-18 Thread Suresh Venkatasubramanian

Hi,
  I apologize in advance if this duplicates questions already asked and
answered: I have searched the cygwin/cygwin-apps mailing lists already,
and there appears to be no clear answer, and most of the FAQs are a bit
outdated.

I have an opengl program that I wish to compile under the cygwin
environment, but using NO mesa drivers, only the native windows drivers.
This program uses GLU and GLUT, as well as opengl and nvidia extensions.

Now I have downloaded the nvidia extensions headers, and am able to create
object files correctly, after some experimenting (it appears that I need
to use the -mno-cygwin flag to enable the _WIN32 macros).

However, I have severe problems when linking using g++ *.o -lglu32
-lglut32 -lopengl32 (as per the /usr/doc/opengl*/README file). Most of the
stubs cannot be found. A sampling of the errors I get:


undefined reference to [EMAIL PROTECTED]
undefined reference [EMAIL PROTECTED]

A sign that I am probably missing some more basic libs is that I even get
undefined references to __assert, as well as something mysterious called
__imp__iob, which again looks like somethng unrelated to the opengl code I
am compiling.

I'd appreciate any help

Suresh Venkatasubramanian, Ph: 973 360 8951 (o)
Member, Technical StaffWeb: http://www.research.att.com/~suresh/
ATT Shannon Labs

Amateurs built the Ark; professionals built the Titanic - heard on Car Talk

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



Re: opengl and cygwin

2002-02-08 Thread Andre Bleau


Hi,

I have been working OpenGl and Cygwin for some time now.
You do not have to install xfree in order to make it work.
Just download the Package :

http://atlas.puj.edu.co/~amatta/tesis/OpenGl/Windows/cygwin/OpenGLPackage.zip

It includes all the necesary libraries to make OpenGl and Cygwin work
together.

Antonio.

Is there any reason that you don't use the OpenGL package from the Cygwin's 
distribution ? Every necessary pieces is there, and you also get GLU, GLUT 
and GLUI on top of that.


André Bleau, Cygwin's OpenGL package maintainer.

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

Please address all questions and problem reports about Cygwin's OpenGL 
package to [EMAIL PROTECTED] .



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




opengl and cygwin

2002-02-05 Thread Ling F. Zhang

this seems like an X question, but it concerns openssh
as well, so I am going to ask.
okay, I need to do some opengl development. I found
that opengl library comes with cygwin, that's a plus
for me.  but I think I might need to install xfree for
cygwin in order for it to work (is this true?)
say I need to install, but I don't want to. I have
exceed, so, can I just run exceed, forward the
DISPLAY, an expect anything to work at all?

if I am talking non-sense here...can anyone tell me
how to get opengl to work? since it's included in the
cygwin package? (does it include glut? or do I have to
compile / install it myself?)

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.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/




Re: opengl and cygwin

2002-02-05 Thread Ling F. Zhang

Thanks for that information.  I read the info.  If my
understanding is correct, the opengl that came with
cygwin is just like the one with windows and all I
have to do is link. so I just added -llib to my gcc
line...well, it returns symbol not found error...okay,
that sounds to me that my lib PATh is incorrect...so I
tried to look for the file like glut.lib...that came
up empty...so can anyone ever played with opengl on
cygwin tell me how should I link? what PATH do I need
to add?

--- Larry Hall (RFK Partners, Inc) [EMAIL PROTECTED]
wrote:
 At 03:03 PM 2/5/2002, Ling F. Zhang wrote:
 this seems like an X question, but it concerns
 openssh
 as well, so I am going to ask.
 okay, I need to do some opengl development. I found
 that opengl library comes with cygwin, that's a
 plus
 for me.  but I think I might need to install xfree
 for
 cygwin in order for it to work (is this true?)
 say I need to install, but I don't want to. I have
 exceed, so, can I just run exceed, forward the
 DISPLAY, an expect anything to work at all?
 
 if I am talking non-sense here...can anyone tell me
 how to get opengl to work? since it's included in
 the
 cygwin package? (does it include glut? or do I have
 to
 compile / install it myself?)
 
 
 Try /usr/doc/opengl-1.1.0/README.txt
 
 
 
 Larry Hall 
 [EMAIL PROTECTED]
 RFK Partners, Inc. 
 http://www.rfk.com
 838 Washington Street   (508)
 893-9779 - RFK Office
 Holliston, MA 01746 (508)
 893-9889 - FAX
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.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/




Re: opengl and cygwin

2002-02-05 Thread Larry Hall (RFK Partners, Inc)

Cygwin follows UNIX conventions for library names.  That means the glut
library is named libglut.a.  If you installed the OpenGL package, you 
should find this in /usr/lib.

Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX



At 03:42 PM 2/5/2002, Ling F. Zhang wrote:
Thanks for that information.  I read the info.  If my
understanding is correct, the opengl that came with
cygwin is just like the one with windows and all I
have to do is link. so I just added -llib to my gcc
line...well, it returns symbol not found error...okay,
that sounds to me that my lib PATh is incorrect...so I
tried to look for the file like glut.lib...that came
up empty...so can anyone ever played with opengl on
cygwin tell me how should I link? what PATH do I need
to add?

--- Larry Hall (RFK Partners, Inc) [EMAIL PROTECTED]
wrote:
  At 03:03 PM 2/5/2002, Ling F. Zhang wrote:
  this seems like an X question, but it concerns
  openssh
  as well, so I am going to ask.
  okay, I need to do some opengl development. I found
  that opengl library comes with cygwin, that's a
  plus
  for me.  but I think I might need to install xfree
  for
  cygwin in order for it to work (is this true?)
  say I need to install, but I don't want to. I have
  exceed, so, can I just run exceed, forward the
  DISPLAY, an expect anything to work at all?
  
  if I am talking non-sense here...can anyone tell me
  how to get opengl to work? since it's included in
  the
  cygwin package? (does it include glut? or do I have
  to
  compile / install it myself?)
  
  
  Try /usr/doc/opengl-1.1.0/README.txt
  
  
  
  Larry Hall 
  [EMAIL PROTECTED]
  RFK Partners, Inc. 
  http://www.rfk.com
  838 Washington Street   (508)
  893-9779 - RFK Office
  Holliston, MA 01746 (508)
  893-9889 - FAX
  


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.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/