Re: Error installing HOpenGL under Win32
Manuel Garcia Rodriguez <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.hopengl |
|---|---|
| Message-ID | <[email protected]> |
Hello. Thanks for replying. --- Sven Panne <[email protected]> escribió: > Manuel Garcia Rodriguez wrote: > > [...] > > checking GL version... 1.2 > > checking GLU version... 1.3 > > That's a problem with the current Cygwin headers: > They are simply lying, > the DLLs under WinDoze only implement OpenGL 1.1 and > GLU 1.2.2. Mmm, but I think that my video card drivers replace this files. I compile and install a module in Mandrake 9.0 for my Radeon 9000 and this is glxinfo output (under Linux): [root@localhost HOpenGL-1.03]# glxinfo name of display: :0.0 Loading required GL library /usr/X11R6/lib/libGL.so.1.2 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.2 server glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context client glx vendor string: SGI client glx version string: 1.2 client glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_ATI_pixel_format_float GLX extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: Radeon 9000/Mobility Fire GL 8800 Prototype DDR Athlon (3DNow!) OpenGL version string: 1.3.3477 (X4.2.0-2.5.1) OpenGL extensions: GL_ARB_multitexture, GL_EXT_texture_env_add, GL_EXT_compiled_vertex_array, GL_S3_s3tc, GL_ARB_point_parameters, GL_ARB_texture_border_clamp, GL_ARB_texture_compression, GL_ARB_texture_cube_map, GL_ARB_texture_env_add, GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat, GL_ARB_transpose_matrix, GL_ARB_vertex_blend, GL_ARB_vertex_program, GL_ARB_window_pos, GL_ATI_element_array, GL_ATI_envmap_bumpmap, GL_ATI_fragment_shader, GL_ATI_map_object_buffer, GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once, GL_ATI_vertex_array_object, GL_ATI_vertex_attrib_array_object, GL_ATI_vertex_streams, GL_ATIX_texture_env_combine3, GL_ATIX_texture_env_route, GL_ATIX_vertex_shader_output_point_size, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint, GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_polygon_offset, GL_EXT_secondary_color, GL_EXT_separate_specular_color, GL_EXT_stencil_wrap, GL_EXT_texgen_reflection, GL_EXT_texture3D, GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_EXT_vertex_shader, GL_HP_occlusion_test, GL_NV_texgen_reflection, GL_NV_blend_square, GL_NV_occlusion_query, GL_SGI_texture_edge_clamp, GL_SGIS_texture_border_clamp, GL_SGIS_texture_lod, GL_SGIS_generate_mipmap, GL_SGIS_multitexture, GL_SUN_multi_draw_arrays glu version: 1.3 glu extensions: GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat ---------------------------------------------------------------------- 0x23 24 tc 0 24 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x24 24 tc 0 24 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x25 24 tc 0 24 0 r y . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow 0x26 24 tc 0 24 0 r . . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow 0x27 24 tc 0 24 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x28 24 tc 0 24 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x29 24 tc 0 24 0 r y . 8 8 8 8 0 24 0 0 0 0 0 0 0 None 0x2a 24 tc 0 24 0 r . . 8 8 8 8 0 24 0 0 0 0 0 0 0 None 0x2b 24 dc 0 24 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x2c 24 dc 0 24 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow 0x2d 24 dc 0 24 0 r y . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow 0x2e 24 dc 0 24 0 r . . 8 8 8 8 0 24 0 16 16 16 16 0 0 Slow 0x2f 24 dc 0 24 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x30 24 dc 0 24 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None 0x31 24 dc 0 24 0 r y . 8 8 8 8 0 24 0 0 0 0 0 0 0 None 0x32 24 dc 0 24 0 r . . 8 8 8 8 0 24 0 0 0 0 0 0 0 None Redbook_C examples work fine. But making Redbook_HS fails: ... make all - --no-print-directory; in /root/fuentes/HOpenGL-1.03/examples/misc ------------------------------------------------------ "/usr/bin/ghc" -i../../lib -I../../lib -syslib util -fglasgow-exts -I/usr/X11R6/include "-#include <GL/glut.h>" -O -c Info.hs -o Info.o Prologue junk?: .globl __stginit_Main __stginit_Main: pushl %ebp movl %esp, %ebp make[2]: *** [Info.o] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1 What does this mean? With WinXP + Cygwin + GHC neither C nor HS compile: redbook_HS: ... h:\DOCUME~1\manuel\CONFIG~1\Temp\ghc1744.hc:844: `GL_UNSIGNED_INT_2_10_10_10_REV ' undeclared (first use in this function) h:\DOCUME~1\manuel\CONFIG~1\Temp\ghc1744.hc: In function `saOB_ret': h:\DOCUME~1\manuel\CONFIG~1\Temp\ghc1744.hc:3163: warning: implicit declaration of function `glDrawRangeElements' make[1]: *** [GL_VertexArray.o] Error 1 make: *** [all] Error 1 It seems like gl headers are missing... redbook_C: manuel@PCMANUEL /usr/ghc/HOpenGL-1.03/examples/redbook_C $ make ... gcc -I/usr/X11R6/include aaindex.c -lGLU -lGL -lSM -lICE -L/usr/X11R6/lib -lX 11 -lXext -lXmu -lXt -lXi -o aaindex /cygdrive/h/DOCUME~1/manuel/CONFIG~1/Temp/ccEXDuY9.o(.text+0x48):aaindex.c: unde fined reference to `_glutSetColor' ... Unable to link any GLUT functions. Maybe GLUT isn't properly installed... GHC for Windows comes with some parts of GCC compiler, and I installed gcc for Cygwin also. Please I need some help, I must finish some work this week, Linux or Windows, GHC or Hugs. Thanks. Manuel ___________________________________________________ Yahoo! Postales Felicita las Navidades con las postales más divertidas desde http://postales.yahoo.es