On 11-Sep-2009 Stefan wrote:
>
> Thanks for the quick answer.

You're welcome.

> > The problem with the glutBitmapHeight()
> > error was that you are not using
> > FreeGLUT.
>
> So it is recommended to install FreeGLUT
> first?

Yes

> I took the following comment in the INSTALL file
>
> >     On Windows, FreeGLUT is installed
> >     automatically by this module if
> >     needed. On Mac OS X (Leopard and
> >     newer), GLUT is built in. On Linux
> >     distributions FreeGLUT is available
> >     via their package installers.
>
> to mean that on OS X it's okay to use the
> built-in GLUT, so I didn't bother with FreeGLUT.

It means FreeGLUT is installed by OpenGL for win32,
Mac OS X comes with GLUT (so you'll need to install
FreeGLUT for full functionality).  Linux packages
provide FreeGLUT there.

> > However, I would like POGL to build
> > and run (as much as possible) without
> > requiring FreeGLUT specifically. I've
> > added some ifdefs to prevent building the
> > FreeGLUT only functions to the current
> > git at:
> >
> >  git clone git://pdl.git.sourceforge.net/gitroot/pdl/pogl
> >
> > Let me know how that works.
>
> Makefile.PL still has the problem I pointed
> out in my previous e- mail. I'm appending a
> "git diff" below, hope this is in a format
> you can use.

Thanks.  I'm glad you got a fix for your system.
I'd like to get some more detailed diagnostics
to determine why the current code does not work
for you before making the change.  Would it be
okay if I follow up with you on this this weekend?

> With this correction, "make test" still
> fails, but with a different missing symbol
> this time:
>
> > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> > t/00_require....Bareword found where operator expected at (eval 5)
> > line 1, near "0.58_001git"
> >     (Missing operator before git?)
> > Unquoted string "git" may clash with future reserved word at (eval
> > 5) line 2.
> > t/00_require....1/1
> > #   Failed test 'require OpenGL;'
> > #   at t/00_require.t line 3.
> > #     Tried to require 'OpenGL'.
> > #     Error:  Can't load '/Users/severt/Software/Perl/pogl/blib/arch/
> > auto/OpenGL/OpenGL.bundle' for module OpenGL: dlopen(/Users/severt/
> > Software/Perl/pogl/blib/arch/auto/OpenGL/OpenGL.bundle, 2): Symbol not
> > found: _glutMainLoopEvent
> > #   Referenced from: /Users/severt/Software/Perl/pogl/blib/arch/auto/
> > OpenGL/OpenGL.bundle
> > #   Expected in: dynamic lookup
> > #  at (eval 4) line 2
> > # Compilation failed in require at (eval 4) line 2.
> > # Looks like you failed 1 test of 1.
> > t/00_require.... Dubious, test returned 1 (wstat 256, 0x100)  Failed
> > 1/1 subtests

I missed a FreeGLUT only function and have just pushed a fix to
the problem as well as the requires warning/error message.

> Do you know if there's an easy way for me
> to check all missing symbols in the linked
> files? I've tried to extract a symbol table
> from Apple's GLUT library (appended at the
> bottom).

There are often compiler/linker specific flags to control
the error and warnings output.  However, in these two
iterations we may have resolved these specific items.
Let me know how the latest git works (you'll need to
edit utils/Makefile.macosx again---sorry).

> > Also, are you willing to work with me to
> > provide build/debug/testing help with Mac
> > OS X? I do not have access to a Mac OS
> > X system and am unable to debug things
> > there.
> >
> > What would be involved would be trying
> > build-compile-test of new POGL and PDL
> > module versions from git and CPAN on your
> > Mac and reporting logs/errors/feedback to
> > me for correction.
> >
> > The payoff would be that OS X would be
> > fully supported more quickly and robustly
> > for all.
>
> Sure! I've been frustrated for a long time
> by the missing and/or unstable OpenGL
> support of Perl and PDL on OS X, so I'm
> really happy about your work,

You'll probably want to figure out how to get
FreeGLUT for Mac OS X so you'll have it for
later development and full functionality.
We can include instructions for the install with
POGL.

Thanks for being willing to contribute!

--Chris
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to