Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling on Arch Linux #118

Open
HyperDevil opened this issue Jan 19, 2017 · 4 comments
Open

Error compiling on Arch Linux #118

HyperDevil opened this issue Jan 19, 2017 · 4 comments

Comments

@HyperDevil
Copy link

HyperDevil commented Jan 19, 2017

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 HyperDevil changed the title Error compiling on Linux Arch Error compiling on Arch Linux Jan 19, 2017
@johnhays
Copy link
Collaborator

johnhays commented Jan 19, 2017 via email

@HyperDevil
Copy link
Author

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
Copy link
Author

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

@lwkoon
Copy link

lwkoon commented Aug 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants