You are not logged in.

#1 2016-02-26 18:39:28

Allexj
Member
Registered: 2015-07-11
Posts: 73

[SOLVED]Problem compiling a package (make)

Hi all. I hope that I am in the right section..

Anyway. I am trying to install a tr.gz package compiling it.
It's abgx:
http://abgx360.xecuter.com/download.php

It requires to compile and install first the normal program (without gui), and then compile and install the gui.
For the program without gui there are no problems... I installed it succesfully, but once I try to compile the gui package, I get some errors.

For the ./configure command no mistakes..
For the "make" command I get this:

$ make
make  all-am
make[1]: entering into "/home/alessandro/Scaricati/abgx360gui-1.0.2"
g++ -DHAVE_CONFIG_H -I.  -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -g -O2  -g -O2  -MT abgx360gui-abgx360gui.o -MD -MP -MF .deps/abgx360gui-abgx360gui.Tpo -c -o abgx360gui-abgx360gui.o `test -f 'src/abgx360gui.cpp' || echo './'`src/abgx360gui.cpp
In file included from /usr/include/wx-3.0/wx/wx.h:24:0,
                 from src/abgx360gui.h:18,
                 from src/abgx360gui.cpp:43:
/usr/include/wx-3.0/wx/event.h: In member function ‘void PrettyButton::onMouseUp(wxMouseEvent&)’:
/usr/include/wx-3.0/wx/event.h:3355:18: error: ‘virtual bool wxEvtHandler::ProcessEvent(wxEvent&)’ is inaccessible
     virtual bool ProcessEvent(wxEvent& event);
                  ^
src/abgx360gui.cpp:178:38: error: within this context
         mParent->ProcessEvent(*mEvent);
                                      ^
src/abgx360gui.cpp: In member function ‘void abgx360gui::CreateGUIControls()’:
src/abgx360gui.cpp:780:178: error: ‘wxSAVE’ was not declared in this scope
 eo*.iso)|*video*.iso|ISO Files (*.iso)|*.iso|All Files (*.*)|*.*"), wxSAVE | wx
                                                                     ^
src/abgx360gui.cpp:780:187: error: ‘wxOVERWRITE_PROMPT’ was not declared in this scope
 *video*.iso|ISO Files (*.iso)|*.iso|All Files (*.*)|*.*"), wxSAVE | wxOVERWRITE
                                                                     ^
src/abgx360gui.cpp:782:178: error: ‘wxOPEN’ was not declared in this scope
 eo*.iso)|*video*.iso|ISO Files (*.iso)|*.iso|All Files (*.*)|*.*"), wxOPEN | wx
                                                                     ^
src/abgx360gui.cpp:782:187: error: ‘wxFILE_MUST_EXIST’ was not declared in this scope
 *video*.iso|ISO Files (*.iso)|*.iso|All Files (*.*)|*.*"), wxOPEN | wxFILE_MUST
                                                                     ^
src/abgx360gui.cpp:784:482: error: ‘wxMULTIPLE’ was not declared in this scope
 (*ss*.bin)|*ss*.bin|All Files (*)|*"), wxOPEN | wxFILE_MUST_EXIST | wxMULTIPLE)
                                                                     ^
src/abgx360gui.cpp: In member function ‘void abgx360gui::MnuDeleteSettingsClick(wxCommandEvent&)’:
src/abgx360gui.cpp:1123:133: warning: ‘size_t wxGetMultipleChoices(wxArrayInt&, const wxString&, const wxString&, const wxArrayString&, wxWindow*, int, int, bool, int, int)’ is deprecated [-Wdeprecated-declarations]
 xt to any saved settings you want to delete"), wxT("Delete Settings"), aNames);
                                                                              ^
In file included from /usr/include/wx-3.0/wx/wx.h:14:0,
                 from src/abgx360gui.h:18,
                 from src/abgx360gui.cpp:43:
