Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 3877
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: Nobody in particular
Requestors: d.adamkiewicz [...] i7.com.pl
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.75
Fixed in: (no value)



Subject: Win2k bug?:pp --gui --icon <...> doesn't work
Hello I've got the following on my Win2k box: --------------- C:\rob>pp -V Perl Packager, version 0.05 (PAR version 0.75) ... C:\rob>perl -v This is perl, v5.8.0 built for MSWin32-x86-multi-thread ... C:\rob>gcc -v Reading specs from C:/MinGw/bin/../lib/gcc-lib/mingw32/3.2/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host= mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable -languages=f77,c++,objc,ada --disable-win32-registry --disable-shared Thread model: win32 gcc version 3.2 (mingw special 20020817-1) --------------- when I try to generate icon contained gui version of program (I tried a few different valid icon files) C:\rob>pp --gui --icon bridge.ico -o mtest.exe test.pl the window message like (translated from Polish) "C:\rob\parlNLjH.exe is not valid Win32 system aplication" shows and on cmd line "access denied" message shows When I try fake icon file then the output program is generated - without embeded icon of course. I'm not quite sure if this is a bug but it seems like... Regards Darek
Subject: Re: [cpan #3877] Win2k bug?:pp --gui --icon <...> doesn't work
From: Autrijus Tang <autrijus [...] autrijus.org>
To: bug-PAR [...] rt.cpan.org
Date: Sat, 27 Sep 2003 10:44:34 +0800
RT-Send-Cc:
在 ??, 2003-09-26 21:54, Guest via RT 寫道: Show quoted text
> C:\rob>gcc -v > Reading specs from C:/MinGw/bin/../lib/gcc-lib/mingw32/3.2/specs > Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host= > mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable > -languages=f77,c++,objc,ada --disable-win32-registry --disable-shared > Thread model: win32 > gcc version 3.2 (mingw special 20020817-1)
That is because the "myldr/win32.res" was not built into MinGW-generated parl.exe, in myldr/Makefile.PL. Try tweaking the latter file and see if you can incoporate the resource file into it? Thanks, /Autrijus/
Download signature.asc
application/pgp-signature 187b

Message body not shown because it is not plain text.

Subject: Very;) dirty solution
From: d.adamkiewicz [...] i7.com.pl
[autrijus@autrijus.org - Fri Sep 26 22:45:10 2003]: Show quoted text
> 在 ??, 2003-09-26 21:54, Guest via RT 寫道:
> > C:\rob>gcc -v > > Reading specs from C:/MinGw/bin/../lib/gcc-lib/mingw32/3.2/specs > > Configured with: ../gcc/configure --with-gcc --with-gnu-ld
> --with-gnu-as --host=
> > mingw32 --target=mingw32 --prefix=/mingw --enable-threads
> --disable-nls --enable
> > -languages=f77,c++,objc,ada --disable-win32-registry
> --disable-shared
> > Thread model: win32 > > gcc version 3.2 (mingw special 20020817-1)
> > That is because the "myldr/win32.res" was not built into MinGW- > generated > parl.exe, in myldr/Makefile.PL. Try tweaking the latter file and see > if > you can incoporate the resource file into it? > > Thanks, > /Autrijus/
I did the follownig: in myldr/Makefile.PL I set $res to 'win32.o' for gcc case "... if( $cc =~ m/^cl\b/ ) { $out = '-out:'; $ccdebug = $debug ? '-Zi -Zm1000 ' : '-Zm1000 '; $lddebug = $debug ? '-debug ' : '-release '; $warn = $debug ? '-W3' : ''; $res = 'win32.res'; $long_literal = 0; } elsif ($cc =~ m/^gcc\b/ or ($cc =~ m/^cc\b/ and $gccversion)) { $out = '--output '; $ccdebug = $debug ? '-g ' : ''; $lddebug = ($debug or $^O eq 'darwin') ? '' : '-s '; $warn = $debug ? '-Wall -Wno-comments ' : ''; $res = 'win32.o';#(+) #$res = '';#(-) $long_literal = 1; } else { $out = '-o '; $ccdebug = ''; $lddebug = ''; $warn = ''; $res = ''; $long_literal = 0; # better safe than sorry } ..." then using mentioned somewhere ResHack.exe I generated 'win32.rc' from 'win32.res' file, next I created win32.o using windres windres -i win32.rc -J rc -o win32.o -O coff removed par.exe from myldr directory, replaced Icon_1.ico for desired one (the same name) and repeated common installation steps: perl Makefile.PL ... Now 'Icon_1.ico' is fixedly embeded into every 'pp' output program '--icon' option doesn't affect it - but It's better than nothing :) Regrads Darek
[guest - Fri Oct 3 07:53:05 2003]: Show quoted text
> I did the follownig: > in myldr/Makefile.PL I set $res to 'win32.o' for gcc case > "... > then using mentioned somewhere ResHack.exe I generated 'win32.rc' > from 'win32.res' file, next I created win32.o using windres > windres -i win32.rc -J rc -o win32.o -O coff
Darek, thanks for your patch. This has been applied and will be part of PAR 0.81 release. Thanks! /Autrijus/