Hi.
The win32.obj is a compiled resource file containing version info and the icon
for the executable.
You need an 'rc' file like the one attached plus a suitable icon called par.ico
as mentioned in the rc file.
Then, I'd guess that within the AMD64 build environment,
rc win32.rc
cvtres win32.res
will give you the win32.obj that your require.
At least that works for ix86 builds.
Mark
Sisyphus wrote:
>
> ----- Original Message ----- From: "Steffen Mueller"
> <[EMAIL PROTECTED]>
> To: "Sisyphus" <[EMAIL PROTECTED]>
> Cc: "christian" <[EMAIL PROTECTED]>; <[email protected]>
> Sent: Thursday, September 18, 2008 5:04 PM
> Subject: Re: PAR for Windows x64
>
>
>> Hi Rob,
>>
>> Sisyphus wrote:
>>> But win32.obj is part of the PAR-Packer source. How am I supposed to
>>> come up with a win32.obj that's suitable for AMD64 ?
>>> Will I also need different versions of win32.coff and win32.res ?
>>
>> unfortunately, I have no idea about that at all. I have no C development
>> experience on Windows.
>>
>
> Is there likely to be some documentation somewhere that throws some
> light on the matter ?
>
> I couldn't see any mention of 'win32.obj' in the PAR-Packer ChangeLog -
> no mention of it in the PAR ChangeLog either. But, at some stage,
> someone must have created the file and added it to the PAR-Packer (or
> PAR) source. It could be useful to know just how this file got created
> in the first place. (Opening the file in a text editor doesn't really
> help all that much :-)
>
> Luckily, it seems that (for the purpose of the x64 build, at least) the
> file is not needed. In the myldr/Makefile.PL I simply changed:
>
> $res = 'win32.obj';
> to
> $res = '';
>
> I guess a portable fix is to rewrite the assignment as:
>
> $res = $Config{ivsize} == 4 ? 'win32.obj' : '';
>
> It's hard to envisage a sutuation where $Config{ivsize} != 4 && we still
> need to link to that win32.obj.
>
> PAR-Packer-0.982 then built, tested and installed pretty goodly. Just
> one failing test:
>
> --------------------------------
> t/20-pp.................ok 31/34
> Can't locate object method "load" via package
> "Win32::Exe::PE::Header::PE32Plus" at
> C:/_64/perl1004/site/lib/Parse/Binary.pm line 484.
>
> # Failed test 'pp_gui_tests
> # amsg572: sub pp_gui_tests cannot system pp --gui --icon hi.ico -o
> hello.exe hello.pl:No such file or directory:
> t/20-pp.................NOK 32/34# '
> # at automated_pp_test.pl line 8445.
> --------------------------------
>
> Does that failure call for further investigation ? (As soon as I see the
> term 'gui' I tend to lose interest pretty quickly :-)
>
>> P.S.: I'll apply your patch asap, unless you beat me to it.
>
> Oooow .... it's within my power to apply patches to PAR-Packer source ?
> (That could be dangerous.)
>
> Cheers,
> Rob
// win32.rc
// (c) 1995-1999 Microsoft Corporation. All rights reserved.
// Distribution Compiled as Cava Perl.
// You may distribute under the terms of either the GNU General Public
// License or the Artistic License, as specified in the README file.
#include <windows.h>
WINEXE ICON par.ico
#define VER_DEBUG 0
VS_VERSION_INFO VERSIONINFO
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS VER_DEBUG
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", " \0",
VALUE "FileDescription", " \0",
VALUE "FileVersion", " \0",
VALUE "InternalName", " \0",
VALUE "LegalCopyright", " \0",
VALUE "LegalTrademarks", " \0",
VALUE "OriginalFilename", " \0",
VALUE "ProductName", " \0",
VALUE "ProductVersion", " \0",
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 0x04E4
// English language (0x409) and the Windows ANSI codepage (0x04E4)
END
END