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.


In reply to Installing Wx on macOS by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.