Check the Fedora patch source RPM I referenced earlier. Looks like there are multiple patches fixing the XS files. Here’s the patch for this one:
Description: Fixes for GTK3 compatibility wxWidgets 3.0 built with GTK3 doesn't have wxColour::GetPixel(), see: http://trac.wxwidgets.org/ticket/15141#comment:2 Author: Olly Betts <o...@survex.com> Forwarded: no Last-Update: 2018-04-01 --- a/XS/Colour.xs +++ b/XS/Colour.xs @@ -114,7 +114,7 @@ #endif -#if !defined(__WXMAC__) +#if !defined(__WXMAC__) && !defined (__WXGTK3__) long wxColour::GetPixel() --- a/ext/propgrid/XS/PGProperty.xsp +++ b/ext/propgrid/XS/PGProperty.xsp @@ -1148,7 +1148,7 @@ bool SetPlValue( wxColour* col, int flags = wxPG_SETVAL_REFRESH_EDITOR ) %code{% if( col->IsOk() ) { - wxVariant value = wxVariant(*col); + wxVariant value = wxVariant(wxAny(*col)); THIS->SetValue(value, NULL, flags ); RETVAL = true; } else { > On Sep 27, 2024, at 12:19, Shawn H Corey <shawnhco...@gmail.com> wrote: > > > I install perl-5.40.0 via perlbrew and then tried to install Wx with cpanm. I > get the follow error. > > g++ -pthread -c -I. -I.. > -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 > -I. -I. -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 > -I/usr/include/wx-3.0 -I. -I../.. > -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 > -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe > -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC > "-I/home/shawn/perl5/perlbrew/perls/perl-5.40.0/lib/5.40.0/x86_64-linux-gnu-thread-multi/CORE" > -DWXPL_EXT -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ > -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DWXPL_EXT > -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ PropertyGrid.c > PropertyGrid.c: In function ‘void > XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)’: > PropertyGrid.c:27187:49: error: call of overloaded ‘wxVariant(wxColour&)’ is > ambiguous > 27187 | wxVariant value = wxVariant(*col); > | ^ > In file included from ../../cpp/helpers.h:19, > from ../../cpp/wxapi.h:170, > from PropertyGrid.c:23: > /usr/include/wx-3.0/wx/variant.h:187:5: note: candidate: > ‘wxVariant::wxVariant(bool, const wxString&)’ > 187 | wxVariant(bool val, const wxString& name = wxEmptyString); > | ^~~~~~~~~ > /usr/include/wx-3.0/wx/variant.h:111:5: note: candidate: > ‘wxVariant::wxVariant(const wxAny&)’ > 111 | wxVariant(const wxAny& any); > | ^~~~~~~~~ > > It looks like a simple fix. I wonder what it was before. > > -- > 𝑆𝒉𝒂𝒘𝒏 𝐻 𝐶𝒐𝒓𝒆𝒚 🇨🇦 -- Jim Burwell Sr. Systems Administrator Apple Systems Engineering: Products, RF, Infrastructure Platform - US One Apple Park Way, 87-DEF Cupertino, CA 95014, USA Office +1-408-7838379 iPhone +1-408-5494338 james_burw...@apple.com This email and any attachments may contain confidential information intended only for the recipient(s) named above. Any other distribution, forwarding, copying or disclosure of this message is strictly prohibited. If you have received this email in error, please notify me immediately by telephone or return email, and delete this message from your system