/usr/include/wx-3.0/wx/generic/choicdgg.h:452:39: note: declared here
 wxDEPRECATED( WXDLLIMPEXP_CORE size_t wxGetMultipleChoices(wxArrayInt& selectio
                                       ^
/usr/include/wx-3.0/wx/defs.h:615:43: note: in definition of macro ‘wxDEPRECATED’
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
src/abgx360gui.cpp: In member function ‘void abgx360gui::MyRegionButtonClick(wxCommandEvent&)’:
src/abgx360gui.cpp:2187:149: warning: ‘size_t wxGetMultipleChoices(wxArrayInt&, const wxString&, const wxString&, const wxArrayString&, wxWindow*, int, int, bool, int, int)’ is deprecated [-Wdeprecated-declarations]
 the region of any and all consoles you own"), wxT("Select regions"), aRegions);
                                                                              ^
In file included from /usr/include/wx-3.0/wx/wx.h:14:0,
                 from src/abgx360gui.h:18,
                 from src/abgx360gui.cpp:43:
/usr/include/wx-3.0/wx/generic/choicdgg.h:452:39: note: declared here
 wxDEPRECATED( WXDLLIMPEXP_CORE size_t wxGetMultipleChoices(wxArrayInt& selectio
                                       ^
/usr/include/wx-3.0/wx/defs.h:615:43: note: in definition of macro ‘wxDEPRECATED’
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
src/abgx360gui.cpp: In member function ‘void abgx360gui::MatchOnlyButtonClick(wxCommandEvent&)’:
src/abgx360gui.cpp:2234:141: warning: ‘size_t wxGetMultipleChoices(wxArrayInt&, const wxString&, const wxString&, const wxArrayString&, wxWindow*, int, int, bool, int, int)’ is deprecated [-Wdeprecated-declarations]
 ext to the type of files you want to match"), wxT("Select matches"), aMatches);
                                                                              ^
In file included from /usr/include/wx-3.0/wx/wx.h:14:0,
                 from src/abgx360gui.h:18,
                 from src/abgx360gui.cpp:43:
/usr/include/wx-3.0/wx/generic/choicdgg.h:452:39: note: declared here
 wxDEPRECATED( WXDLLIMPEXP_CORE size_t wxGetMultipleChoices(wxArrayInt& selectio
                                       ^
/usr/include/wx-3.0/wx/defs.h:615:43: note: in definition of macro ‘wxDEPRECATED’
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
In file included from /usr/include/wx-3.0/wx/wx.h:24:0,
                 from src/abgx360gui.h:18,
                 from src/abgx360gui.cpp:43:
/usr/include/wx-3.0/wx/event.h: In member function ‘virtual bool DnDInput::OnDropFiles(wxCoord, wxCoord, const wxArrayString&)’:
/usr/include/wx-3.0/wx/event.h:3387:18: error: ‘virtual void wxEvtHandler::AddPendingEvent(const wxEvent&)’ is inaccessible
     virtual void AddPendingEvent(const wxEvent& event)
                  ^
src/abgx360gui.cpp:2563:48: error: within this context
                 dndframe->AddPendingEvent(event);
                                                ^
In file included from /usr/include/wx-3.0/wx/wx.h:24:0,
                 from src/abgx360gui.h:18,
                 from src/abgx360gui.cpp:43:
/usr/include/wx-3.0/wx/event.h:3387:18: error: ‘virtual void wxEvtHandler::AddPendingEvent(const wxEvent&)’ is inaccessible
     virtual void AddPendingEvent(const wxEvent& event)
                  ^
src/abgx360gui.cpp:2585:44: error: within this context
             dndframe->AddPendingEvent(event);
                                            ^
Makefile:321: instruction set for the goal "abgx360gui-abgx360gui.o" failed
make[1]: *** [abgx360gui-abgx360gui.o] Errore 1
make[1]:  Exiting from the directory "/home/alessandro/Scaricati/abgx360gui-1.0.2"
Makefile:216:  instruction set for the goal "all" failed
make: *** [all] Error 2

there's something wrong with wxwidgets.
in fact, into the README file, there is this:

abgx360gui requires wxWidgets 2.7.1 or newer (http://wxwidgets.org/downloads/) and xterm 
(http://invisible-island.net/xterm/)

To install them on systems with apt-get:
sudo apt-get install libwxgtk2.8-dev xterm

To compile abgx360gui:
./configure
make

To run abgx360gui:
./abgx360gui
OR
use your favorite file manager to browse to this folder and double click on abgx360gui

NOTE: This is just a GUI, you need to have abgx360 installed in order to do anything useful

If you encounter this error:
                wxWidgets must be installed on your system.

                Please check that wx-config is in path, the directory
                where wxWidgets libraries are installed (returned by
                'wx-config --libs' or 'wx-config --static --libs' command)
                is in LD_LIBRARY_PATH or equivalent variable and
                wxWidgets version is 2.7.1 or above.

First check that wx-config exists in your path (normally /usr/local/bin); it
might be named something else like wxgtk2-2.8-config, and you will need to create
a symbolic link named wx-config in order for the configure script to find it.

Example: sudo ln -s /usr/local/bin/wxgtk2-2.8-config /usr/local/bin/wx-config

But I already have the dependencies....

Any suggetions?

P.S. sorry for bad english

Last edited by Allexj (2016-02-26 22:14:27)

Offline

#2 2016-02-26 19:00:54

michis
Member
Registered: 2015-12-12
Posts: 77

Re: [SOLVED]Problem compiling a package (make)

Seems it doesn't work with wxgtk3. Install wxgtk2.8 and then tell the configure script to use it.

./configure --with-wx-config=/usr/bin/wx-config-2.8

Offline

#3 2016-02-26 22:13:57

Allexj
Member
Registered: 2015-07-11
Posts: 73

Re: [SOLVED]Problem compiling a package (make)

michis wrote:

Seems it doesn't work with wxgtk3. Install wxgtk2.8 and then tell the configure script to use it.

./configure --with-wx-config=/usr/bin/wx-config-2.8

Thanks man I solved smile

Offline

Board footer

Powered by FluxBB