Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 118284
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: stefan.bruens [...] rwth-aachen.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Perl-Wx can not be built with STL variants of wxWidgets
Date: Fri, 7 Oct 2016 02:32:14 +0200
To: <bug-Wx [...] rt.cpan.org>
From: Stefan Bruens <stefan.bruens [...] rwth-aachen.de>
Hi Trying to build perl-Wx against wxWidgets 3.0.2 STL fails as the wxUSE_STL build disables several implicit conversions from wxString to wxChar. http://docs.wxwidgets.org/trunk/classwx_string.html : ---- Note - If you built wxWidgets with wxUSE_STL set to 1, the implicit conversions to both narrow and wide C strings are disabled and replaced with implicit conversions to std::string and std::wstring. ---- E.g.: In file included from DocView.c:24:0: cpp/docview.h:483:46: error: no matching function for call to 'wxClassInfo::wxClassInfo(const wxString&, wxClassInfo*, NULL, long unsigned int, wxObject* (*)())' ... /usr/include/wx-3.0/wx/rtti.h:46:5: note: candidate: wxClassInfo::wxClassInfo(const wxChar*, const wxClassInfo*, const wxClassInfo*, int, wxObjectConstructorFn) Best would be to fix perl-Wx, but at least a statement on the homepage would be nice about which wxWidget configurations are supported/working. Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 work: +49 2405 49936-424
On Thu Oct 06 20:32:27 2016, stefan.bruens@rwth-aachen.de wrote: Show quoted text
> Note - If you built wxWidgets with wxUSE_STL set to 1, the implicit > conversions to both narrow and wide C strings are disabled and > replaced with > implicit conversions to std::string and std::wstring.
Hi Stefan, From your description of the problem, if we execute the following command line in Alien-wxWidgets, perl Build.PL --wxWidgets-extraflags="--enable-stl" would that then allow Wx to build successfully against version 3.0.2? Is this what you did? Kind regards, Ron.
Subject: Re: [rt.cpan.org #118284] Perl-Wx can not be built with STL variants of wxWidgets
Date: Wed, 22 Mar 2017 17:09:22 +0000
To: "bug-Wx [...] rt.cpan.org" <bug-Wx [...] rt.cpan.org>
From: "Brüns, Stefan" <Stefan.Bruens [...] rwth-aachen.de>
On Dienstag, 21. März 2017 15:08:08 CET Ron Grunwald via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=118284 > > > On Thu Oct 06 20:32:27 2016, stefan.bruens@rwth-aachen.de wrote:
> > Note - If you built wxWidgets with wxUSE_STL set to 1, the implicit > > conversions to both narrow and wide C strings are disabled and > > replaced with > > implicit conversions to std::string and std::wstring.
> > Hi Stefan, > > From your description of the problem, if we execute the following > command line in Alien-wxWidgets, > > perl Build.PL --wxWidgets-extraflags="--enable-stl" > > would that then allow Wx to build successfully against version 3.0.2? > Is this what you did?
I use a dedicated build environment where only one wxWidgets version/variant is installed at a time. "STL" is a build option of wxWidgets itself. While building perl-Alien- wxWidgets you need to have this build of wxWidgets installed. Regards, Stefan