Hi Ron

ext/propgrid/PropertyGrid.c isn't distributed with the Wx source, it is created during the build. Looks like you're trying to build multiple times in the same source tree without cleaning up. This is probably the cause of your original issue.

Regards.

Mark

On 25/03/2017 12:50, Ron Grunwald via wxperl-users wrote:
Hi all,

PropertyGrid.c: In function ‘void XS_Wx__ColourProperty_SetPlValue(PerlInterpreter*, CV*)’: PropertyGrid.c:27130:49: error: call of overloaded ‘wxVariant(wxColour&)’ is ambiguous
                 wxVariant value = 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.
     wxVariant value = 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 <wxperl-users@perl.org <mailto:wxperl-users@perl.org>> wrote:

Hello all,

I’ve 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’ve included an extract of some of the errors below this message.

I think the issue that I’ve struck has already been reported under https://rt.cpan.org/Public/Bug/Display.html?id=118284 (Perl-Wx can not be built with STL variants of wxWidgets).

I’m rather uncertain how to proceed from here. Would anyone have any suggestions? Thank you.

Cheers,

Ron.

-------------------- 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=64 -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/mnt/SeaLion/usr/local/ActivePerl-5.24.1/lib/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:27130:49: error: call of overloaded ‘wxVariant(wxColour&)’ is ambiguous
                 wxVariant value = 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 = 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 ‘wxColour’ to ‘void*’ /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 = wxEmptyString);
     ^

________________________________________
Ron Grunwald
ron...@yahoo.com.au <mailto:ron...@yahoo.com.au>
http://www.dvlcorner.org <http://www.dvlcorner.org/>

On 26 Feb 2017, at 10:07 pm, Ron Grunwald via wxperl-users <wxperl-users@perl.org <mailto:wxperl-users@perl.org>> wrote:

Hello all,

This is really useful information - thank you. Would it be possible to update the FAQ on the wxPerl wiki?

Cheers,
Ron.

On 25 Feb 2017, at 12:43 am, bubnikv . <bubn...@gmail.com <mailto:bubn...@gmail.com>> wrote:

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.

Vojtech


On Fri, Feb 24, 2017 at 5:35 PM, Mark Dootson <mark.doot...@znix.com <mailto:mark.doot...@znix.com>> wrote:

    Hi,

    No, wiki is out of date. Current stable release of wxWidgets is
    3.0.2.


    On 24/02/2017 14:31, Ron Grunwald via wxperl-users wrote:
    Hello all,

    The FAQ on the wxPerl wiki
    (http://wiki.wxperl.nl/index.php?title=FAQ
    <http://wiki.wxperl.nl/index.php?title=FAQ>) 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?

    Cheers,
    Ron.
    ________________________________________
    Ron Grunwald
    ron...@yahoo.com.au <mailto:ron...@yahoo.com.au>
    http://www.dvlcorner.org <http://www.dvlcorner.org/>









Reply via email to