Re: Building wxPerl on Windows

[email protected] ("Smylers  " via wxperl-users) Thu, 9 Apr 2026 16:56:46 +0200 (CEST)
Newsgroups perl.wxperl.users
Message-ID <[email protected]>
On January 28th, Johan Vromans wrote:

> There is now also a (powershell) script that you can run on your PC to
> install wxWidgets, Strawberry Perl and wxPerl.
>=20
> https://github.com/sciurius/wxGitHubAction/blob/main/script/wxPerl-Windo=
ws.ps1
>=20
> Read the script carefully before running it!

Thank you so much for this, Johan. I got near to the end (mostly running
the commands manually) on Windows=C2=A011, but after wxPerl has been
compiled, it won't load:

  PS C:\dev\wxGitHubAction\Wx-3.009> perl -Mblib -MWx -E 'say $Wx::VERSION=
'
  Can't load
  'C:\dev\wxGitHubAction\Wx-3.009\blib\arch/auto/Wx/Wx.xs.dll' for
  module Wx: load_file:The specified module could not be found at
  C:/Dev/Strawberry-5.42.2.1/perl/lib/DynaLoader.pm line 206.
   at -e line 0.
  Compilation failed in require. BEGIN failed--compilation aborted.
  BEGIN failed--comilation aborted.

So far as I can tell the previous steps have all succeeded, and the
Wx.xs.dll file definitely exists at that path. What else can I check?

This computer is fairly locked down, so it's possible that a privilege
that Windows has by default been removed. For instance, I've already had
to request permission to create executable files in specific directories
and to be able to run PowerShell scripts.

Other gliches that have happened earlier in the process, in case any of
them are relevant here:

=E2=80=A2 7-Zip wouldn't extract either the webview or the Strawberry Perl
  archives: running it just says =E2=80=9CCannot open the file as archive=
=E2=80=9D. But
  the archive files seemed fine (size and checksum matched those
  elsewhere), and they opened fine by double-clicking on them in File
  Explorer, so I just selected and dragged all the files from there to
  the destination directories to extract them instead, and continued
  pasting in commands manually from there.

=E2=80=A2 I had an older perl.exe already in $env:Path, so I added the new
  Strawberry Perl directories to the front of the path rather than the
  end.

=E2=80=A2 Compiling wxPerl emitted some warnings, including =E2=80=9Ccomma=
nd-line option
'-std=3Dc99' is valid for C/ObjC but not for C++=E2=80=9D and some depreca=
tions.

Thanks.

Smylers