freeglut detection/installation fails on Windows/64bit
Perl bindings to the Modern OpenGL API
Brought to you by:
marshallch,
mohawk111
Hi,
freeglut related magic in Makefile.PL is somehow broken when trying to install OpenGL on 64bit MS Windows.
1/ The main reason is that Makefile.PL tries to install 32bit freeglut.dll into my 64bit strawberry perl and to link with it
2/ Makefile.PL ignores the fact that my strawberry perl contains all necessary *.dll + *.a + *.h files related to freeglut-2.6.0 (beware: for some reasons it does not understand linker option -lfreeglut but -lglut) - this should be also taken into account also for 32bit strawberry perl
I know that Chris gave me commit access to POGL repo so I should probably provide a patch for this; however I am currently not able to spend enough time on a quite complicated Makefile.PL
--
kmx
Thanks for the bug report, kmx. I'm still planning to add real detection
for OpenGL builds and to remove an explicit dependency on the choice
of GUI toolkit (i.e., FreeGLUT...) but haven't gotten to it yet. You might
try a ppm install from Rob's build of OpenGL-0.65 as a work-around:
http://www.sisyphusion.tk/ppmindex.html
Hope this helps.
BTW, which strawberry perl version(s) were you reporting
for, any/all of them?
as for the version - I have experienced troubles with strawberryperl 5.12.1.0/64bit
freeglut-2.6.0 is a part of all strawberry releases since April 2010 - therefore I guess it should be properly detected in Makefile.PL before it falls back to installing DLL embeded in OPGL
After a little tweaking I have managed to install OpenGL on 64bit/MSWin (hack was not so complicated) - I have started this ticket as it might not be so simple for "common users"
More info what works in strawberry:
1/ headers
you can simply
#include <GL/glut.h>
or
#include <GL/freeglut.h>
without any additional -Ipath/to/inc/dir
2/ linker options
-lglut works (-lfreeglut DOES NOT)
again without any additional -Lpath/to/lib/dir
As part of the modern OpenGL update to POGL, I'm spinning off the FreeGLUT/GLUT
support into its own module. I'll make sure the detection works there---finally!
A move to Alien::GLUT, Alien::OpenGL,... is planned as the ultimate fix.
I've just pushed OpenGL-0.6701 with a hack-around the detection problems for strawberry perl. Based on a direct check for strawberry perl but it appears to work.
Hi Chris,
the same problem happens on CitrusPerl 5.14, but the fix doesn't work because it doesn't ship with FreeGLUT. What is your recommended way to install in this case?
Have you considered bundling a 64bit .dll too?
Does the PPM install from the easy install option from
http://pdl.perl.org/?page=install work?
Ultimately, I plan to implement an Alien::FreeGLUT module to allow for
automated installs
via CPAN.
On Sun, Nov 10, 2013 at 12:30 PM, Alessandro Ranellucci
alexrj@users.sf.net wrote:
Oops ... missed cc'ing pogl:bugs.
Hi Chris,
No - that page is somewhat outdated and inaccurate in some significant ways,
though the 2 other sources it indicates:
http://sourceforge.net/apps/mediawiki/pdl/index.php?title=Installing_PDL_on_Windows
and
win32/INSTALL file
are up-to-date. (Actually, the INSTALL file still contains a reference to
the fftw2 build of PDL::FFTW being achievable via perldl.conf - I'll fix
that.)
Is there some way the wiki page can be placed into "The easiest possible
install" slot ?
Assuming I can edit the pdl.perl.org page, I've no objection to
copy'n'pasting (with minor edits, if needed) the wiki page into that slot
each time I alter the wiki ... but I don't want to have to write and
maintain yet-another-rendition of a "How To".
Cheers,
Rob
-----Original Message-----
From: Chris Marshall
Sent: Monday, November 11, 2013 4:39 AM
To: [pogl:bugs]
Cc: Sisyphus
Subject: Re: [pogl:bugs] #4 freeglut detection/installation fails on
Windows/64bit
Does the PPM install from the easy install option from
http://pdl.perl.org/?page=install work?
Ultimately, I plan to implement an Alien::FreeGLUT module to allow for
automated installs
via CPAN.
On Sun, Nov 10, 2013 at 12:30 PM, Alessandro Ranellucci
alexrj@users.sf.net wrote:
Related
OpenEMR: Bugs:
#4I confirm that replacing FreeGLUT/freeglut.dll with the one shipped in http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MinGW.zip works out of the box for CitrusPerl too.