sirjuddington / SLADE

It's a Doom editor
https://slade.mancubus.net
GNU General Public License v2.0
697 stars 105 forks source link

Linux build fails with NO_WEBVIEW set to OFF #745

Open OrdinaryMagician opened 7 years ago

OrdinaryMagician commented 7 years ago

SLADE Version: current git Operating System: Linux

Issue Details: Compilation errors out on DocsPage.cpp with errors about 'wxWebView' being an incomplete type, among others.

Full error output:

/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp: In constructor ‘DocsPage::DocsPage(wxWindow*)’:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:80:26: error: incomplete type ‘wxWebView’ used in nested name specifier
  wv_browser = wxWebView::New(this, -1, wxEmptyString);
                          ^~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:81:12: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->SetZoomType(wxWEBVIEW_ZOOM_TYPE_LAYOUT);
            ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:81:14: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->SetZoomType(wxWEBVIEW_ZOOM_TYPE_LAYOUT);
              ^~~~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:81:26: error: ‘wxWEBVIEW_ZOOM_TYPE_LAYOUT’ was not declared in this scope
  wv_browser->SetZoomType(wxWEBVIEW_ZOOM_TYPE_LAYOUT);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:82:13: error: invalid conversion from ‘wxWebView*’ to ‘int’ [-fpermissive]
  sizer->Add(wv_browser, 1, wxEXPAND);
             ^~~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/common.h:18:0,
                 from /home/marisa/.cache/pacaur/slade-git/src/slade/src/cotire/slade_CXX_prefix.cxx:4,
                 from /home/marisa/.cache/pacaur/slade-git/src/slade/src/cotire/slade_CXX_prefix.hxx:4,
                 from <command-line>:0:
/usr/include/wx-3.0/wx/sizer.h:1162:1: note:   initializing argument 1 of ‘wxSizerItem* wxSizer::Add(int, int, int, int, int, wxObject*)’
 wxSizer::Add( int width, int height, int proportion, int flag, int border, wxObject* userData )
 ^~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:85:12: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->ClearHistory();
            ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:85:14: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->ClearHistory();
              ^~~~~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:86:12: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->LoadURL(docs_url);
            ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:86:14: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->LoadURL(docs_url);
              ^~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:90:12: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->Bind(wxEVT_WEBVIEW_NAVIGATING, &DocsPage::onHTMLLinkClicked, this);
            ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:90:14: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->Bind(wxEVT_WEBVIEW_NAVIGATING, &DocsPage::onHTMLLinkClicked, this);
              ^~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:90:19: error: ‘wxEVT_WEBVIEW_NAVIGATING’ was not declared in this scope
  wv_browser->Bind(wxEVT_WEBVIEW_NAVIGATING, &DocsPage::onHTMLLinkClicked, this);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:90:19: note: suggested alternative: ‘wxEVT_DATAVIEW_CACHE_HINT’
  wv_browser->Bind(wxEVT_WEBVIEW_NAVIGATING, &DocsPage::onHTMLLinkClicked, this);
                   ^~~~~~~~~~~~~~~~~~~~~~~~
                   wxEVT_DATAVIEW_CACHE_HINT
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:91:12: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->Bind(wxEVT_WEBVIEW_LOADED, &DocsPage::onNavigationDone, this);
            ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:91:14: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->Bind(wxEVT_WEBVIEW_LOADED, &DocsPage::onNavigationDone, this);
              ^~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:91:19: error: ‘wxEVT_WEBVIEW_LOADED’ was not declared in this scope
  wv_browser->Bind(wxEVT_WEBVIEW_LOADED, &DocsPage::onNavigationDone, this);
                   ^~~~~~~~~~~~~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:91:19: note: suggested alternative: ‘wxEVT_MEDIA_LOADED’
  wv_browser->Bind(wxEVT_WEBVIEW_LOADED, &DocsPage::onNavigationDone, this);
                   ^~~~~~~~~~~~~~~~~~~~
                   wxEVT_MEDIA_LOADED
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp: In member function ‘void DocsPage::updateNavButtons()’:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:106:28: error: invalid use of incomplete type ‘class wxWebView’
  tb_back->Enable(wv_browser->CanGoBack());
                            ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:106:30: error: invalid use of incomplete type ‘class wxWebView’
  tb_back->Enable(wv_browser->CanGoBack());
                              ^~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:107:31: error: invalid use of incomplete type ‘class wxWebView’
  tb_forward->Enable(wv_browser->CanGoForward());
                               ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:107:33: error: invalid use of incomplete type ‘class wxWebView’
  tb_forward->Enable(wv_browser->CanGoForward());
                                 ^~~~~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp: In member function ‘void DocsPage::openPage(string)’:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:122:12: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->LoadURL(docs_url + "?page=" + page_name);
            ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:122:14: error: invalid use of incomplete type ‘class wxWebView’
  wv_browser->LoadURL(docs_url + "?page=" + page_name);
              ^~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp: In member function ‘void DocsPage::onToolbarButton(wxCommandEvent&)’:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:135:36: error: invalid use of incomplete type ‘class wxWebView’
  if (button == "back" && wv_browser->CanGoBack())
                                    ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:135:38: error: invalid use of incomplete type ‘class wxWebView’
  if (button == "back" && wv_browser->CanGoBack())
                                      ^~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:136:13: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->GoBack();
             ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:136:15: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->GoBack();
               ^~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:139:44: error: invalid use of incomplete type ‘class wxWebView’
  else if (button == "forward" && wv_browser->CanGoForward())
                                            ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:139:46: error: invalid use of incomplete type ‘class wxWebView’
  else if (button == "forward" && wv_browser->CanGoForward())
                                              ^~~~~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:140:13: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->GoForward();
             ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:140:15: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->GoForward();
               ^~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:144:13: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->LoadURL(docs_url);
             ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:144:15: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->LoadURL(docs_url);
               ^~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:148:13: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->LoadURL(docs_url + "?page=Tutorials");
             ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:148:15: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->LoadURL(docs_url + "?page=Tutorials");
               ^~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:152:13: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->LoadURL(docs_url + "?page=Wiki-Index");
             ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:152:15: error: invalid use of incomplete type ‘class wxWebView’
   wv_browser->LoadURL(docs_url + "?page=Wiki-Index");
               ^~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:158:27: error: invalid use of incomplete type ‘class wxWebView’
   string page = wv_browser->GetCurrentURL().AfterLast('=');
                           ^~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:158:29: error: invalid use of incomplete type ‘class wxWebView’
   string page = wv_browser->GetCurrentURL().AfterLast('=');
                             ^~~~~~~~~~~~~
