I tried to compile PCEM on Ubuntu 17.10.
But I obtained this error:
Code: Select all
g++ -DPACKAGE_NAME=\"PCem\" -DPACKAGE_TARNAME=\"pcem\" -DPACKAGE_VERSION=\"v12\" -DPACKAGE_STRING=\"PCem\ v12\" -DPACKAGE_BUGREPORT=\"Sarah\ Walker\ \<pcem@pcem-emulator.co.uk\>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pcem\" -DVERSION=\"v12\" -DHAVE_LIBGL=1 -DHAVE_LIBOPENAL=1 -DHAVE_LIBPTHREAD=1 -I. -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -pthread -I/usr/include/SDL2 -D_REENTRANT -DUSE_NETWORKING -g -O2 -MT pcem-wave8580_P_T.o -MD -MP -MF .deps/pcem-wave8580_P_T.Tpo -c -o pcem-wave8580_P_T.o `test -f 'resid-fp/wave8580_P_T.cc' || echo './'`resid-fp/wave8580_P_T.cc
mv -f .deps/pcem-wave8580_P_T.Tpo .deps/pcem-wave8580_P_T.Po
g++ -DPACKAGE_NAME=\"PCem\" -DPACKAGE_TARNAME=\"pcem\" -DPACKAGE_VERSION=\"v12\" -DPACKAGE_STRING=\"PCem\ v12\" -DPACKAGE_BUGREPORT=\"Sarah\ Walker\ \<pcem@pcem-emulator.co.uk\>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pcem\" -DVERSION=\"v12\" -DHAVE_LIBGL=1 -DHAVE_LIBOPENAL=1 -DHAVE_LIBPTHREAD=1 -I. -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -pthread -I/usr/include/SDL2 -D_REENTRANT -DUSE_NETWORKING -g -O2 -MT pcem-wave8580__ST.o -MD -MP -MF .deps/pcem-wave8580__ST.Tpo -c -o pcem-wave8580__ST.o `test -f 'resid-fp/wave8580__ST.cc' || echo './'`resid-fp/wave8580__ST.cc
mv -f .deps/pcem-wave8580__ST.Tpo .deps/pcem-wave8580__ST.Po
g++ -DPACKAGE_NAME=\"PCem\" -DPACKAGE_TARNAME=\"pcem\" -DPACKAGE_VERSION=\"v12\" -DPACKAGE_STRING=\"PCem\ v12\" -DPACKAGE_BUGREPORT=\"Sarah\ Walker\ \<pcem@pcem-emulator.co.uk\>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pcem\" -DVERSION=\"v12\" -DHAVE_LIBGL=1 -DHAVE_LIBOPENAL=1 -DHAVE_LIBPTHREAD=1 -I. -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -pthread -I/usr/include/SDL2 -D_REENTRANT -DUSE_NETWORKING -g -O2 -MT pcem-wave.o -MD -MP -MF .deps/pcem-wave.Tpo -c -o pcem-wave.o `test -f 'resid-fp/wave.cc' || echo './'`resid-fp/wave.cc
mv -f .deps/pcem-wave.Tpo .deps/pcem-wave.Po
g++ -DPACKAGE_NAME=\"PCem\" -DPACKAGE_TARNAME=\"pcem\" -DPACKAGE_VERSION=\"v12\" -DPACKAGE_STRING=\"PCem\ v12\" -DPACKAGE_BUGREPORT=\"Sarah\ Walker\ \<pcem@pcem-emulator.co.uk\>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pcem\" -DVERSION=\"v12\" -DHAVE_LIBGL=1 -DHAVE_LIBOPENAL=1 -DHAVE_LIBPTHREAD=1 -I. -I/usr/lib/x86_64-linux-gnu/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -pthread -I/usr/include/SDL2 -D_REENTRANT -DUSE_NETWORKING -g -O2 -MT pcem-wx-main.o -MD -MP -MF .deps/pcem-wx-main.Tpo -c -o pcem-wx-main.o `test -f 'wx-main.cc' || echo './'`wx-main.cc
In file included from wx-main.cc:1:0:
wx-app.h:57:29: error: invalid use of incomplete type ‘class wxCommandEvent’
class CallbackEvent: public wxCommandEvent
^~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/wx.h:24:0,
from wx-app.h:6,
from wx-main.cc:1:
/usr/include/wx-3.0/wx/event.h:632:28: note: forward declaration of ‘class wxCommandEvent’
class WXDLLIMPEXP_FWD_CORE wxCommandEvent;
^~~~~~~~~~~~~~
In file included from wx-main.cc:1:0:
wx-app.h: In constructor ‘CallbackEvent::CallbackEvent(WX_CALLBACK, void*)’:
wx-app.h:60:59: error: type ‘wxCommandEvent’ is not a direct base of ‘CallbackEvent’
CallbackEvent(WX_CALLBACK callback, void* data) : wxCommandEvent(WX_CALLBACK_EVENT)
^~~~~~~~~~~~~~
wx-app.h: In copy constructor ‘CallbackEvent::CallbackEvent(const CallbackEvent&)’:
wx-app.h:65:53: error: type ‘wxCommandEvent’ is not a direct base of ‘CallbackEvent’
CallbackEvent(const CallbackEvent& event) : wxCommandEvent(event)
^~~~~~~~~~~~~~
wx-app.h: In member function ‘wxEvent* CallbackEvent::Clone() const’:
wx-app.h:71:64: error: cannot convert ‘CallbackEvent*’ to ‘wxEvent*’ in return
wxEvent* Clone() const { return new CallbackEvent(*this); }
^
wx-app.h: At global scope:
wx-app.h:83:30: error: invalid use of incomplete type ‘class wxCommandEvent’
class PopupMenuEvent: public wxCommandEvent
^~~~~~~~~~~~~~
In file included from /usr/include/wx-3.0/wx/wx.h:24:0,
from wx-app.h:6,
from wx-main.cc:1:
/usr/include/wx-3.0/wx/event.h:632:28: note: forward declaration of ‘class wxCommandEvent’
class WXDLLIMPEXP_FWD_CORE wxCommandEvent;
^~~~~~~~~~~~~~
In file included from wx-main.cc:1:0:
wx-app.h:86:42: error: ‘wxMenu’ has not been declared
PopupMenuEvent(wxWindow* window, wxMenu* menu, int* x, int* y) : wxCommandEvent(WX_POPUP_MENU_EVENT)
^~~~~~
wx-app.h:104:9: error: ‘wxMenu’ does not name a type; did you mean ‘wxMin’?
wxMenu* GetMenu() const { return menu; }
^~~~~~
wxMin
wx-app.h:111:9: error: ‘wxMenu’ does not name a type; did you mean ‘wxMin’?
wxMenu* menu;
^~~~~~
wxMin
wx-app.h: In constructor ‘PopupMenuEvent::PopupMenuEvent(wxWindow*, int*, int*, int*)’:
wx-app.h:86:74: error: type ‘wxCommandEvent’ is not a direct base of ‘PopupMenuEvent’
PopupMenuEvent(wxWindow* window, wxMenu* menu, int* x, int* y) : wxCommandEvent(WX_POPUP_MENU_EVENT)
^~~~~~~~~~~~~~
wx-app.h:89:23: error: ‘class PopupMenuEvent’ has no member named ‘menu’
this->menu = menu;
^~~~
wx-app.h: In copy constructor ‘PopupMenuEvent::PopupMenuEvent(const PopupMenuEvent&)’:
wx-app.h:93:55: error: type ‘wxCommandEvent’ is not a direct base of ‘PopupMenuEvent’
PopupMenuEvent(const PopupMenuEvent& event) : wxCommandEvent(event)
^~~~~~~~~~~~~~
wx-app.h:96:23: error: ‘class PopupMenuEvent’ has no member named ‘menu’
this->menu = event.GetMenu();
^~~~
wx-app.h:96:36: error: ‘const class PopupMenuEvent’ has no member named ‘GetMenu’
this->menu = event.GetMenu();
^~~~~~~
wx-app.h: In member function ‘wxEvent* PopupMenuEvent::Clone() const’:
wx-app.h:101:65: error: cannot convert ‘PopupMenuEvent*’ to ‘wxEvent*’ in return
wxEvent* Clone() const { return new PopupMenuEvent(*this); }
^
wx-app.h: At global scope:
wx-app.h:141:21: error: invalid use of incomplete type ‘class wxFrame’
class Frame: public wxFrame
^~~~~~~
In file included from /usr/include/wx-3.0/wx/wx.h:26:0,
from wx-app.h:6,
from wx-main.cc:1:
/usr/include/wx-3.0/wx/utils.h:54:28: note: forward declaration of ‘class wxFrame’
class WXDLLIMPEXP_FWD_CORE wxFrame;
^~~~~~~
In file included from wx-main.cc:1:0:
wx-app.h:144:54: error: ‘wxPoint’ does not name a type; did you mean ‘wxJoin’?
Frame(App* app, const wxString& title, const wxPoint& pos,
^~~~~~~
wxJoin
wx-app.h:145:31: error: ‘wxSize’ does not name a type; did you mean ‘wxTimer’?
const wxSize& size);
^~~~~~
wxTimer
wx-app.h:151:9: error: ‘wxMenu’ does not name a type; did you mean ‘wxMin’?
wxMenu* GetMenu();
^~~~~~
wxMin
wx-app.h:167:9: error: ‘wxMenu’ does not name a type; did you mean ‘wxMin’?
wxMenu* menu;
^~~~~~
wxMin
Makefile:4117 : la recette pour la cible « pcem-wx-main.o » a échouée
make[1]: *** [pcem-wx-main.o] Erreur 1
Makefile:369 : la recette pour la cible « all-recursive » a échouée
make: *** [all-recursive] Erreur 1
https://paste.ubuntu.com/25759498/
Thank you for your help.
LGDN.