Can't compile Wx.pm
[email protected] (Shawn H Corey) Fri, 27 Sep 2024 15:19:39 -0400
| Newsgroups | perl.wxperl.users |
|---|---|
| Message-ID | <[email protected]> |
--------------nHP0mKQ8ZsUbmrLvtR8Xia7M
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
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.
--
𝑆𝒉𝒂𝒘𝒏 𝐻 𝐶𝒐𝒓𝒆𝒚 🇨🇦
--------------nHP0mKQ8ZsUbmrLvtR8Xia7M
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
I install perl-5.40.0 via perlbrew and then tried to install Wx with
cpanm. I get the follow error.<br>
<br>
<font face="monospace">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<br>
PropertyGrid.c: In function ‘void
XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)’:<br>
PropertyGrid.c:27187:49: error: call of overloaded
‘wxVariant(wxColour&)’ is ambiguous<br>
27187 | wxVariant value = wxVariant(*col);<br>
| ^<br>
In file included from ../../cpp/helpers.h:19,<br>
from ../../cpp/wxapi.h:170,<br>
from PropertyGrid.c:23:<br>
/usr/include/wx-3.0/wx/variant.h:187:5: note: candidate:
‘wxVariant::wxVariant(bool, const wxString&)’<br>
187 | wxVariant(bool val, const wxString& name =
wxEmptyString);<br>
| ^~~~~~~~~<br>
/usr/include/wx-3.0/wx/variant.h:111:5: note: candidate:
‘wxVariant::wxVariant(const wxAny&)’<br>
111 | wxVariant(const wxAny& any);<br>
| ^~~~~~~~~</font><br>
<br>
<pre class="moz-signature" cols="72">It looks like a simple fix. I wonder what it was before.
--
𝑆𝒉𝒂𝒘𝒏 𝐻 𝐶𝒐𝒓𝒆𝒚 🇨🇦</pre>
</body>
</html>
--------------nHP0mKQ8ZsUbmrLvtR8Xia7M--