In file included from /home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:35:0:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.h:7:7: note: forward declaration of ‘class wxWebView’
 class wxWebView;
       ^~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp: In member function ‘void DocsPage::onHTMLLinkClicked(wxEvent&)’:
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:174:2: error: ‘wxWebViewEvent’ was not declared in this scope
  wxWebViewEvent& ev = (wxWebViewEvent&)e;
  ^~~~~~~~~~~~~~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:174:2: note: suggested alternative: ‘wxDataViewEvent’
  wxWebViewEvent& ev = (wxWebViewEvent&)e;
  ^~~~~~~~~~~~~~
  wxDataViewEvent
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:174:18: error: ‘ev’ was not declared in this scope
  wxWebViewEvent& ev = (wxWebViewEvent&)e;
                  ^~
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:174:18: note: suggested alternative: ‘e’
  wxWebViewEvent& ev = (wxWebViewEvent&)e;
                  ^~
                  e
/home/marisa/.cache/pacaur/slade-git/src/slade/src/MainEditor/UI/DocsPage.cpp:174:39: error: expected primary-expression before ‘)’ token
  wxWebViewEvent& ev = (wxWebViewEvent&)e;
                                       ^
sirjuddington commented 7 years ago

You need to have wx built with wxWebView enabled, or the wxWebView package installed (eg. libwxgtk-webview3.0-dev on ubuntu)

crisisinaptica commented 7 years ago

OrdinaryMagician seems to be an Arch Linux user, like me.

Trying to compile Slade on Arch Linux will fail since the last update of the wxgtk2 package. Cmake find_package command tries to use the libraries this package provides, but this package is no longer built with webview enabled. A.Rojas, the packager of wxgtk2, recommends switching to wxgtk3 for all packages using wxwebview (look at the comments).

I don't know that much about Cmake or packaging, but the problem seems to reside in the wxwidgets find module provided by the cmake package.

I have reported these findings to the maintainer of the AUR slade-git package.