Re: [HOpenGL] Re: Starting it all over again

Typical... Manuel wrote:
Yeh, I have the same problem, and I have a FULL install (all packages). ld can't link any glut calls, so there's a Cygwin setup problem. Cygwin Opengl package comes with gl, glu, glut headers, glut32.dll, and libglui.a libgluix.a. There's no libglut.a. I think that OpenGL is required by XWindow, so libGL.a and libGLU.a exist in X11R6 lib path. glxgears works, so gl works, but glut doesn't.
yes, the listing at http://www.cygwin.com/packages/opengl/opengl-1.1.0-6 confirms this.. no libglut.a typical... maybe this is because the win32 and unix sources for glut are integrated into the same source tree now and maybe the glut make process decides to make only a DLL if you make it on windows, (even under cygwin). If so, that is pretty annoying... still, the opengl-1.1.0-6-src ie the SOURCE package, DOES contain all the glut sources, so why not get this source package and try compiling it, and try to find out why the rotten thing doesnt produce a libglut.a if you cant compile a libglut.a from that source package, then maybe try downloading the original sources for the glut, from opengl.org and see if that will compile under cygwin. If you do use the real openGL glut, when you do the install, it will not install the headers, just the libglut.a So you'll have to install the headers yourself. Just go into the package's include directory and copy the glut.h into /usr/local/include/GL/ or some such location. Besides that, I had no problems compiling my glut. it was simple, and it beats me why cygwin and some other distribution makers make obtaining a working glut such an ordeal. Surely someone on this list has got HOpenGL working on cygwin.. if so.. maybe they could let the list know where they got their glut. John

Are you sure you don't have glut installed? If installed the right packages (including opengl, w32api and devel package), go to the HOpengl examples/redbook_C directory, and try: gcc scene.c -lopengl32 -lglu32 -lglut32 Does this compile?? (works on my cywgin, which I think is 'fairly' current :)) Yes these are the libraries in the /usr/lib/w32api, but they are NOT for ming-no-cygwin or whatever thats called. They are for running under cygwin. ===== ------------------------------------- Ronald Legere rjljr2@yahoo.com ------------------------------------- __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

Whoops, one of posters mentioned Cygwin/X. Are we
talking about Cygwin/X? I thought we were talking
about 'normal' Cygwin and Hopengl. Is hopengl supposed
to work under Cygwin/X? I never tried it.
--- Ronald Legere
Are you sure you don't have glut installed? If installed the right packages (including opengl, w32api and devel package), go to the HOpengl examples/redbook_C directory, and try:
gcc scene.c -lopengl32 -lglu32 -lglut32
Does this compile?? (works on my cywgin, which I think is 'fairly' current :))
Yes these are the libraries in the /usr/lib/w32api, but they are NOT for ming-no-cygwin or whatever thats called. They are for running under cygwin.
===== ------------------------------------- Ronald Legere rjljr2@yahoo.com -------------------------------------
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ HOpenGL mailing list HOpenGL@haskell.org http://www.haskell.org/mailman/listinfo/hopengl
===== ------------------------------------- Ronald Legere rjljr2@yahoo.com ------------------------------------- __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

Ronald Legere wrote:
Whoops, one of posters mentioned Cygwin/X. Are we talking about Cygwin/X?
Probably not, but I mentioned it for completeness.
I thought we were talking about 'normal' Cygwin and Hopengl.
'normal' is a subjective term, particularly when it comes to Cygwin. The "Cygwin environment" is a hybrid of Unix and Windows. Both provide OpenGL; which one is "normal"?
Is hopengl supposed to work under Cygwin/X? I never tried it.
Me neither. Although, it works under Unix/X11, so it isn't
inconceivable that Cygwin/X11 might work.
Just to clarify: there are two distinct options for OpenGL with
Cygwin: Win32 and X11.
For the Win32 version, you need both the "opengl" and "w32api"
packages, and the linker has to actually look in /usr/lib/w32api
(which it may not do if it thinks that you're trying to build a "Unix"
program).
For the X11 version, you need the XFree86 port, and you would need to
build GLUT yourself. FWIW, I don't know about HOpenGL specifically,
but the XFree86 port *does* support OpenGL.
In any case, my guess is that the Win32 version is desired, and that
the problem is either lack of the w32api package, or non-use thereof
by the linker. Using "-mno-cygwin" might work, as might
"-L/usr/lib/w32api".
--
Glynn Clements

Thanks Glenn for the clarification. One thing though, for HOpengl on cygwin/win32 opengl, you should not have to mess with the linker flags, configure should get it right. Just as a test, I recompiled HOpengl (./congfigure; make depend; make) on my Cygwin install and had no hic-ups... so it ~should~ work. I think the original poster was missing yet another package.... Cygwin is a bit tricky to install because there is not enough documentation (IMHO) on what packages you might need... (And I never got x11 to work, so gave up on that!) ===== ------------------------------------- Ronald Legere rjljr2@yahoo.com ------------------------------------- __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
participants (3)
-
Glynn Clements
-
John Sincock
-
Ronald Legere