Giter Club home page Giter Club logo

Comments (7)

rzvncj avatar rzvncj commented on June 11, 2024

Could you check to see if the commit I've pushed fixes you problem, please?

from xchm.

rzvncj avatar rzvncj commented on June 11, 2024

I can't reproduce it at all on my Arch Linux - even by using all of your CFLAGS, CXXFLAGS, LDFLAGS, etc.
I also have wxWidgets 3.2.1 here.

If the commit above does not fix it, would it be possible for you to try on an up-to-date Arch Linux and reproduce it there?

from xchm.

rzvncj avatar rzvncj commented on June 11, 2024

Nevermind, I've figured it out. Your wxWidgets, although appearing to be version 3.2.1, has enabled backwards compatibility with 2.8, and that's why it's hitting this overload (in /usr/include/wx-3.2/wx/tbarbase.h:503):

498 #if WXWIN_COMPATIBILITY_2_8
499     // the old versions of the various methods kept for compatibility
500     // don't use in the new code!
501     // --------------------------------------------------------------
502     wxDEPRECATED_INLINE(
503     wxToolBarToolBase *AddTool(int toolid,
504                                const wxBitmap& bitmap,
505                                const wxBitmap& bmpDisabled,
506                                bool toggle = false,
507                                wxObject *clientData = NULL,
508                                const wxString& shortHelpString = wxEmptyString,
509                                const wxString& longHelpString = wxEmptyString)
510     ,
511         return AddTool(toolid, wxEmptyString,
512                        bitmap, bmpDisabled,
513                        toggle ? wxITEM_CHECK : wxITEM_NORMAL,
514                        shortHelpString, longHelpString, clientData);
515     )

The cleanest solution, IMHO, is for you to build the Mageia wxWidgets package in a way that removes backwards compatibility with the (seriously old) 2.8 version, and then your build problem goes away.

(Also, the previous patch will not fix this issue, so no need to check if the problem's now solved with it - it isn't).

from xchm.

rzvncj avatar rzvncj commented on June 11, 2024

You'll also note that in the current stable documentation for wxWidgets, the offending overload is not listed at all: https://docs.wxwidgets.org/3.2/classwx_tool_bar.html#a5987506e585f03c294c55799beca934a, so it is not meant to be used (or even taken into consideration for overload purposes) for builds of new software.

from xchm.

rzvncj avatar rzvncj commented on June 11, 2024

I've just released 1.35, it should build even with your current wxWidgets.

from xchm.

david-geiger avatar david-geiger commented on June 11, 2024

Confirmed it is fixed with new 1.35 release, thank you.

from xchm.

rzvncj avatar rzvncj commented on June 11, 2024

Confirmed it is fixed with new 1.35 release, thank you.

Alright, no problem. Thanks for reporting.

from xchm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.