develooper Front page | perl.par | Postings from March 2012

Re: PAR::Packer - problem installing under Windows / Strawberry portable

Thread Previous | Thread Next
From:
Mark Dootson
Date:
March 1, 2012 23:49
Subject:
Re: PAR::Packer - problem installing under Windows / Strawberry portable
Message ID:
4F507B5B.30404@znix.com
Hi,

See previous post 'Building on Windows with mingw resource bug'.

It gave patch to fix mingw windres issues.

Re attached to this post.

Win32::Exe still not working :(
Maybe soon.

Mark


Index: myldr/Makefile.PL
===================================================================
--- myldr/Makefile.PL	(revision 1354)
+++ myldr/Makefile.PL	(working copy)
@@ -115,8 +115,13 @@
      if( $^O =~ /^(?:MSWin|cygwin)/ ){
     $res = 'ppresource.coff';
     $pre_res = qq(winres\\pp.res);
-   $rt_cmd = qq(windres -F pei-i386 -i winres\\pp.rc -o $pre_res);
-   $res_cmd = qq(windres -o ppresource.coff $pre_res);
+
+   # some versions of binutils cannot handle two-step creation
+   #$rt_cmd = qq(windres -F pei-i386 -i winres\\pp.rc -o $pre_res);
+   #$res_cmd = qq(windres -o ppresource.coff $pre_res);
+   $rt_cmd = qq(windres -o ppresource.coff -i winres\\pp.rc);
+   $res_cmd = q(-$(NOOP));
+
     $res_section = $res;
      }
      $mt_cmd = '-$(NOOP)';
Index: myldr/winres/pp.rc
===================================================================
--- myldr/winres/pp.rc	(revision 1354)
+++ myldr/winres/pp.rc	(working copy)
@@ -5,7 +5,7 @@
  #define PP_MANIFEST_FILEFLAGS 0
  #include <windows.h>

-CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "pp.manifest"
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "winres\\pp.manifest"

  VS_VERSION_INFO VERSIONINFO
      FILEVERSION        0,0,0,0
@@ -37,5 +37,5 @@
      END
  END

-WINEXE ICON pp.ico
+WINEXE ICON winres\\pp.ico



On 02/03/2012 07:30, Roderich Schupp wrote:
> On Thu, Mar 1, 2012 at 20:08, Eljot na Onet.pl<eljot_007@poczta.onet.pl>  wrote:
>> I guess the key line is here:
>>     windres: unexpected version string length 68 != 32 + 8
>
> No clue - I see the same on 32-bit. Note that the resource stuff is currently
> under construction, cc'ing Mark Dootson...
>
> Maybe the previous version of PAR::Packer works for you.
>
> Cheers, Roderich


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About