Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Error at compiling oMSX-catapult 0.9.1

General
2012-11-30
2013-07-24
  • slawdos@linux-drwa:~/!Temp/openmsx-catapult-0.9.1> make
    Autodetecting native system:
      Using Python 2.7.3 native system detection…
      Detected system: x86-linux
    Probing target system…

    Found libraries:
      wxWidgets:       2.9.4
      wxWidgets XRC:   yes
      libxml2:         2.8.0

    Found headers:
      wxWidgets:       yes
      wxWidgets XRC:   yes
      libxml2:         yes

    Customizable options:
      Install to:                       /opt/openMSX-Catapult
      Default openMSX binary location:  /opt/openMSX/bin/openmsx
      Default openMSX system share dir: /opt/openMSX/share
      (you can edit these in build/custom.mk)

    Creating derived/x86-linux-opt/config/config.h…
    Creating derived/x86-linux-opt/config/Version.ii…
    Build configuration
      Platform: x86-linux
      Flavour:  opt
    Compiling openMSXLinuxController…
    src/openMSXLinuxController.cpp: In member function ‘bool openMSXLinuxController::execute(const string&, int&, int&, int&)’:
    src/openMSXLinuxController.cpp:101:13: warning: deprecated conversion from string constant to ‘char*’
    src/openMSXLinuxController.cpp:102:13: warning: deprecated conversion from string constant to ‘char*’
    Compiling CatapultPage…
    In file included from /usr/local/include/wx-2.9/wx/window.h:19:0,
                     from /usr/local/include/wx-2.9/wx/control.h:23,
                     from /usr/local/include/wx-2.9/wx/animate.h:20,
                     from /usr/local/include/wx-2.9/wx/xrc/xmlres.h:29,
                     from src/CatapultPage.cpp:6:
    /usr/local/include/wx-2.9/wx/event.h: In member function ‘bool CatapultPage::UpdateToggleSetting(wxString, wxString, wxString, int)’:
    /usr/local/include/wx-2.9/wx/event.h:3069:18: error: ‘virtual bool wxEvtHandler::ProcessEvent(wxEvent&)’ is inaccessible                   
    src/CatapultPage.cpp:185:30: error: within this context                                                                                    
    make: ***  Error 1


    Who can help?

     
  • From the wxWidgets 2.9.x changes file:

    wxWindow::ProcessEvent() (and other wxEvtHandler methods inherited by wxWindow) has been made protected to prevent wrongly using it instead of correct GetEventHandler()->ProcessEvent(). New ProcessWindowEvent() was added for convenience.

    So it looks like the Catapult code is not compatible yet with wxWidgets 2.9.x.

     
  • It's look like error in code. I try with wxWidgets 2.8.12 - not compiling.

     
  • My Debian system with wxWidgets 2.8.12 compiles it fine… Are you sure you tried it correctly?

     
  • I try install it manually, with x11 or gtk+  - not working.
    Now I use bash-script for launching opnmsx.
    Thanks for attention.

     
  • What errors do you get with wxWidgets 2.8.12?

     
  • joxy
    joxy
    2013-07-24

    On my Ubuntu 12.04.2 (current "Ubuntu Precise"), it compiles fine with wx2.8.12.

    wxcatapult$ make
    ...
    wxWidgets: 2.8.12
    wxWidgets XRC: yes
    ...

    $ aptitude show libwxgtk2.8-dev
    ...
    Version: 2.8.12.1-6ubuntu2
    ...

     
    Last edit: joxy 2013-07-24