http://www.perlmonks.org?node_id=1178667

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

My ultimate goal is to create eForms for use in the lab. Instead of paper forms that have to be manually transcribed to text files (an error prone process), I want to use Perl. I have used Win32::GUI in the past, but placing the components on the screen is manual. wxGlade seems like a super way to create Perl code for custom eForms. The wxGlade code that's created needs wxPerl and wxPerl needs wxWidgets.

Therein lies the problem -- installing wxWidgets.

I use Strawberry Perl (v5.22.0) under win7 (SP1) and there doesn't seem to be an install package available. I very seldom do manual installations because I am not at all familiar with the process (I am a user of Perl, not a designer of modules). But I tried to manually install it anyway using the Alien-wxWidgits (v0.67) module. After compiling (gcc, x86_64-posix-sjlj, built by strawberryperl.com project, 4.9.2) for about 40mins it terminates with the message:

"Unable to find setup.h directory at inc/My/Build/Win32.pm line 122."

I've retried several times (deleting the more than 100MB of over 10,000 files created) with several variations, but the results were the same.

Out of desperation, I installed wxMSW-3.1.0-Setup which has wxWidgets. I then tried to install wxPerl, but get the message:

"wxWidgets minimum supported version 2.007001 is missing. You will need to re-run Makefile.PL after it is installed. You must install wxWidgets using Alien::wxWidgets."
I'm actually not surprised it didn't work.

I tried setting "set WXDIR=" to point to wxMSW folder and I tried setting "set WXDIR=" to point to the compiled wxWidgets folder. Both failed with error messages, after running the build sequence.

Any help would be greatly appreciated.

Thanks,
  EigenFunctions
  OpSys: Win7 x64 Service Pack 1 Professional/Home Premium; Perl: Strawberry (v5.22.0)/ActiveState (v5.14.2)

Replies are listed 'Best First'.
Re: [Win32]Alien-wxWidgets-0.67 manual install
by jmlynesjr (Deacon) on Dec 30, 2016 at 19:57 UTC

    Did you try installing WX from CPAN?

    (aside: My 200th post!)

    James

    There's never enough time to do it right, but always enough time to do it over...

Re: Win32 Alien-wxWidgets-0.67 manual install
by Anonymous Monk on Dec 30, 2016 at 22:16 UTC
        I'll try one of the binaries and thanks.

        An update:

        I have another laptop that has ActivePerl on it and so I installed wxWidgets with PPM and it works (BTW, an amazingly easy installation). However, I installed wxGlade, but it didn't work. It seems there are two versions of Python installed and the wxGlade installation seemed to select one, while wxWidgets selected the other.

        The important part is that wxWidgets worked for the examples I ran, so it seems to be OK.

        In any event, I'll try some of the suggestions to try and get the Strawberry Perl version working.

        Thanks,
          EigenFunctions
          OpSys: Win7 x64 Service Pack 1 Professional/Home Premium; Perl: Strawberry (v5.22.0)/ActiveState (v5.14.2)

        These ActiveState binaries are all pay-to-play and I don't have an account (nor do I want one).

        Thanks anyway...

        Thanks,
          EigenFunctions
          OpSys: Win7 x64 Service Pack 1 Professional/Home Premium; Perl: Strawberry (v5.22.0)/ActiveState (v5.14.2)

Re: [Win32]Alien-wxWidgets-0.67 manual install
by Anonymous Monk on Dec 30, 2016 at 22:14 UTC
    Where is the setup.h file?