OpenDV icon indicating copy to clipboard operation
OpenDV copied to clipboard

Error compiling on Arch Linux

Open HyperDevil opened this issue 7 years ago • 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

HyperDevil avatar Jan 19 '17 08:01 HyperDevil

You must have WX widgets dev installed even for non GUI

On Jan 19, 2017 00:07, "HyperDevil" [email protected] wrote:

Arch linux ircddbgateway ./configure --without-gui

xtCtrl.otest -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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dl5di/OpenDV/issues/118, or mute the thread https://github.com/notifications/unsubscribe-auth/AGP0erP-sptEBYK5fvq4unihP9y7aRwfks5rTxndgaJpZM4Lnzwc .

johnhays avatar Jan 19 '17 15:01 johnhays

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

HyperDevil avatar Jan 20 '17 11:01 HyperDevil

I was finally able to compile it. For anybody else using arch, the trick was: webkitgtk2, wxgtk, gtkmm3 and gtk3 What a mess.

HyperDevil avatar Jan 20 '17 18:01 HyperDevil

@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?

lwkoon avatar Aug 22 '18 11:08 lwkoon