• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling RME 3.x - OSX - WXwidget error: 2.8.X compatibility requires 3.0.X compatibility

Snavy

Bakasta
Senator
Joined
Apr 1, 2012
Messages
1,249
Solutions
71
Reaction score
621
Location
Hell
I am trying to compile RME on OS X 10.14 Mojave and I keep receiving the following error:
Code:
2.8.X compatibility requires 3.0.X compatibility

When I looked into the source of this error, it was located in :
Code:
/usr/local/include/wx/chkconf.h

C++:
/*
   Section 3a: check consistency of the non-GUI settings.
*/

#if WXWIN_COMPATIBILITY_2_8
#   if !WXWIN_COMPATIBILITY_3_0
#       ifdef wxABORT_ON_CONFIG_ERROR
#           error "2.8.X compatibility requires 3.0.X compatibility"
#       else
#           undef WXWIN_COMPATIBILITY_3_0
#           define WXWIN_COMPATIBILITY_3_0 1
#       endif
#   endif
#endif /* WXWIN_COMPATIBILITY_2_8 */

is this not WINDOWS related? Why does this happen?

EDIT:

more info on errors:
Code:
-- Build files have been written to: /Users/snavy/rme/build
[  2%] Building CXX object CMakeFiles/rme.dir/source/about_window.cpp.o
[  2%] Building CXX object CMakeFiles/rme.dir/source/action.cpp.o
[  3%] Building CXX object CMakeFiles/rme.dir/source/application.cpp.o
[  4%] Building CXX object CMakeFiles/rme.dir/source/basemap.cpp.o
In file included from /Users/snavy/rme/source/basemap.cpp:20:
In file included from /Users/snavy/rme/source/main.h:56:
In file included from /usr/local/include/wx/defs.h:20:
In file included from /usr/local/include/wx/platform.h:485:
/usr/local/include/wx/chkconf.h:314:9: error: "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near
      the top of thisIn file included from  file."/Users/snavy/rme/source/action.cpp:
20:
In file included from /Users/snavy/rme/source/main.h:56:
In file included from /usr/local/include/wx/defs.h:20:
In file included from /usr/local/include/wx/platform.h:485:
/usr/local/include/wx/chkconf.h:314:9: error: "wxUSE_STD_CONTAINERS_COMPATIBLY must be #       error "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near the top of this file."defined,
please         ^read
comment near
      the top of this file."
/usr/local/include/wx/chkconf.h:430:9: error: "wxUSE_ADDREMOVECTRL must be defined, please read comment near the top#       error "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near the top of this file." of

      this        ^ file."

#       error "wxUSE_ADDREMOVECTRL must be defined, please read comment near the top of this file."
        ^
/usr/local/include/wx/chkconf.h:430:/usr/local/include/wx/chkconf.h9::438 :9:error : error"wxUSE_ADDREMOVECTRL:  must "wxUSE_ACTIVITYINDICATORbe  mustdefined,  beplease  defined,read  pleasecomment  readnear  commentthe  neartop  theof
top       ofthis
       thisfile." file."

#       error "wxUSE_ACTIVITYINDICATOR must be defined, please read comment near the top of this file."
        ^
#       error "wxUSE_ADDREMOVECTRL must be defined, please read comment near the top of this file."
        ^
/usr/local/include/wx/chkconf.h:438:9: error: "wxUSE_ACTIVITYINDICATOR must be defined, please read comment near the top of
      this file."
#       error "wxUSE_ACTIVITYINDICATOR must be defined, please read comment near the top of this file."
        ^
In file included from In file included from /Users/snavy/rme/source/about_window.cpp:20:
In file included from /Users/snavy/rme/source/main.h:56:
In file included from /usr/local/include/wx/defs.h:20:
In file included from /usr/local/include/wx/platform.h:485:
/usr/local/include/wx/chkconf.h:314:9: error: "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near
      the top of this /Users/snavy/rme/source/application.cppfile.":20
:
In file included from /Users/snavy/rme/source/main.h:56:
In file included from /usr/local/include/wx/defs.h:20:
In file included from /usr/local/include/wx/platform.h:485:
/usr/local/include/wx/chkconf.h:314:9: error: "wxUSE_STD_CONTAINERS_COMPATIBLY must #       error "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near the top of this file."be
defined,        ^
please read comment near
      the top of this file."
/usr/local/include/wx/chkconf.h:430:9: error: "wxUSE_ADDREMOVECTRL must be defined, #       error "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near the top of this file."please
read comment        ^
near the top of
      this file."
#       error "wxUSE_ADDREMOVECTRL must be defined, please read comment near the top of this file."
        ^
/usr/local/include/wx/chkconf.h:430:9: /usr/local/include/wx/chkconf.h:438error:: 9: "wxUSE_ADDREMOVECTRL errormust:  be defined,"wxUSE_ACTIVITYINDICATOR  pleasemust  readbe  commentdefined,  nearplease the  readtop  ofcomment
       nearthis  file."the
top of
      this file."
