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: 49470
Status: resolved
Priority: 0/
Queue: OpenGL

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.58
Fixed in: 0.61_002



Subject: EXE_FILES and freeglut.dll.bat
EXE_FILES expects perl programs not dlls, so what ends up being created is blib/script/freeglut.dll blib/script/freeglut.dll.bat One easy workaround is to edit Makefile.PL and replace $EXES = ['FreeGLUT/freeglut.dll']; with { system $^X ,qw[-MExtUtils::Command -e mkpath --], qw[blib/bin]; system $^X ,qw[-MExtUtils::Command -e cp --], qw[FreeGLUT/freeglut.dll blib/bin/freeglut.dll]; } I've tested this, it works fine
This seems to be a proposed fix for some type of install problem on win32 of some flavor. A new release of OpenGL has been made. Does this problem still occur? Could you please provide more context: OS, perl -V, the build log, OpenGL/Config.pm,...? Leaving this open in the hope that the original requestor can provide more context. GENERAL NOTE: If you report a bug, please leave email or some other contact info so we can follow up. Thanks. On Sun Sep 06 18:59:58 2009, noreply wrote: Show quoted text
> EXE_FILES expects perl programs not dlls, so what ends up being
created is Show quoted text
> > blib/script/freeglut.dll > blib/script/freeglut.dll.bat > > One easy workaround is to edit Makefile.PL and replace > > $EXES = ['FreeGLUT/freeglut.dll']; > > with > > { > system $^X ,qw[-MExtUtils::Command -e mkpath --], qw[blib/bin]; > system $^X ,qw[-MExtUtils::Command -e cp --], > qw[FreeGLUT/freeglut.dll blib/bin/freeglut.dll]; > } > > I've tested this, it works fine
On Fri Oct 16 11:04:32 2009, CHM wrote: Show quoted text
> This seems to be a proposed fix for some type of install > problem on win32 of some flavor. A new release of > OpenGL has been made. Does this problem still occur? > Could you please provide more context: OS, perl -V, > the build log, OpenGL/Config.pm,...?
Yes it still occurs. In OpenGL-0.60/Makefile.PL, you put freeglut.dll into $EXES which you later pass to WriteMakefile( 'EXE_FILES' => $EXES, EXE_FILES is for perl programs only. When you do 'perl Makefile.PL && make', all EXE_FILES get processed and get copied to blib/script/ (INST_SCRIPT). On unix type os they have their shebang rewritten to point to the correct perl. On windows they also get processed through pl2bat (since win32 doesnt use shebang). So if you keep using EXE_FILES win32 users will get an extra freeglut.dll.bat installed See http://search.cpan.org/dist/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm#EXE_FILES Currently there is no WriteMakefile argument for copying files into blib/bin (INST_BIN) but that is correct place to put extra .dll's SEE http://search.cpan.org/dist/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm#INST_BIN so instead of putting freeglut.dll into EXE_FILES for windows, use the code i provided to copy it to blib/bin/, and it will get installed in the correct place. Your other alternative is to copy freeglut.dll into blib/arch/auto/OpenGL/ right next to OpenGL.dll. Ok? Thanks
Thanks for the clarification. I'll see about getting your proposed solution in the next OpenGL relesae. I appreciate your follow up on this query. --Chris On Thu Oct 22 05:43:41 2009, Mr X wrote: Show quoted text
> > Yes it still occurs. > In OpenGL-0.60/Makefile.PL, > you put freeglut.dll into $EXES > which you later pass to > > WriteMakefile( > 'EXE_FILES' => $EXES, > > ...snip...
I've applied the suggested fix to the git repository which may be accessed (Read Only) via: clone git://pdl.git.sourceforge.net/gitroot/pdl/pogl Assuming things continue to check out I expect it to show up in OpenGL-0.61_002 developers release on CPAN and then the official OpenGL-0.62 after that. --Chris
OpenGL-0.62 has been released to CPAN with the proposed fix.
Thanks again, Chris.