Error compiling on Arch Linux
HyperDevil opened this issue · 4 comments
Arch linux 4.4.43-1-ARCH #1 Sun Jan 15 18:21:25 MST 2017 armv6l GNU/Linux
aur/wxbase 3.0.2-3 [installed]
wxWidgets base libraries for no X install (stable version)
ircddbgateway
./configure --without-gui
xtCtrl.o
test -f 'GUICommon/AddressTextCtrl.cpp' || echo './'GUICommon/AddressTextCtrl.cpp In file included from GUICommon/AddressTextCtrl.h:24:0, from GUICommon/AddressTextCtrl.cpp:19: GUICommon/RestrictedTextCtrl.h:24:47: error: expected class-name before '{' token class CRestrictedTextCtrl : public wxTextCtrl { ^ GUICommon/RestrictedTextCtrl.h:26:77: error: 'wxPoint' does not name a type CRestrictedTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos, const wxSize& size, long style, const wxString& wantedChars); ^~~~~~~ GUICommon/RestrictedTextCtrl.h:26:97: error: 'wxSize' does not name a type CRestrictedTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos, const wxSize& size, long style, const wxString& wantedChars); ^~~~~~ In file included from GUICommon/AddressTextCtrl.cpp:19:0: GUICommon/AddressTextCtrl.h:31:74: error: 'wxPoint' does not name a type CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0L); ^~~~~~~ GUICommon/AddressTextCtrl.h:31:114: error: 'wxSize' does not name a type CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0L); ^~~~~~ GUICommon/AddressTextCtrl.h:31:89: error: 'wxDefaultPosition' was not declared in this scope CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0L); ^~~~~~~~~~~~~~~~~ In file included from GUICommon/AddressTextCtrl.cpp:19:0: GUICommon/AddressTextCtrl.h:31:129: error: 'wxDefaultSize' was not declared in this scope CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0L); ^~~~~~~~~~~~~ GUICommon/AddressTextCtrl.cpp:21:91: error: 'wxPoint' does not name a type CAddressTextCtrl::CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos, const wxSize& size, long style) : ^~~~~~~ GUICommon/AddressTextCtrl.cpp:21:111: error: 'wxSize' does not name a type CAddressTextCtrl::CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos, const wxSize& size, long style) : ^~~~~~ make: *** [Makefile:2788: GUICommon/libGUICommon_a-AddressTextCtrl.o] Error 1
In Arch linux there is no "dev" package, the main package include the dev libraries, just not the sources and examples.
I have also tried with an older version of wxwidgets 2.8, but this was too old.
Version of wxwidgets is 3.0.1 (Arch linux package wxbase), also tried wxgtk package but that also does not work.
g++ -DPACKAGE_NAME=\"ircddbgateway\" -DPACKAGE_TARNAME=\"ircddbgateway\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"ircddbgateway\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDATA_DIR=\"/usr/local/share/opendv\" -DLOG_DIR=\"/usr/local/var/log/opendv\" -DCONF_DIR=\"/usr/local/etc/opendv\" -I. -ICommon -I/usr/lib/wx/include/base-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -g -O2 -MT GUICommon/libGUICommon_a-AddressTextCtrl.o -MD -MP -MF GUICommon/.deps/libGUICommon_a-AddressTextCtrl.Tpo -c -o GUICommon/libGUICommon_a-AddressTextCtrl.o
test -f 'GUICommon/AddressTextCtrl.cpp' || echo './'GUICommon/AddressTextCtrl.cpp In file included from GUICommon/AddressTextCtrl.h:24:0, from GUICommon/AddressTextCtrl.cpp:19: GUICommon/RestrictedTextCtrl.h:24:47: error: expected class-name before '{' token class CRestrictedTextCtrl : public wxTextCtrl { ^ GUICommon/RestrictedTextCtrl.h:26:77: error: 'wxPoint' does not name a type CRestrictedTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos, const wxSize& size, long style, const wxString& wantedChars); ^~~~~~~ GUICommon/RestrictedTextCtrl.h:26:97: error: 'wxSize' does not name a type CRestrictedTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos, const wxSize& size, long style, const wxString& wantedChars); ^~~~~~ In file included from GUICommon/AddressTextCtrl.cpp:19:0: GUICommon/AddressTextCtrl.h:31:74: error: 'wxPoint' does not name a type CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0L); ^~~~~~~ GUICommon/AddressTextCtrl.h:31:114: error: 'wxSize' does not name a type CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0L); ^~~~~~ GUICommon/AddressTextCtrl.h:31:89: error: 'wxDefaultPosition' was not declared in this scope CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0L); ^~~~~~~~~~~~~~~~~ In file included from GUICommon/AddressTextCtrl.cpp:19:0: GUICommon/AddressTextCtrl.h:31:129: error: 'wxDefaultSize' was not declared in this scope CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0L); ^~~~~~~~~~~~~ GUICommon/AddressTextCtrl.cpp:21:91: error: 'wxPoint' does not name a type CAddressTextCtrl::CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos, const wxSize& size, long style) : ^~~~~~~ GUICommon/AddressTextCtrl.cpp:21:111: error: 'wxSize' does not name a type CAddressTextCtrl::CAddressTextCtrl(wxWindow* parent, int id, const wxString& value, const wxPoint& pos, const wxSize& size, long style) : ^~~~~~ make: *** [Makefile:2788: GUICommon/libGUICommon_a-AddressTextCtrl.o] Error 1
I was finally able to compile it.
For anybody else using arch, the trick was: webkitgtk2, wxgtk, gtkmm3 and gtk3
What a mess.
@HyperDevil I am using Arch in pi3 too, will try Pacman from your info and recompile again as i download Wx from source and compile also without success, can you able to list steps in order for my arch linux Arm7 version to be able to compile?