#       error "wxUSE_ADDREMOVECTRL must be defined, please read comment near the top of this file."
        ^
/usr/local/include/wx/chkconf.h:438:9: #       error "wxUSE_ACTIVITYINDICATOR must be defined, please read comment near the top of this file."error
:         ^
"wxUSE_ACTIVITYINDICATOR must be defined, please read comment near the top of
      this file."
#       error "wxUSE_ACTIVITYINDICATOR must be defined, please read comment near the top of this file."
        ^
/usr/local/include/wx/chkconf.h:1281:13: /usr/local/include/wx/chkconf.h:1281error:: 13: "2.8.X compatibility requires 3.0.X compatibility"error
: "2.8.X compatibility requires 3.0.X compatibility"
/usr/local/include/wx/chkconf.h:1281:13: error: #           error "2.8.X compatibility requires 3.0.X compatibility""2.8.X compatibility requires 3.0.X compatibility"

            ^
#           error "2.8.X compatibility requires 3.0.X compatibility"
            ^
#           error "2.8.X compatibility requires 3.0.X compatibility"
            ^
/usr/local/include/wx/chkconf.h:1281:13: error: "2.8.X compatibility requires 3.0.X compatibility"
#           error "2.8.X compatibility requires 3.0.X compatibility"
            ^
In file included from In file included from In file included from /Users/snavy/rme/source/about_window.cpp/Users/snavy/rme/source/application.cpp::20/Users/snavy/rme/source/basemap.cpp20:
::
In file included from 20In file included from /Users/snavy/rme/source/main.h:
/Users/snavy/rme/source/main.h:In file included from :61/Users/snavy/rme/source/main.h61:
::
In file included from 61In file included from /usr/local/include/wx/wx.h:
/usr/local/include/wx/wx.h:In file included from :81/usr/local/include/wx/wx.h:
81::
81/usr/local/include/wx/textctrl.h:
/usr/local/include/wx/textctrl.h:749:/usr/local/include/wx/textctrl.h:749:18:74918::: 18 : warningwarning: : warning: 'OnDynamicBind' 'OnDynamicBind'overrides  overrides'OnDynamicBind'a  a overrides member member a function  functionmemberbut   butfunctionis   isbut not not is marked marked not 'override' 'override'
marked
       [-Winconsistent-missing-override]      'override'[-Winconsistent-missing-override]

   
[-Winconsistent-missing-override]
    virtual bool OnDynamicBind(wxDynamicEventTableEntry& entry);    virtual bool OnDynamicBind(wxDynamicEventTableEntry& entry);    virtual bool OnDynamicBind(wxDynamicEventTableEntry& entry);


                 ^                 ^

In file included from /Users/snavy/rme/source/action.cpp:20:
In file included from /Users/snavy/rme/source/main.h:61:
                 ^/usr/local/include/wx/event.h
:3678/usr/local/include/wx/event.h::183678:: 18: note: noteoverridden: /usr/local/include/wx/event.h :virtualoverridden3678  :virtualfunction18  :functionis   ishere note
here:
overridden virtual function is here
    virtual bool OnDynamicBind(wxDynamicEventTableEntry& WXUNUSED(entry))
    virtual bool OnDynamicBind(wxDynamicEventTableEntry& WXUNUSED(entry))                 ^

                 ^
    virtual bool OnDynamicBind(wxDynamicEventTableEntry& WXUNUSED(entry))
                 ^
In file included from /usr/local/include/wx/wx.h:81:
/usr/local/include/wx/textctrl.h:749:18: warning: 'OnDynamicBind' overrides a member function but is not marked 'override'
      [-Winconsistent-missing-override]
    virtual bool OnDynamicBind(wxDynamicEventTableEntry& entry);
                 ^
/usr/local/include/wx/event.h:3678:18: note: overridden virtual function is here
    virtual bool OnDynamicBind(wxDynamicEventTableEntry& WXUNUSED(entry))
                 ^
