#15629 closed build error (fixed)

src/osx/cocoa/toolbar.mm not compiling

Reported by: Dimension3D Owned by:
Priority: normal Milestone: 3.0.0
Component: wxOSX-Cocoa Version: 3.0.0-rc2
Keywords: toolbar Cc:
Blocked By: Blocking:
Patch: no

Description

src/osx/cocoa/toolbar.mm is not compiling if wxOSX_USE_NATIVE_TOOLBAR is set to 0 in setup.h (which is required to have toolbar icons other than 24 and 32 pixels).

This should be reproducable when building any Mac/cocoa application with
#define wxOSX_USE_NATIVE_TOOLBAR 0
in setup.h.

toolbar.mm compiles when removing the
#if wxOSX_USE_NATIVE_TOOLBAR
#endif
from the declaration of GetToolBarFontEncoding and when adding
#if wxOSX_USE_NATIVE_TOOLBAR
#endif
around the three lines with m_macToolbar in ~wxToolBar.

Seems to work then.

Change History (1)

comment:1 Changed 12 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [75150]) Compilation fix for wxOSX/Cocoa with wxOSX_USE_NATIVE_TOOLBAR==0.

Don't use m_macToolbar when not using the native toolbar.

Do compile GetToolBarFontEncoding() which is used in any case.

Closes #15629.

Note: See TracTickets for help on using tickets.