Opened 23 months ago

Closed 7 months ago

#14980 closed defect (fixed)

osx_cocoa compilation error with --disable-baseevtloop

Reported by: wojdyr Owned by: PC
Priority: normal Milestone:
Component: wxOSX-Cocoa Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

To finish compilation I did

  • src/osx/cocoa/window.mm

     
    18361836    // notice that because the default animation mode is NSAnimationBlocking, 
    18371837    // no user input events ought to be processed from here 
    18381838    { 
     1839#if wxUSE_CONSOLE_EVENTLOOP 
    18391840        wxEventLoopGuarantor ensureEventLoopExistence; 
    18401841        wxEventLoopBase * const loop = wxEventLoopBase::GetActive(); 
    18411842        while ( ![animDelegate isDone] ) 
    18421843            loop->Dispatch(); 
     1844#endif 
    18431845    } 

but it probably breaks something

Change History (2)

comment:1 Changed 7 months ago by wojdyr

alternatively

  • include/wx/evtloop.h

    diff --git a/include/wx/evtloop.h b/include/wx/evtloop.h
    index 8dd5d6e..928814f 100644
    a b private: 
    402402    wxEventLoopBase *m_evtLoopOld; 
    403403}; 
    404404 
    405 #if wxUSE_CONSOLE_EVENTLOOP 
     405#if wxUSE_CONSOLE_EVENTLOOP || wxUSE_GUI 
    406406 
    407407class wxEventLoopGuarantor 
    408408{ 

comment:2 Changed 7 months ago by PC

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

In 76364:

allow using wxEventLoopGuarantor when wxUSE_GUI==1
fixes wxOSX-Cocoa build when wxUSE_CONSOLE_EVENTLOOP==0
closes #14980

Note: See TracTickets for help on using tickets.