develooper Front page | perl.wxperl.users | Postings from December 2017

[ #123874] Alien::Wx produces binary incompatible buildson OSX10.9 and Perl 5.26.1

bubnikv . via RT
December 13, 2017 14:01
[ #123874] Alien::Wx produces binary incompatible buildson OSX10.9 and Perl 5.26.1
Message ID:
Wed Dec 13 09:01:33 2017: Request 123874 was acted upon.
Transaction: Ticket created by
       Queue: Alien-wxWidgets
     Subject: Alien::Wx produces binary incompatible builds on OSX10.9 and Perl 5.26.1
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
      Status: new
 Ticket <URL: >


There seems to be a breaking change in Perl 5.26 on OSX installed through
the perlbrew system,
where the perl is built with  -mmacosx-version-min=10.9 flag. This flag is
not respected by the Alien::Wx build system, and the resulting installed
Alien::Wx then somehow instructs the Perl Wx module to not use the
-mmacosx-version-min flag, which then makes the Wx XS module ABI
incompatible with the Perl binary.

I have solved the issue for myself by running the Build.PL with the
--wxWidgets-extraflags="--with-osx_cocoa --with-macosx-version-min=10.9

Another issue has bitten me badly: By default the wxWidgets on OSX are
compiled and linked against the system wide (read installed from perlbrew)
libpng, libjpeg, libtiff. If I then bundle these libraries, my application
crashes on older CPUs due to invalid instructions. I think it makes sense
to force the Alien::Wx to use the builtin image libraries by default.

Thanks, Vojtech Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About