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

Need help installing wxpwerl on macOS. One day of work and no success. Perl 5.26, macOS Mojave

The simple: cpanm -i Wx (note that I am using cpanM and not the standard Perl) fails:

Building and testing Wx-0.9932 ... FAIL Print.c:3319:8: warning: 'SetOrientation' is deprecated [-Wdeprecated- +declarations] THIS->SetOrientation(orientation); ^ /usr/local/include/wx-3.0/wx/cmndata.h:85:5: note: 'SetOrientation' ha +s been explicitly marked deprecated here wxDEPRECATED_INLINE(void SetOrientation(int orient), ^ /usr/local/include/wx-3.0/wx/defs.h:674:41: note: expanded from macro +'wxDEPRECATED_INLINE' #define wxDEPRECATED_INLINE(func, body) wxDEPRECATED(func) { body } ^ /usr/local/include/wx-3.0/wx/defs.h:654:25: note: expanded from macro +'wxDEPRECATED' #define wxDEPRECATED(x) wxDEPRECATED_DECL x ^ /usr/local/include/wx-3.0/wx/defs.h:620:46: note: expanded from macro +'wxDEPRECATED_DECL' #define wxDEPRECATED_DECL __attribute__((deprecated)) ^ Print.c:5883:1: warning: duplicate 'extern' declaration specifier [-Wd +uplicate-decl-specifier] XS_EXTERNAL(boot_Wx__Print); /* prototype to pass -Wmissing-prototypes + */ ^ /Users/fc/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/darwin-2level/CO +RE/XSUB.h:141:33: note: expanded from macro 'XS_EXTERNAL' # define XS_EXTERNAL(name) extern "C" XSPROTO(name) ^ 2 warnings generated. rm -f ../../blib/arch/auto/Wx/Print/Print.bundle LD_RUN_PATH="/usr/local/lib" clang++ -isysroot /Applications/Xcode.app +/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10 +.14.sdk -stdlib=libc++ -mmacosx-version-min=10.14 -mmacosx-version-m +in=10.11 -bundle -undefined dynamic_lookup -fstack-protector-strong +Print.o -o ../../blib/arch/auto/Wx/Print/Print.bundle \ -lwx_osx_cocoau_core-3.0 -lwx_baseu-3.0 \ ld: library not found for -lwx_osx_cocoau_core-3.0 clang: error: linker command failed with exit code 1 (use -v to see in +vocation) make[2]: *** [../../blib/arch/auto/Wx/Print/Print.bundle] Error 1 make[1]: *** [subdirs] Error 2 make: *** [subdirs] Error 2

This error is what I get after havin installed the WxWidget with Homebrew. It seems to complain about a missing lwx_osx_cocoau_core-3.0, but I found no info on the web to what this is.

Replies are listed 'Best First'.
Re: Installing Wx on macOS
by Anonymous Monk on Nov 30, 2019 at 20:56 UTC

    This error is what I get after havin installed the WxWidget with Homebrew. It seems to complain about a missing wx_osx_cocoau_core-3.0, but I found no info on the web to what this is.

    Wx core 3.0 built for osx/cocoau

    How did you install wxwidgets, using Alien::wxWidgets?

    You can always try http://www.citrusperl.com/p/download.html as it comes with Wx