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_...@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

Reply via email to