syphilis has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
Has anyone here managed to build Alien-wxWidgets-0.44 on Win32 using MinGW ? If so, how ? (It's giving me a bugger of a time.)

I've tried:
1) Building static libs from wxMSW-2.8.10 source in the msys shell;
2) Building dynamic libs from wxMSW-2.8.10 source in the msys shell;
3) Allowing the 'perl Build.PL' process to download the source and the 'perl Build' process to build the library.

With both 1) and 2), the 'perl Build' process always fails early on because the libraries can't be found:
C:\_32\comp\Alien-wxWidgets-0.44>perl Build Subroutine version::qv redefined at inc/version.pm line 18. Copying lib\Alien\wxWidgets.pm -> blib\lib\Alien\wxWidgets.pm Copying lib\Alien\wxWidgets\Utility.pm -> blib\lib\Alien\wxWidgets\Uti +lity.pm Configuration error: could not find libraries for configuration: '' '2 +8' at inc/My/Build/Win32.pm line 74.
Does it need to find dll's or should static libs also suffice ? And how does one make the libs visible ?
With 3), 'perl Build' outputs:
C:\_32\comp\Alien-wxWidgets-0.44>perl Build Subroutine version::qv redefined at inc/version.pm line 18. if not exist gcc_mswudll mkdir gcc_mswudll make: C:Windowssystem32cmd.exe: Command not found make: [gcc_mswudll] Error 127 (ignored) if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll make: C:Windowssystem32cmd.exe: Command not found make: *** [..\..\lib\gcc_dll] Error 127 system: make -f makefile.gcc all UNICODE=1 MSLU=0 BUILD=release SHARE +D=1: 512 at inc/My/Build/Win32.pm line 263
(Can't find the Windowssystem32cmd.exe command .... groan.)

Anyone already made headway with this ?

Cheers,
Rob

Replies are listed 'Best First'.
Re: [Win32]Alien-wxWidgets-0.44 with MinGW
by Anonymous Monk on Oct 08, 2009 at 11:37 UTC
    #49433: make (e=2): The system cannot find the file specified.

    msys make/sh are interfering, you need mingw32-make only

    Alien-wxWidgets-0.44>move C:\msys\1.0\bin\make.exe C:\msys\1.0\bin\mak +e.exe-crap Alien-wxWidgets-0.44>move C:\msys\1.0\bin\sh.exe C:\msys\1.0\bin\sh.ex +e-crap Alien-wxWidgets-0.44>perl Makefile.PL && dmake
    Later you restore sh.exe (if you want msys to work).

    To compile wxwidgets manually

    wxMSW-2.8.10\build\msw>mingw32-make -f makefile.gcc
Re: [Win32]Alien-wxWidgets-0.44 with MinGW
by Anonymous Monk on Oct 08, 2009 at 11:48 UTC
    always fails early on because the libraries can't be found

    Did you set WXDIR?

      Did you set WXDIR?

      Yes, if it's not set correctly 'perl Build' dies with a compalint that it was unable to chdir to the 'samples/minimal' folder (before it even tries to find the libraries).

      I've just seen a post that recommends building wxMSW with 'unciode', and then providing some additional arguments to 'perl Build.PL':
      environment - set WXDIR=C:\Path\to\wxWidgets perl Build.PL --wxWidgets-build=0 --wxWidgets-unicode=1 --wxWidgets-mslu=1 --wxWidgets-portable=1 --prefix /your/path/to/prefix
      I'll give that a try - though I'm not too sure what the 'prefix' stuff is all about.

      I'll also keep in mind the approach mentioned in the other reply, and give it a try if I can't get things to work using a pre-built wxMSW.

      Cheers,
      Rob
        using a pre-built wxMSW.

        Where did you download that? wxMSW-2.8.10-Setup.exe is sourcecode only