hampusborgos/rme

Compilation Error ‘class wxWindow’ has no member named ‘FromDIP’

Closed this issue · 1 comments

I'm using Linux Mint 20.1, wxwidgets version (3.0.4+dfsg-15build1).

home/leohige/Documents/rme/source/main_toolbar.cpp: In constructor ‘MainToolBar::MainToolBar(wxWindow*, wxAuiManager*)’:
/home/leohige/Documents/rme/source/main_toolbar.cpp:46:29: error: ‘class wxWindow’ has no member named ‘FromDIP’
   46 |  wxSize icon_size = parent->FromDIP(wxSize(16, 16));
      |                             ^~~~~~~
/home/leohige/Documents/rme/source/main_toolbar.cpp:107:135: error: ‘class wxWindow’ has no member named ‘FromDIP’
  107 |  x_control = newd NumberTextCtrl(position_toolbar, wxID_ANY, 0, 0, MAP_MAX_WIDTH, wxTE_PROCESS_ENTER, "X", wxDefaultPosition, parent->FromDIP(wxSize(60, 20)));
      |                                                                                                                                       ^~~~~~~
/home/leohige/Documents/rme/source/main_toolbar.cpp:109:136: error: ‘class wxWindow’ has no member named ‘FromDIP’
  109 |  y_control = newd NumberTextCtrl(position_toolbar, wxID_ANY, 0, 0, MAP_MAX_HEIGHT, wxTE_PROCESS_ENTER, "Y", wxDefaultPosition, parent->FromDIP(wxSize(60, 20)));
      |                                                                                                                                        ^~~~~~~
/home/leohige/Documents/rme/source/main_toolbar.cpp:111:135: error: ‘class wxWindow’ has no member named ‘FromDIP’
  111 |  z_control = newd NumberTextCtrl(position_toolbar, wxID_ANY, 0, 0, MAP_MAX_LAYER, wxTE_PROCESS_ENTER, "Z", wxDefaultPosition, parent->FromDIP(wxSize(35, 20)));
      |                                                                                                                                       ^~~~~~~
/home/leohige/Documents/rme/source/main_toolbar.cpp:113:109: error: ‘class wxWindow’ has no member named ‘FromDIP’
  113 |  go_button = newd wxButton(position_toolbar, TOOLBAR_POSITION_GO, wxEmptyString, wxDefaultPosition, parent->FromDIP(wxSize(22, 20)));
      |                                                                                                             ^~~~~~~
/home/leohige/Documents/rme/source/gui.cpp: In static member function ‘static wxString GUI::GetDataDirectory()’:
/home/leohige/Documents/rme/source/gui.cpp:143:13: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
  143 |  catch(std::bad_cast)
      |             ^~~~~~~~
/home/leohige/Documents/rme/source/gui.cpp: In static member function ‘static wxString GUI::GetExecDirectory()’:
/home/leohige/Documents/rme/source/gui.cpp:160:13: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
  160 |  catch(std::bad_cast)
      |             ^~~~~~~~
/home/leohige/Documents/rme/source/gui.cpp: In member function ‘void GUI::ShowWelcomeDialog(const wxBitmap&)’:
/home/leohige/Documents/rme/source/gui.cpp:1187:106: error: ‘class MainFrame’ has no member named ‘FromDIP’
 1187 |     welcomeDialog = newd WelcomeDialog(__W_RME_APPLICATION_NAME__, "Version " + __W_RME_VERSION__, root->FromDIP(wxSize(800, 480)), icon, recent_files);

were you trying to build 3.7?