1 warning and 4 errors generated.
make[2]: *** [CMakeFiles/rme.dir/source/basemap.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 warning and 4 errors generated.
make[2]: *** [CMakeFiles/rme.dir/source/about_window.cpp.o] Error 1
1 warning and 4 errors generated.
make[2]: *** [CMakeFiles/rme.dir/source/application.cpp.o] Error 1
1 warning and 4 errors generated.
make[2]: *** [CMakeFiles/rme.dir/source/action.cpp.o] Error 1
make[1]: *** [CMakeFiles/rme.dir/all] Error 2
make: *** [all] Error 2


UPDATE

commenting out the following line in chkconf.h solved the issue of compatiblity
C++:
#define wxABORT_ON_CONFIG_ERROR

BUT now I am having the goddamn linking error:

Code:
[100%] Linking CXX executable rme
Undefined symbols for architecture x86_64:
  "wxBoxSizer::DoInsert(unsigned long, wxSizerItem*)", referenced from:
      vtable for PositionCtrl in positionctrl.cpp.o
  "wxGLContext::wxGLContext(wxGLCanvas*, wxGLContext const*, wxGLContextAttrs const*)", referenced from:
      GUI::GetGLContext(wxGLCanvas*) in gui.cpp.o
  "wxTextEntry::ForceUpper()", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "wxWindowBase::DoSetToolTipText(wxString const&)", referenced from:
      vtable for AboutWindow in about_window.cpp.o
      vtable for GamePanel in about_window.cpp.o
      vtable for TetrisPanel in about_window.cpp.o
      vtable for SnakePanel in about_window.cpp.o
      vtable for wxNavigationEnabled<wxWindow> in about_window.cpp.o
      vtable for MainFrame in application.cpp.o
      vtable for MapScrollBar in application.cpp.o
      ...
  "wxTextCtrlBase::OnDynamicBind(wxDynamicEventTableEntry&)", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "wxAppConsoleBase::StoreCurrentException()", referenced from:
      vtable for Application in application.cpp.o
  "wxAppConsoleBase::RethrowStoredException()", referenced from:
      vtable for Application in application.cpp.o
  "wxTopLevelWindowMac::EnableCloseButton(bool)", referenced from:
      vtable for AboutWindow in about_window.cpp.o
      vtable for MainFrame in application.cpp.o
      vtable for BrowseTileWindow in browse_tile_window.cpp.o
      vtable for wxDirDialogBase in client_version.cpp.o
      vtable for MapPropertiesWindow in common_windows.cpp.o
      vtable for ImportMapWindow in common_windows.cpp.o
      vtable for ExportMiniMapWindow in common_windows.cpp.o
      ...
  "wxTopLevelWindowMac::EnableFullScreenView(bool)", referenced from:
      vtable for AboutWindow in about_window.cpp.o
      vtable for MainFrame in application.cpp.o
      vtable for BrowseTileWindow in browse_tile_window.cpp.o
      vtable for wxDirDialogBase in client_version.cpp.o
      vtable for MapPropertiesWindow in common_windows.cpp.o
      vtable for ImportMapWindow in common_windows.cpp.o
      vtable for ExportMiniMapWindow in common_windows.cpp.o
      ...
  "wxTopLevelWindowMac::EnableMaximizeButton(bool)", referenced from:
      vtable for AboutWindow in about_window.cpp.o
      vtable for MainFrame in application.cpp.o
      vtable for BrowseTileWindow in browse_tile_window.cpp.o
      vtable for wxDirDialogBase in client_version.cpp.o
      vtable for MapPropertiesWindow in common_windows.cpp.o
      vtable for ImportMapWindow in common_windows.cpp.o
      vtable for ExportMiniMapWindow in common_windows.cpp.o
      ...
  "wxTopLevelWindowMac::EnableMinimizeButton(bool)", referenced from:
      vtable for AboutWindow in about_window.cpp.o
      vtable for MainFrame in application.cpp.o
      vtable for BrowseTileWindow in browse_tile_window.cpp.o
      vtable for wxDirDialogBase in client_version.cpp.o
      vtable for MapPropertiesWindow in common_windows.cpp.o
      vtable for ImportMapWindow in common_windows.cpp.o
      vtable for ExportMiniMapWindow in common_windows.cpp.o
      ...
  "wxFrame::Show(bool)", referenced from:
      vtable for MainFrame in application.cpp.o
  "wxListBoxBase::GetCountPerPage() const", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "wxTopLevelWindowBase::IsTopNavigationDomain(wxWindowBase::NavigationKind) const", referenced from:
      vtable for AboutWindow in about_window.cpp.o
      vtable for MainFrame in application.cpp.o
      vtable for BrowseTileWindow in browse_tile_window.cpp.o
      vtable for wxDirDialogBase in client_version.cpp.o
      vtable for MapPropertiesWindow in common_windows.cpp.o
      vtable for ImportMapWindow in common_windows.cpp.o
      vtable for ExportMiniMapWindow in common_windows.cpp.o
      ...
  "wxListBox::GetTopItem() const", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "wxMenuBar::DoGetPosition(int*, int*) const", referenced from:
      vtable for MainMenuBar::MainMenuBar(MainFrame*)::CustomMenuBar in main_menubar.cpp.o
  "wxMenuBar::DoGetClientSize(int*, int*) const", referenced from:
      vtable for MainMenuBar::MainMenuBar(MainFrame*)::CustomMenuBar in main_menubar.cpp.o
  "wxMenuBar::DoGetSize(int*, int*) const", referenced from:
      vtable for MainMenuBar::MainMenuBar(MainFrame*)::CustomMenuBar in main_menubar.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [rme] Error 1
make[1]: *** [CMakeFiles/rme.dir/all] Error 2
make: *** [all] Error 2
 
Last edited:
sorry for the offtopic, but since you are a known RME developer, could you please provide a guide on compiling it on windows, or even better, create a topic here on otland with the latest release version? right now we only have old versions and compiling with the WX thing is complicated
Yes, a Windows guide is needed. New release will be available soon.
 
Back
Top