Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the OpenGL CPAN distribution.

Report information
The Basics
Id: 45887
Status: resolved
Priority: 0/
Queue: OpenGL

People
Owner: Nobody in particular
Requestors: tsally2 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Build on Intel Mac OS X v 10.5.6 Failed
Perl version information and build log reproduced below. Please do let me know if I can be of any more assistance. Perl Info: ------------------------- tim$ perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=darwin, osvers=9.0, archname=darwin-thread-multi-2level uname='darwin b71.apple.com 9.0 darwin kernel version 9.2.0: mon feb 18 15:29:49 pst 2008; root:xnu-1228.3.14~1release_i386 i386 ' config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include', optimize='-O3', cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='4.0.1 (Apple Inc. build 5465)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc -mmacosx-version-min=10.5.1', ldflags ='-arch i386 -arch ppc -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Locally applied patches: fix for regcomp CVE-2007-5116 security vulnerability Built under darwin Compiled at May 31 2008 00:04:31 Build Log: ------------------------- cpan[5]> install OpenGL Running install for module 'OpenGL' Running make for B/BF/BFREE/OpenGL-0.57.tar.gz Fetching with LWP: ftp://mirrors2.kernel.org/pub/CPAN/authors/id/B/BF/BFREE/OpenGL-0.57.tar.gz Fetching with LWP: ftp://mirrors2.kernel.org/pub/CPAN/authors/id/B/BF/BFREE/CHECKSUMS Checksum for /Users/tim/Library/Application Support/.cpan/sources/authors/id/B/BF/BFREE/OpenGL-0.57.tar.gz ok OpenGL-0.57/ OpenGL-0.57/CHANGES OpenGL-0.57/COPYRIGHT OpenGL-0.57/examples/ OpenGL-0.57/examples/clip OpenGL-0.57/examples/cube OpenGL-0.57/examples/depth OpenGL-0.57/examples/double OpenGL-0.57/examples/fun OpenGL-0.57/examples/glu_test OpenGL-0.57/examples/light OpenGL-0.57/examples/plane OpenGL-0.57/examples/planets OpenGL-0.57/examples/quest OpenGL-0.57/examples/README OpenGL-0.57/examples/simple OpenGL-0.57/examples/smooth OpenGL-0.57/examples/spaceship.nff OpenGL-0.57/examples/stan.ppm OpenGL-0.57/examples/texhack OpenGL-0.57/examples/texture OpenGL-0.57/examples/tk_demo OpenGL-0.57/examples/tk_steal OpenGL-0.57/examples/try OpenGL-0.57/examples/wolf.bin OpenGL-0.57/fragment.arb OpenGL-0.57/fragment.cg OpenGL-0.57/fragment.glsl OpenGL-0.57/FreeGLUT/ OpenGL-0.57/FreeGLUT/freeglut.dll OpenGL-0.57/FreeGLUT/freeglut.lib OpenGL-0.57/FreeGLUT/README.txt OpenGL-0.57/genvars.pl OpenGL-0.57/glext_procs.h OpenGL-0.57/glpm_const.h OpenGL-0.57/glut_const.h OpenGL-0.57/glut_util.h OpenGL-0.57/glu_const.h OpenGL-0.57/glu_util.h OpenGL-0.57/glx_const.h OpenGL-0.57/glx_util.h OpenGL-0.57/gl_const.h OpenGL-0.57/gl_util.c OpenGL-0.57/gl_util.h OpenGL-0.57/include/ OpenGL-0.57/include/GL/ OpenGL-0.57/include/GL/freeglut.h OpenGL-0.57/include/GL/freeglut_ext.h OpenGL-0.57/include/GL/freeglut_std.h OpenGL-0.57/include/GL/gl.h OpenGL-0.57/include/GL/glext.h OpenGL-0.57/include/GL/glprocs.h OpenGL-0.57/include/GL/glut.h OpenGL-0.57/include/GL/glxext.h OpenGL-0.57/include/GL/SGIFreeSWLicB.1.1.pdf OpenGL-0.57/include/GL/wglext.h OpenGL-0.57/INSTALL OpenGL-0.57/isosurf.bin OpenGL-0.57/isosurf.pl OpenGL-0.57/KNOWN_PROBLEMS OpenGL-0.57/Makefile.PL OpenGL-0.57/MANIFEST OpenGL-0.57/menutest.pl OpenGL-0.57/META.yml OpenGL-0.57/oga.pl OpenGL-0.57/OpenGL.pm OpenGL-0.57/OpenGL.pod OpenGL-0.57/OpenGL.xs OpenGL-0.57/os2pm_X.h OpenGL-0.57/ppport.h OpenGL-0.57/README OpenGL-0.57/README.cygwin OpenGL-0.57/README.FreeBSD OpenGL-0.57/README.macosx OpenGL-0.57/README.nvidia OpenGL-0.57/README.os2 OpenGL-0.57/README.Win32 OpenGL-0.57/SUPPORTS OpenGL-0.57/test.jpg OpenGL-0.57/test.pl OpenGL-0.57/test.png OpenGL-0.57/test.tga OpenGL-0.57/TODO OpenGL-0.57/typemap OpenGL-0.57/utils/ OpenGL-0.57/utils/cleanup.pl OpenGL-0.57/utils/const.pl OpenGL-0.57/utils/exports.pl OpenGL-0.57/utils/exports.txt OpenGL-0.57/utils/glext_procs.pl OpenGL-0.57/utils/glversion.c OpenGL-0.57/utils/hdr_diff.pl OpenGL-0.57/utils/Makefile OpenGL-0.57/utils/Makefile.cygwin OpenGL-0.57/utils/Makefile.macosx OpenGL-0.57/utils/makefile.mak OpenGL-0.57/utils/makefile.mingw OpenGL-0.57/utils/mingw.bat OpenGL-0.57/utils/opengl32.txt OpenGL-0.57/utils/wgl_ext.txt OpenGL-0.57/vertex.arb OpenGL-0.57/vertex.cg OpenGL-0.57/vertex.glsl CPAN.pm: Going to build B/BF/BFREE/OpenGL-0.57.tar.gz 2009-05-09 03:15:21.152 glversion[94891:10b] GLUT Warning: invalid glutGet parameter: 508 Found GLUT - unknown version Using interface: AGL Checking if your kit is complete... Looks good Writing Makefile for OpenGL cp OpenGL.pm blib/lib/OpenGL.pm AutoSplitting blib/lib/OpenGL.pm (blib/lib/auto/OpenGL) cp Config.pm blib/lib/OpenGL/Config.pm cp OpenGL.pod blib/lib/OpenGL.pod /usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.8.8/ExtUtils/typemap -typemap typemap OpenGL.xs > OpenGL.xsc && mv OpenGL.xsc OpenGL.c cc -c -Iinclude -I/usr/X11/include -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3 -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" "-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" -DHAVE_VER -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT OpenGL.c cc -c -Iinclude -I/usr/X11/include -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3 -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" "-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" -DHAVE_VER -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT gl_util.c Running Mkbootstrap for OpenGL () chmod 644 OpenGL.bs rm -f blib/arch/auto/OpenGL/OpenGL.bundle cc -mmacosx-version-min=10.5.1 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib OpenGL.o gl_util.o -framework OpenGL -framework GLUT -o blib/arch/auto/OpenGL/OpenGL.bundle \ \ chmod 755 blib/arch/auto/OpenGL/OpenGL.bundle cp OpenGL.bs blib/arch/auto/OpenGL/OpenGL.bs chmod 644 blib/arch/auto/OpenGL/OpenGL.bs Manifying blib/man3/OpenGL.3pm BFREE/OpenGL-0.57.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl Can't load 'blib/arch/auto/OpenGL/OpenGL.bundle' for module OpenGL: dlopen(blib/arch/auto/OpenGL/OpenGL.bundle, 2): Symbol not found: _glutBitmapHeight Referenced from: /Users/tim/Library/Application Support/.cpan/build/OpenGL-0.57-bo6ZNN/blib/arch/auto/OpenGL/OpenGL.bundle Expected in: dynamic lookup at test.pl line 9 Compilation failed in require at test.pl line 9. BEGIN failed--compilation aborted at test.pl line 9. make: *** [test_dynamic] Error 2 BFREE/OpenGL-0.57.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports BFREE/OpenGL-0.57.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: BFREE/OpenGL-0.57.tar.gz : make_test NO
I'm not familiar with apple platform specific details but AGL seems to be the correct build option. Some things to try that might help debugging: (1) Build from the command line using the usual sequence perl Makefile.PL verbose make make test make install (2) Use the verbose flag to get more diagnostics output. (3) Did the glversion command get built? If so, what is the output from running it? (4) Are OpenGL and GLUT installed on your system? You might look for a glxgears program. If that runs then the OpenGL libraries were found and are usable. --Chris
From: tsally2 [...] gmail.com
Thanks for the quick reply! I have verified that glxgears does work on my system. A quick summary of my tests below: I've included output from attempting to manually build it in verbose mode, as was as the output of the commnand 'glxinfo'. If you're just glancing over this report quickly and don't have time to read through all the output, I believe the point of failure is 'Can't load 'blib/arch/auto/OpenGL/OpenGL.bundle' for module OpenGL: dlopen(blib/arch/auto/OpenGL/OpenGL.bundle'. perl Makefile.PL verbose --------------------------------------------- found libs: GL = 'OpenGL.framework' GLU = 'AGL.framework' GLUT = 'GLUT.framework' Testing for OpenGL Extensions Testing GLUT version glversion: cd utils;make -f Makefile.macosx GLUT_LIB=GLUT.framework GLUT_DEF=HAVE_GLUT clean;make -f Makefile.macosx GLUT_LIB=GLUT.framework GLUT_DEF=HAVE_GLUT 2009-05-09 17:00:12.726 glversion[3581:10b] GLUT Warning: invalid glutGet parameter: 508 rm -f glversion.txt rm -f glversion rm -f glversion.o cc -I../include -I/usr/X11/include -c glversion.c cc -framework AGL -framework OpenGL -framework GLUT -o glversion glversion.o chmod u+x glversion ./glversion > glversion.txt Found GLUT - unknown version Have Version Data Using interface: AGL resulting libs: GL = 'OpenGL.framework' GLU = 'AGL.framework' GLUT = 'GLUT.framework' MakeMaker configuration: Checking if your kit is complete... Looks good AUTHOR => q[Bob 'grafman' Free <grafman at graphcomp.com>] DEFINE => q[-DHAVE_VER -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT] EXE_FILES => [] INC => q[-Iinclude -I/usr/X11/include] LDFROM => q[$(OBJECT) ] LIBS => undef NAME => q[OpenGL] OBJECT => q[$(BASEEXT)$(OBJ_EXT) gl_util$(OBJ_EXT)] OPTIMIZE => undef PM => { OpenGL.pm=>q[$(INST_LIBDIR)/OpenGL.pm], Config.pm=>q[$(INST_LIBDIR)/OpenGL/Config.pm], OpenGL.pod=>q[$(INST_LIBDIR)/OpenGL.pod] } PREREQ_PM => { } VERSION_FROM => q[OpenGL.pm] XSPROTOARG => q[-noprototypes] clean => { FILES=>q[utils/glversion.txt utils/glversion utils/glversion.o] } dynamic_lib => { OTHERLDFLAGS=>q[-framework OpenGL -framework GLUT] } Using PERL=/usr/bin/perl Writing Makefile for OpenGL make --------------------------------------------- cp OpenGL.pm blib/lib/OpenGL.pm AutoSplitting blib/lib/OpenGL.pm (blib/lib/auto/OpenGL) cp Config.pm blib/lib/OpenGL/Config.pm cp OpenGL.pod blib/lib/OpenGL.pod /usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.8.8/ExtUtils/typemap -typemap typemap OpenGL.xs > OpenGL.xsc && mv OpenGL.xsc OpenGL.c cc -c -Iinclude -I/usr/X11/include -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3 -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" "-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" -DHAVE_VER -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT OpenGL.c cc -c -Iinclude -I/usr/X11/include -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3 -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" "-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" -DHAVE_VER -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT gl_util.c Running Mkbootstrap for OpenGL () chmod 644 OpenGL.bs rm -f blib/arch/auto/OpenGL/OpenGL.bundle cc -mmacosx-version-min=10.5.6 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib OpenGL.o gl_util.o -framework OpenGL -framework GLUT -o blib/arch/auto/OpenGL/OpenGL.bundle \ \ chmod 755 blib/arch/auto/OpenGL/OpenGL.bundle cp OpenGL.bs blib/arch/auto/OpenGL/OpenGL.bs chmod 644 blib/arch/auto/OpenGL/OpenGL.bs Manifying blib/man3/OpenGL.3pm make test --------------------------------------------- PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl Can't load 'blib/arch/auto/OpenGL/OpenGL.bundle' for module OpenGL: dlopen(blib/arch/auto/OpenGL/OpenGL.bundle, 2): Symbol not found: _glutBitmapHeight Referenced from: /Users/tim/.cpan/build/OpenGL-0.57-meX_rQ/blib/arch/auto/OpenGL/OpenGL.bundle Expected in: dynamic lookup at test.pl line 9 Compilation failed in require at test.pl line 9. BEGIN failed--compilation aborted at test.pl line 9. make: *** [test_dynamic] Error 2 glxinfo --------------------------------------------- name of display: /tmp/launch-Iswap3/:0 display: /tmp/launch-Iswap3/:0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.2 server glx extensions: GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer client glx vendor string: SGI client glx version string: 1.2 client glx extensions: GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory, GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group GLX extensions: GLX_ARB_get_proc_address, GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: NVIDIA GeForce 9400M OpenGL Engine OpenGL version string: 2.0 NVIDIA-1.5.36 OpenGL extensions: GL_ARB_transpose_matrix, GL_ARB_vertex_program, GL_ARB_vertex_blend, GL_ARB_window_pos, GL_ARB_shader_objects, GL_ARB_vertex_shader, GL_ARB_shading_language_100, GL_EXT_multi_draw_arrays, GL_EXT_clip_volume_hint, GL_EXT_rescale_normal, GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_gpu_program_parameters, GL_EXT_geometry_shader4, GL_EXT_transform_feedback, GL_APPLE_client_storage, GL_APPLE_specular_vector, GL_APPLE_transform_hint, GL_APPLE_packed_pixels, GL_APPLE_fence, GL_APPLE_vertex_array_object, GL_APPLE_vertex_program_evaluators, GL_APPLE_element_array, GL_APPLE_flush_render, GL_APPLE_aux_depth_stencil, GL_NV_texgen_reflection, GL_NV_light_max_exponent, GL_IBM_rasterpos_clip, GL_SGIS_generate_mipmap, GL_ARB_imaging, GL_ARB_point_parameters, GL_ARB_texture_env_crossbar, GL_ARB_texture_border_clamp, GL_ARB_multitexture, GL_ARB_texture_env_add, GL_ARB_texture_cube_map, GL_ARB_texture_env_dot3, GL_ARB_multisample, GL_ARB_texture_env_combine, GL_ARB_texture_compression, GL_ARB_texture_mirrored_repeat, GL_ARB_shadow, GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader, GL_ARB_occlusion_query, GL_ARB_point_sprite, GL_ARB_texture_non_power_of_two, GL_ARB_vertex_buffer_object, GL_ARB_pixel_buffer_object, GL_ARB_draw_buffers, GL_ARB_shader_texture_lod, GL_EXT_compiled_vertex_array, GL_EXT_framebuffer_object, GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample, GL_EXT_texture_rectangle, GL_ARB_texture_rectangle, GL_EXT_texture_env_add, GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_lod_bias, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_stencil_wrap, GL_EXT_texture_filter_anisotropic, GL_EXT_secondary_color, GL_EXT_blend_func_separate, GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_depth_bounds_test, GL_EXT_texture_compression_s3tc, GL_EXT_texture_compression_dxt1, GL_EXT_texture_sRGB, GL_EXT_blend_equation_separate, GL_EXT_texture_mirror_clamp, GL_EXT_packed_depth_stencil, GL_EXT_bindable_uniform, GL_EXT_texture_integer, GL_EXT_gpu_shader4, GL_EXT_draw_buffers2, GL_APPLE_flush_buffer_range, GL_APPLE_ycbcr_422, GL_APPLE_vertex_array_range, GL_APPLE_texture_range, GL_APPLE_float_pixels, GL_ATI_texture_float, GL_ARB_texture_float, GL_ARB_half_float_pixel, GL_APPLE_pixel_buffer, GL_APPLE_object_purgeable, GL_NV_point_sprite, GL_NV_register_combiners, GL_NV_register_combiners2, GL_NV_blend_square, GL_NV_texture_shader, GL_NV_texture_shader2, GL_NV_texture_shader3, GL_NV_fog_distance, GL_NV_depth_clamp, GL_NV_multisample_filter_hint, GL_NV_fragment_program_option, GL_NV_fragment_program2, GL_NV_vertex_program2_option, GL_NV_vertex_program3, GL_ATI_texture_mirror_once, GL_ATI_texture_env_combine3, GL_ATI_separate_stencil, GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod 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 ---------------------------------------------------------------------- 0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None 0x25 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None 0x26 24 tc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None 0x27 24 tc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None 0x28 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None 0x29 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None 0x2a 24 dc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None 0x2b 24 dc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
Your additional information seems to confirm that OpenGL and GLUT are on and workingOK on your system. That being the case, my guess is maybe the relevant libraries are not being linked in correctly. Here is where I don't know the MacOS programming environment. You'll need to find where the libraries to link against are nd see that it happens. If the glversion is compiling and running (you don't say) then the compile+link info there should be basically what is needed. I'm sorry I can't help you further here although it appears you are pretty much "one link away" from getting a working OpenGL up. If you figure out what needs to be changed, please reply here so that we can fix the problem for the next release. Regards, Chris On Sat May 09 18:07:24 2009, tsally wrote: Show quoted text
> Thanks for the quick reply! I have verified that glxgears does work > on > my system. A quick summary of my tests below: I've included output > from > attempting to manually build it in verbose mode, as was as the output > of > the commnand 'glxinfo'. If you're just glancing over this report > quickly and don't have time to read through all the output, I believe > the point of failure is 'Can't load > 'blib/arch/auto/OpenGL/OpenGL.bundle' for module OpenGL: > dlopen(blib/arch/auto/OpenGL/OpenGL.bundle'. > > perl Makefile.PL verbose > --------------------------------------------- > found libs: > GL = 'OpenGL.framework' > GLU = 'AGL.framework' > GLUT = 'GLUT.framework' > Testing for OpenGL Extensions > Testing GLUT version > glversion: cd utils;make -f Makefile.macosx GLUT_LIB=GLUT.framework > GLUT_DEF=HAVE_GLUT clean;make -f Makefile.macosx > GLUT_LIB=GLUT.framework > GLUT_DEF=HAVE_GLUT > 2009-05-09 17:00:12.726 glversion[3581:10b] GLUT Warning: invalid > glutGet parameter: 508 > > rm -f glversion.txt > rm -f glversion > rm -f glversion.o > cc -I../include -I/usr/X11/include -c glversion.c > cc -framework AGL -framework OpenGL -framework GLUT -o glversion > glversion.o > chmod u+x glversion > ./glversion > glversion.txt > > > Found GLUT - unknown version > Have Version Data > > Using interface: AGL > > resulting libs: > GL = 'OpenGL.framework' > GLU = 'AGL.framework' > GLUT = 'GLUT.framework' > > MakeMaker configuration: > Checking if your kit is complete... > Looks good > AUTHOR => q[Bob 'grafman' Free <grafman at graphcomp.com>] > DEFINE => q[-DHAVE_VER -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT] > EXE_FILES => [] > INC => q[-Iinclude -I/usr/X11/include] > LDFROM => q[$(OBJECT) ] > LIBS => undef > NAME => q[OpenGL] > OBJECT => q[$(BASEEXT)$(OBJ_EXT) gl_util$(OBJ_EXT)] > OPTIMIZE => undef > PM => { OpenGL.pm=>q[$(INST_LIBDIR)/OpenGL.pm], > Config.pm=>q[$(INST_LIBDIR)/OpenGL/Config.pm], > OpenGL.pod=>q[$(INST_LIBDIR)/OpenGL.pod] } > PREREQ_PM => { } > VERSION_FROM => q[OpenGL.pm] > XSPROTOARG => q[-noprototypes] > clean => { FILES=>q[utils/glversion.txt utils/glversion > utils/glversion.o] } > dynamic_lib => { OTHERLDFLAGS=>q[-framework OpenGL -framework GLUT] > } > Using PERL=/usr/bin/perl > Writing Makefile for OpenGL > > make > --------------------------------------------- > cp OpenGL.pm blib/lib/OpenGL.pm > AutoSplitting blib/lib/OpenGL.pm (blib/lib/auto/OpenGL) > cp Config.pm blib/lib/OpenGL/Config.pm > cp OpenGL.pod blib/lib/OpenGL.pod > /usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -noprototypes > -typemap /System/Library/Perl/5.8.8/ExtUtils/typemap -typemap typemap > OpenGL.xs > OpenGL.xsc && mv OpenGL.xsc OpenGL.c > cc -c -Iinclude -I/usr/X11/include -arch i386 -arch ppc -g -pipe > -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing > -Wdeclaration-after-statement -I/usr/local/include -O3 > -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" > "-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" > -DHAVE_VER -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT OpenGL.c > cc -c -Iinclude -I/usr/X11/include -arch i386 -arch ppc -g -pipe > -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing > -Wdeclaration-after-statement -I/usr/local/include -O3 > -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" > "-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" > -DHAVE_VER -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT gl_util.c > Running Mkbootstrap for OpenGL () > chmod 644 OpenGL.bs > rm -f blib/arch/auto/OpenGL/OpenGL.bundle > cc -mmacosx-version-min=10.5.6 -arch i386 -arch ppc -bundle > -undefined > dynamic_lookup -L/usr/local/lib OpenGL.o gl_util.o -framework OpenGL > -framework GLUT -o blib/arch/auto/OpenGL/OpenGL.bundle \ > \ > > chmod 755 blib/arch/auto/OpenGL/OpenGL.bundle > cp OpenGL.bs blib/arch/auto/OpenGL/OpenGL.bs > chmod 644 blib/arch/auto/OpenGL/OpenGL.bs > Manifying blib/man3/OpenGL.3pm > > make test > --------------------------------------------- > PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl > Can't load 'blib/arch/auto/OpenGL/OpenGL.bundle' for module OpenGL: > dlopen(blib/arch/auto/OpenGL/OpenGL.bundle, 2): Symbol not found: > _glutBitmapHeight > Referenced from: > /Users/tim/.cpan/build/OpenGL-0.57- > meX_rQ/blib/arch/auto/OpenGL/OpenGL.bundle > Expected in: dynamic lookup > at test.pl line 9 > Compilation failed in require at test.pl line 9. > BEGIN failed--compilation aborted at test.pl line 9. > make: *** [test_dynamic] Error 2 > > glxinfo > --------------------------------------------- > name of display: /tmp/launch-Iswap3/:0 > display: /tmp/launch-Iswap3/:0 screen: 0 > direct rendering: Yes > server glx vendor string: SGI > server glx version string: 1.2 > server glx extensions: > GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, > GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, > GLX_OML_swap_method, > GLX_SGI_make_current_read, GLX_SGIX_fbconfig, > GLX_MESA_copy_sub_buffer > client glx vendor string: SGI > client glx version string: 1.2 > client glx extensions: > GLX_ARB_get_proc_address, GLX_ARB_multisample, > GLX_EXT_import_context, > GLX_EXT_visual_info, GLX_EXT_visual_rating, > GLX_MESA_allocate_memory, > GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, > GLX_OML_swap_method, > GLX_OML_sync_control, GLX_SGI_make_current_read, > GLX_SGI_swap_control, > GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig, > GLX_SGIX_visual_select_group > GLX extensions: > GLX_ARB_get_proc_address, GLX_EXT_import_context, > GLX_EXT_visual_info, > GLX_EXT_visual_rating > OpenGL vendor string: NVIDIA Corporation > OpenGL renderer string: NVIDIA GeForce 9400M OpenGL Engine > OpenGL version string: 2.0 NVIDIA-1.5.36 > OpenGL extensions: > GL_ARB_transpose_matrix, GL_ARB_vertex_program, > GL_ARB_vertex_blend, > GL_ARB_window_pos, GL_ARB_shader_objects, GL_ARB_vertex_shader, > GL_ARB_shading_language_100, GL_EXT_multi_draw_arrays, > GL_EXT_clip_volume_hint, GL_EXT_rescale_normal, > GL_EXT_draw_range_elements, GL_EXT_fog_coord, > GL_EXT_gpu_program_parameters, GL_EXT_geometry_shader4, > GL_EXT_transform_feedback, GL_APPLE_client_storage, > GL_APPLE_specular_vector, GL_APPLE_transform_hint, > GL_APPLE_packed_pixels, > GL_APPLE_fence, GL_APPLE_vertex_array_object, > GL_APPLE_vertex_program_evaluators, GL_APPLE_element_array, > GL_APPLE_flush_render, GL_APPLE_aux_depth_stencil, > GL_NV_texgen_reflection, GL_NV_light_max_exponent, > GL_IBM_rasterpos_clip, > GL_SGIS_generate_mipmap, GL_ARB_imaging, GL_ARB_point_parameters, > GL_ARB_texture_env_crossbar, GL_ARB_texture_border_clamp, > GL_ARB_multitexture, GL_ARB_texture_env_add, > GL_ARB_texture_cube_map, > GL_ARB_texture_env_dot3, GL_ARB_multisample, > GL_ARB_texture_env_combine, > GL_ARB_texture_compression, GL_ARB_texture_mirrored_repeat, > GL_ARB_shadow, > GL_ARB_depth_texture, GL_ARB_fragment_program, > GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader, > GL_ARB_occlusion_query, GL_ARB_point_sprite, > GL_ARB_texture_non_power_of_two, GL_ARB_vertex_buffer_object, > GL_ARB_pixel_buffer_object, GL_ARB_draw_buffers, > GL_ARB_shader_texture_lod, GL_EXT_compiled_vertex_array, > GL_EXT_framebuffer_object, GL_EXT_framebuffer_blit, > GL_EXT_framebuffer_multisample, GL_EXT_texture_rectangle, > GL_ARB_texture_rectangle, GL_EXT_texture_env_add, > GL_EXT_blend_color, > GL_EXT_blend_minmax, GL_EXT_blend_subtract, > GL_EXT_texture_lod_bias, > GL_EXT_abgr, GL_EXT_bgra, GL_EXT_stencil_wrap, > GL_EXT_texture_filter_anisotropic, GL_EXT_secondary_color, > GL_EXT_blend_func_separate, GL_EXT_shadow_funcs, > GL_EXT_stencil_two_side, > GL_EXT_depth_bounds_test, GL_EXT_texture_compression_s3tc, > GL_EXT_texture_compression_dxt1, GL_EXT_texture_sRGB, > GL_EXT_blend_equation_separate, GL_EXT_texture_mirror_clamp, > GL_EXT_packed_depth_stencil, GL_EXT_bindable_uniform, > GL_EXT_texture_integer, GL_EXT_gpu_shader4, GL_EXT_draw_buffers2, > GL_APPLE_flush_buffer_range, GL_APPLE_ycbcr_422, > GL_APPLE_vertex_array_range, GL_APPLE_texture_range, > GL_APPLE_float_pixels, GL_ATI_texture_float, GL_ARB_texture_float, > GL_ARB_half_float_pixel, GL_APPLE_pixel_buffer, > GL_APPLE_object_purgeable, > GL_NV_point_sprite, GL_NV_register_combiners, > GL_NV_register_combiners2, > GL_NV_blend_square, GL_NV_texture_shader, GL_NV_texture_shader2, > GL_NV_texture_shader3, GL_NV_fog_distance, GL_NV_depth_clamp, > GL_NV_multisample_filter_hint, GL_NV_fragment_program_option, > GL_NV_fragment_program2, GL_NV_vertex_program2_option, > GL_NV_vertex_program3, GL_ATI_texture_mirror_once, > GL_ATI_texture_env_combine3, GL_ATI_separate_stencil, > GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod > > 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 > ---------------------------------------------------------------------- > 0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None > 0x25 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None > 0x26 24 tc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None > 0x27 24 tc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None > 0x28 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None > 0x29 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None > 0x2a 24 dc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None > 0x2b 24 dc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
I took another look at the problem. It looks like the compile and link are correct. The error is because you are using GLUT instead of FreeGLUT which is the supported version due to some additional functionality introduced to control application exits and the event loop. Try installing and using FreeGLUT. Otherwise, since the GLUT API is largely a strict subset of FreeGLUT, we hope to have OpenGL build with GLUT but with reduced functionality. It may be just a matter of adding the right defines to the compile to prevent building of the FreeGLUT functioanlity. --Chris
Did this comment resolve your problem? --Chris On Sun May 10 14:44:58 2009, CHM wrote: Show quoted text
> I took another look at the problem. It looks > like the compile and link are correct. The error > is because you are using GLUT instead of > FreeGLUT which is the supported version > due to some additional functionality introduced > to control application exits and the event loop. > > Try installing and using FreeGLUT. > > Otherwise, since the GLUT API is largely a > strict subset of FreeGLUT, we hope to have > OpenGL build with GLUT but with reduced > functionality. It may be just a matter of > adding the right defines to the compile to > prevent building of the FreeGLUT functioanlity. > > --Chris
Hi tsally2- I hope from the lack of response here that you were able to get FreeGLUT working with your MacOS install. I am marking this ticket resolved (FIX: use FreeGLUT) but am plan to improve link support for GLUT over FreeGLUT. Our goal is to have the Perl OpenGL module work with GLUT and FreeGLUT the same for the set of functionality common to both. However, FreeGLUT is technically the baseline requirement so backporting of some of the new FreeGLUT features will not happened and use of FreeGLUT will be required in that case. Best wishes, Chris