Opened 4 years ago

Last modified 4 years ago

#12067 new build error

OSX iPhone windows.mm causes compile and link errors

Reported by: ost@… Owned by:
Priority: normal Milestone:
Component: wxOSX-iPhone Version: stable-latest
Keywords: build, error Cc:
Blocked By: Blocking:
Patch: no

Description

void wxWidgetIPhoneImpl::touchUpInsideAction(void* sender, WX_UIEvent evt, WXWidget slf, void* _cmd)
{
}

does not comiple since the method is not declared for the class

Some link errors are generated since the following methods implementations are missing from windows.mm:

void wxWidgetIPhoneImpl::controlTextDidChange()
void wxWidgetIPhoneImpl::controlAction(void* sender, wxUint32 controlEvent, WX_UIEvent rawEvent)
bool wxWidgetIPhoneImpl::SetBackgroundStyle(wxBackgroundStyle style)

Change History (5)

comment:1 Changed 4 years ago by SC

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

(In [64337]) missing commit, fixes #12067

comment:2 Changed 4 years ago by ost@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

This does not build after updating to trunk:

void wxWidgetIPhoneImpl::controlTextDidChange()
{

wxTextCtrl* wxpeer = wxDynamicCast((wxWindow*)GetWXPeer(),wxTextCtrl);
if ( wxpeer )
{

wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, wxpeer->GetId());
event.SetEventObject( wxpeer );
event.SetString( wxpeer->GetValue() );
wxpeer->HandleWindowEvent( event );

}

}

/Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:760:0 /Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:760: error: invalid static_cast from type 'wxWindow*' to type 'const wxTextCtrl*'

/Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:760:0 /Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:760: error: incomplete type 'wxTextCtrl' used in nested name specifier

/Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:763:0 /Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:763: error: invalid use of incomplete type 'struct wxTextCtrl'

/Users/ost/Dev/wxWidgets/build/osx/../../include/wx/generic/logg.h:17:0 /Users/ost/Dev/wxWidgets/build/osx/../../include/wx/generic/logg.h:17: error: forward declaration of 'struct wxTextCtrl'

/Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:764:0 /Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:764: error: no matching function for call to 'wxCommandEvent::SetEventObject(wxTextCtrl*&)'

/Users/ost/Dev/wxWidgets/build/osx/../../include/wx/event.h:935:0 /Users/ost/Dev/wxWidgets/build/osx/../../include/wx/event.h:935: note: candidates are: void wxEvent::SetEventObject(wxObject*)

/Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:765:0 /Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:765: error: invalid use of incomplete type 'struct wxTextCtrl'

/Users/ost/Dev/wxWidgets/build/osx/../../include/wx/generic/logg.h:17:0 /Users/ost/Dev/wxWidgets/build/osx/../../include/wx/generic/logg.h:17: error: forward declaration of 'struct wxTextCtrl'

/Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:766:0 /Users/ost/Dev/wxWidgets/build/osx/../../src/osx/iphone/window.mm:766: error: invalid use of incomplete type 'struct wxTextCtrl'

/Users/ost/Dev/wxWidgets/build/osx/../../include/wx/generic/logg.h:17:0 /Users/ost/Dev/wxWidgets/build/osx/../../include/wx/generic/logg.h:17: error: forward declaration of 'struct wxTextCtrl'

comment:3 Changed 4 years ago by csomor

and you are sure you don't have a custom chkconf or something alike that turns off wxUSE_TEXTCTRL ?

comment:4 Changed 4 years ago by csomor

  • Status changed from reopened to infoneeded_new

comment:5 Changed 4 years ago by ost@…

  • Status changed from infoneeded_new to new

I got wxUSE_TEXTCTRL set to 0 but I assume this will remove it since whats the point of making wxWindow depend on it and still have this option?

Note: See TracTickets for help on using tickets.