Re: Compatible versions of wxWidgets
Ron Grunwald via wxperl-users <[email protected]> Sat, 25 Mar 2017 20:50:11 +0800
| Newsgroups | gmane.comp.lang.perl.wxperl |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_E2CC0DC2-28B7-48E0-BA94-ADE448E36B8A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Hi all,
> PropertyGrid.c: In function =E2=80=98void =
XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)=E2=80=99:
> PropertyGrid.c:27130:49: error: call of overloaded =
=E2=80=98wxVariant(wxColour&)=E2=80=99 is ambiguous
> wxVariant value =3D wxVariant(*col);
The file "ext/propgrid/PropertyGrid.c" contains many, many references to =
wxVariant. As a simple test I commented out lines 27130 & 27131.
i.e.=20
wxVariant value =3D wxVariant(*col);
THIS->SetValue(value, NULL, flags );
When I re-executed "make", to my surprise, the source file compiled =
successfully. The above line containing the reference to wxVariant is =
the only line giving a compilation error.
Unfortunately, I don't know C++ very well. But it looks like there is =
some kind of incompatibility between wxVariant and wxColour in the above =
source file.
Cheers,
Ron.
> On 18 Mar 2017, at 10:09 pm, Ron Grunwald via wxperl-users =
<[email protected]> wrote:
>=20
> Hello all,
>=20
> I=E2=80=99ve attempted to build wxPerl (Wx 0.9928) with wxWidgets =
3.0.2 under ActivePerl 5.24.1 for Linux. All went very well until the =
compilation of PropertyGrid. I=E2=80=99ve included an extract of some of =
the errors below this message.
>=20
> I think the issue that I=E2=80=99ve struck has already been reported =
under https://rt.cpan.org/Public/Bug/Display.html?id=3D118284 =
<https://rt.cpan.org/Public/Bug/Display.html?id=3D118284> (Perl-Wx can =
not be built with STL variants of wxWidgets).
>=20
> I=E2=80=99m rather uncertain how to proceed from here. Would anyone =
have any suggestions? Thank you.
>=20
> Cheers,
>=20
> Ron.
>=20
> -------------------- EXTRACT OF COMPILE ERRORS --------------------
> g++ -pthread -c -I. -I.. =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/lib/wx/include/=
gtk3-unicode-3.0 =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0 =
-I. -I. =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/lib/wx/include/=
gtk3-unicode-3.0 =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0 =
-I. -I../.. =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/lib/wx/include/=
gtk3-unicode-3.0 =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0 =
-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE =
-DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fwrapv =
-fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE =
-D_FILE_OFFSET_BITS=3D64 -O2 -DVERSION=3D\"0.01\" =
-DXS_VERSION=3D\"0.01\" -fPIC =
"-I/mnt/SeaLion/usr/local/ActivePerl-5.24.1/lib/CORE" -DWXPL_EXT =
-D_FILE_OFFSET_BITS=3D64 -DWXUSINGDLL -D__WXGTK__ =
-D_FILE_OFFSET_BITS=3D64 -DWXUSINGDLL -D__WXGTK__ -DWXPL_EXT =
-D_FILE_OFFSET_BITS=3D64 -DWXUSINGDLL -D__WXGTK__ PropertyGrid.c
> PropertyGrid.c: In function =E2=80=98void =
XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)=E2=80=99:
> PropertyGrid.c:27130:49: error: call of overloaded =
=E2=80=98wxVariant(wxColour&)=E2=80=99 is ambiguous
> wxVariant value =3D wxVariant(*col);
> ^
> PropertyGrid.c:27130:49: note: candidates are:
> In file included from ../../cpp/helpers.h:19:0,
> from ../../cpp/wxapi.h:170,
> from PropertyGrid.c:23:
> =
/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0/wx=
/variant.h:283:5: note: wxVariant::wxVariant(void*, const wxString&) =
<near match>
> wxVariant(void* ptr, const wxString& name =3D wxEmptyString);
> ^
> =
/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0/wx=
/variant.h:283:5: note: no known conversion for argument 1 from =
=E2=80=98wxColour=E2=80=99 to =E2=80=98void*=E2=80=99
> =
/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0/wx=
/variant.h:256:5: note: wxVariant::wxVariant(wchar_t, const wxString&) =
<near match>
> wxVariant(wchar_t val, const wxString& name =3D wxEmptyString);
> ^
>=20
> ________________________________________
> Ron Grunwald
> [email protected] <mailto:[email protected]>
> http://www.dvlcorner.org <http://www.dvlcorner.org/>
>=20
>> On 26 Feb 2017, at 10:07 pm, Ron Grunwald via wxperl-users =
<[email protected] <mailto:[email protected]>> wrote:
>>=20
>> Hello all,
>>=20
>> This is really useful information - thank you. Would it be possible =
to update the FAQ on the wxPerl wiki?
>>=20
>> Cheers,
>> Ron.
>>=20
>>> On 25 Feb 2017, at 12:43 am, bubnikv . <[email protected] =
<mailto:[email protected]>> wrote:
>>>=20
>>> I am using 3.0.3-beta1 on Windows / Linux / OSX, as it support some =
new flags for instantiating an OpenGL widget, namely it supports =
anti-aliasing. 3.1 introduced many changes in the definition of the base =
classes (ints replaced by enums and such), which broke the Perl =
bindings.
>>>=20
>>> Vojtech
>>>=20
>>>=20
>>> On Fri, Feb 24, 2017 at 5:35 PM, Mark Dootson <[email protected] =
<mailto:[email protected]>> wrote:
>>> Hi,
>>>=20
>>> No, wiki is out of date. Current stable release of wxWidgets is =
3.0.2.
>>>=20
>>>=20
>>> On 24/02/2017 14:31, Ron Grunwald via wxperl-users wrote:
>>>> Hello all,
>>>>=20
>>>> The FAQ on the wxPerl wiki =
(http://wiki.wxperl.nl/index.php?title=3DFAQ =
<http://wiki.wxperl.nl/index.php?title=3DFAQ>) states that the current =
stable release of wxWidgets to use with wxPerl is 2.8.12. Is this still =
the case given that the latest release of wxWidgets is 3.1.0?
>>>>=20
>>>> Cheers,
>>>> Ron.
>>>> ________________________________________
>>>> Ron Grunwald
>>>> [email protected] <mailto:[email protected]>
>>>> http://www.dvlcorner.org <http://www.dvlcorner.org/>
>>>>=20
>>>>=20
>>>>=20
>>>=20
>>>=20
>>=20
>=20
--Apple-Mail=_E2CC0DC2-28B7-48E0-BA94-ADE448E36B8A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi all,<div class=3D""><br class=3D""></div><div =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"" =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;"><div class=3D"">PropertyGrid.c: =
In function =E2=80=98void =
XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)=E2=80=99:</div><di=
v class=3D"">PropertyGrid.c:27130:49: error: call of overloaded =
=E2=80=98wxVariant(wxColour&)=E2=80=99 is ambiguous</div><div =
class=3D""> =
wxVariant value =3D wxVariant(*col);</div></div></blockquote><div =
class=3D""><div class=3D"" style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div =
class=3D""><br class=3D""></div><div class=3D"">The file =
"ext/propgrid/PropertyGrid.c" contains many, many references to =
wxVariant. As a simple test I commented out lines 27130 & =
27131.</div><div class=3D"">i.e. </div><div class=3D""><font =
face=3D"Courier" class=3D""> wxVariant value =3D =
wxVariant(*col);</font></div><div class=3D""><font face=3D"Courier" =
class=3D""> THIS->SetValue(value, NULL, flags =
);</font></div><div class=3D""><br class=3D""></div><div class=3D"">When =
I re-executed "make", to my surprise, the source file compiled =
successfully. The above line containing the reference to wxVariant is =
the only line giving a compilation error.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Unfortunately, I don't know C++ very =
well. But it looks like there is some kind of incompatibility between =
wxVariant and wxColour in the above source file.</div></div></div><div =
apple-content-edited=3D"true" class=3D"">
<div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; orphans: =
auto; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D""><br class=3D""></div><div =
class=3D"">Cheers,</div><div class=3D""><br class=3D""></div><div =
class=3D"">Ron.</div></div>
</div>
<br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 18 Mar 2017, at 10:09 pm, Ron Grunwald via wxperl-users =
<<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>> wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html charset=3Dutf-8" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space;" class=3D""><div =
class=3D"">Hello all,</div><div class=3D""><br class=3D""></div><div =
class=3D"">I=E2=80=99ve attempted to build wxPerl (Wx 0.9928) with =
wxWidgets 3.0.2 under ActivePerl 5.24.1 for Linux. All went very well =
until the compilation of PropertyGrid. I=E2=80=99ve included an extract =
of some of the errors below this message.</div><div class=3D""><br =
class=3D""></div><div class=3D"">I think the issue that I=E2=80=99ve =
struck has already been reported under <a =
href=3D"https://rt.cpan.org/Public/Bug/Display.html?id=3D118284" =
class=3D"">https://rt.cpan.org/Public/Bug/Display.html?id=3D118284</a>&nbs=
p;(Perl-Wx can not be built with STL variants of wxWidgets).</div><div =
class=3D""><br class=3D""></div><div class=3D"">I=E2=80=99m rather =
uncertain how to proceed from here. Would anyone have any suggestions? =
Thank you.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Cheers,</div><div class=3D""><br class=3D""></div><div =
class=3D"">Ron.</div><div class=3D""><br class=3D""></div><div =
class=3D"">-------------------- EXTRACT OF COMPILE ERRORS =
--------------------</div><div class=3D"">g++ -pthread -c -I. =
-I.. =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/lib/wx/include/=
gtk3-unicode-3.0 =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0 =
-I. -I. =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/lib/wx/include/=
gtk3-unicode-3.0 =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0 =
-I. -I../.. =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/lib/wx/include/=
gtk3-unicode-3.0 =
-I/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/include/wx-3.0 =
-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE =
-DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fwrapv =
-fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE =
-D_FILE_OFFSET_BITS=3D64 -O2 -DVERSION=3D\"0.01\" =
-DXS_VERSION=3D\"0.01\" -fPIC =
"-I/mnt/SeaLion/usr/local/ActivePerl-5.24.1/lib/CORE" -DWXPL_EXT =
-D_FILE_OFFSET_BITS=3D64 -DWXUSINGDLL -D__WXGTK__ =
-D_FILE_OFFSET_BITS=3D64 -DWXUSINGDLL -D__WXGTK__ =
-DWXPL_EXT -D_FILE_OFFSET_BITS=3D64 -DWXUSINGDLL -D__WXGTK__ =
PropertyGrid.c</div><div class=3D"">PropertyGrid.c: In function =
=E2=80=98void XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, =
CV*)=E2=80=99:</div><div class=3D"">PropertyGrid.c:27130:49: error: call =
of overloaded =E2=80=98wxVariant(wxColour&)=E2=80=99 is =
ambiguous</div><div class=3D""> =
wxVariant value =3D wxVariant(*col);</div><div =
class=3D""> =
=
^</div><div =
class=3D"">PropertyGrid.c:27130:49: note: candidates are:</div><div =
class=3D"">In file included from ../../cpp/helpers.h:19:0,</div><div =
class=3D""> =
from ../../cpp/wxapi.h:170,</div><div class=3D""> =
from =
PropertyGrid.c:23:</div><div =
class=3D"">/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/includ=
e/wx-3.0/wx/variant.h:283:5: note: wxVariant::wxVariant(void*, const =
wxString&) <near match></div><div class=3D""> =
wxVariant(void* ptr, const wxString& name =3D =
wxEmptyString);</div><div class=3D""> ^</div><div =
class=3D"">/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/includ=
e/wx-3.0/wx/variant.h:283:5: note: no known conversion for =
argument 1 from =E2=80=98wxColour=E2=80=99 to =E2=80=98void*=E2=80=99</div=
><div =
class=3D"">/mnt/SeaLion/usr/local/lib/Alien/wxWidgets/gtk_3_0_2_uni/includ=
e/wx-3.0/wx/variant.h:256:5: note: wxVariant::wxVariant(wchar_t, const =
wxString&) <near match></div><div class=3D""> =
wxVariant(wchar_t val, const wxString& name =3D =
wxEmptyString);</div><div class=3D""> ^</div><div =
class=3D""><br class=3D""></div><div apple-content-edited=3D"true" =
class=3D"">
<div style=3D"letter-spacing: normal; orphans: auto; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; widows: =
auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div =
class=3D"">________________________________________</div><div =
class=3D""><div style=3D"margin: 0px;" class=3D"">Ron Grunwald</div><div =
style=3D"margin: 0px;" class=3D""><a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a></div><div style=3D"margin: 0px;" =
class=3D""><a href=3D"http://www.dvlcorner.org/" =
class=3D"">http://www.dvlcorner.org</a></div></div><div class=3D""><br =
class=3D""></div></div></div><div class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D"">On 26 Feb 2017, at 10:07 pm, Ron Grunwald via =
wxperl-users <<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>> wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html charset=3Dus-ascii" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space;" class=3D"">Hello all,<div =
class=3D""><br class=3D""></div><div class=3D"">This is really useful =
information - thank you. Would it be possible to update the FAQ on the =
wxPerl wiki?</div><div class=3D""><br class=3D""></div><div =
class=3D"">Cheers,</div><div class=3D"">Ron.<br class=3D"">
<br class=3D""><div class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 25 Feb 2017, at 12:43 am, bubnikv . <<a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a>> =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
dir=3D"ltr" class=3D"">I am using 3.0.3-beta1 on Windows / Linux / OSX, =
as it support some new flags for instantiating an OpenGL widget, namely =
it supports anti-aliasing. 3.1 introduced many changes in the definition =
of the base classes (ints replaced by enums and such), which broke the =
Perl bindings.<div class=3D""><div class=3D""><br class=3D""></div><div =
class=3D"">Vojtech<br class=3D""></div><div class=3D""><br =
class=3D""></div></div></div><div class=3D"gmail_extra"><br =
class=3D""><div class=3D"gmail_quote">On Fri, Feb 24, 2017 at 5:35 PM, =
Mark Dootson <span dir=3D"ltr" class=3D""><<a =
href=3D"mailto:[email protected]" target=3D"_blank" =
class=3D"">[email protected]</a>></span> wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">
=20
=20
=20
<div bgcolor=3D"#FFFFFF" text=3D"#000000" class=3D"">
<div class=3D"m_-446342024822033039moz-cite-prefix">Hi,<br class=3D"">=
<br class=3D"">
No, wiki is out of date. Current stable release of wxWidgets is
3.0.2.<div class=3D""><div class=3D"h5"><br class=3D"">
<br class=3D"">
On 24/02/2017 14:31, Ron Grunwald via wxperl-users wrote:<br =
class=3D"">
</div></div></div><div class=3D""><div class=3D"h5">
<blockquote type=3D"cite" class=3D"">
=20
Hello all,
<div class=3D""><br class=3D"">
</div>
<div class=3D"">The FAQ on the wxPerl wiki (<a =
href=3D"http://wiki.wxperl.nl/index.php?title=3DFAQ" target=3D"_blank" =
class=3D"">http://wiki.wxperl.nl/index.<wbr class=3D"">php?title=3DFAQ</a>=
)
states that the current stable release of wxWidgets to use with
wxPerl is 2.8.12. Is this still the case given that the latest
release of wxWidgets is 3.1.0?</div>
<div class=3D""><br class=3D"">
</div>
<div class=3D"">Cheers,</div>
<div class=3D"">Ron.<br class=3D"">
<div class=3D"">
<div style=3D"letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; word-wrap: break-word;" class=3D"">
<div class=3D"">______________________________<wbr =
class=3D"">__________</div>
<div class=3D"">
<div style=3D"margin:0px" class=3D"">Ron Grunwald</div>
<div style=3D"margin:0px" class=3D""><a =
href=3D"mailto:[email protected]" target=3D"_blank" =
class=3D"">[email protected]</a></div>
<div style=3D"margin:0px" class=3D""><a =
href=3D"http://www.dvlcorner.org/" target=3D"_blank" =
class=3D"">http://www.dvlcorner.org</a></div>
</div>
<div class=3D""><br class=3D"">
</div>
</div>
<br class=3D"m_-446342024822033039Apple-interchange-newline">
</div>
<br class=3D"">
</div>
</blockquote><p class=3D""><br class=3D"">
</p>
</div></div></div>
</blockquote></div><br class=3D""></div>
</div></blockquote></div><br =
class=3D""></div></div></div></blockquote></div><br =
class=3D""></div></div></blockquote></div><br =
class=3D""></div></body></html>=
--Apple-Mail=_E2CC0DC2-28B7-48E0-BA94-ADE448E36B8A--