wxPerl install on Mac

316 Views Asked by At

I've been able to install wxWidgets on my Mac and use wxPython just fine, but now that I'm trying to use Perl, I need to download wxPerl. I tried to install and the install failed, and I'm not sure what went wrong or how to fix it. Can you help? Here is the terminal output. I can share the error log if needed, but it's pretty long. It's also worth noting that I still had this problem with cpan and with downloading the .tar file and building from that.

dhcp86-242:214_Final_project cat$ cpanm Wx
--> Working on Wx
Fetching http://www.cpan.org/authors/id/M/MD/MDOOTSON/Wx-0.9932.tar.gz ... OK
==> Found dependencies: Alien::wxWidgets
--> Working on Alien::wxWidgets
Fetching http://www.cpan.org/authors/id/M/MD/MDOOTSON/Alien-wxWidgets-0.69.tar.gz ... OK
Configuring Alien-wxWidgets-0.69 ... OK
Building and testing Alien-wxWidgets-0.69 ... FAIL
! Installing Alien::wxWidgets failed. See /Users/cat/.cpanm/work/1525284354.35567/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Alien::wxWidgets' is not installed
! Bailing out the installation for Wx-0.9932.

The "fatal error"

../src/osx/core/bitmap.cpp:39:10: fatal error: 'QuickTime/QuickTime.h' file not found

A common warning

../include/wx/any.h:611:5: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
WX_DECLARE_ANY_VALUE_TYPE(wxAnyValueTypeImplVariantData)
^

The end of the log

10 warnings and 1 error generated.
make: *** [coredll_core_bitmap.o] Error 1
system: make all: 512 at ./Build line 67.
-> FAIL Installing Alien::wxWidgets failed. See /Users/cat/.cpanm/work/1525284354.35567/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Module 'Alien::wxWidgets' is not installed
-> FAIL Bailing out the installation for Wx-0.9932.

I can share more of the warnings if that would help.

1

There are 1 best solutions below

3
VZ. On

It looks like whichever version of wxWidgets that is being used here doesn't include the fix from this commit (from almost 4 years ago) which is required to build with macOS Sierra or later.

AFAIR, you should be able to get 3.0.4 release, build it yourself and then point Alien to it.