aMule Forum
English => Compilation problems => Topic started by: lumi on November 09, 2014, 04:38:18 PM
-
Hi,
In previous versions of OS I didn't have this problem, but now when I try to compile aMule I get this error:
Compiling DownloadQueue.cpp
In file included from DownloadQueue.h:30:0,
from DownloadQueue.cpp:26:
ObservableQueue.h: In instantiation of 'void CObservableQueue<ValueType>::ObserverAdded(CObservableQueue<ValueType>::ObserverType*) [with ValueType = CPartFile*; CObservableQueue<ValueType>::ObserverType = CObserver<CQueueEvent<CPartFile*> >]':
DownloadQueue.cpp:1528:32: required from here
ObservableQueue.h:334:55: error: 'NotifyObservers' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
NotifyObservers( EventType( EventType::STARTING ), o );
^
ObservableQueue.h:334:55: note: declarations in dependent base 'CObservable<CQueueEvent<CPartFile*> >' are not found by unqualified lookup
ObservableQueue.h:334:55: note: use 'this->NotifyObservers' instead
ObservableQueue.h: In instantiation of 'void CObservableQueue<ValueType>::ObserverRemoved(CObservableQueue<ValueType>::ObserverType*) [with ValueType = CPartFile*; CObservableQueue<ValueType>::ObserverType = CObserver<CQueueEvent<CPartFile*> >]':
DownloadQueue.cpp:1665:1: required from here
ObservableQueue.h:341:55: error: 'NotifyObservers' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
NotifyObservers( EventType( EventType::STOPPING ), o );
^
ObservableQueue.h:341:55: note: declarations in dependent base 'CObservable<CQueueEvent<CPartFile*> >' are not found by unqualified lookup
ObservableQueue.h:341:55: note: use 'this->NotifyObservers' instead
Makefile:1752: recipe for target 'amule-DownloadQueue.o' failed
Configure output:
Configured aMule 2.3.1 for 'x86_64-pc-linux-gnu'.
aMule enabled options:
**** aMule Core ****
Prefix where aMule should be installed? /usr/local
Should aMule be compiled with i18n support? yes
Should aMule be compiled in debug mode? yes
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? no
Should aMule be compiled with UPnP support? yes
Should aMule be compiled with IP2country support? yes
Should aMule monolithic application be built? yes
Should aMule daemon version be built? no
Should aMule remote gui be built? no
Crypto++ library/headers style? installed
**** aMule TextClient ****
Should aMule Command Line Client be built? no
**** aMule WebServer ****
Should aMule WebServer be built? no
**** aMule ED2K Links Handler ****
Should aMule ED2K Links Handler be built? yes
**** aMuleLinkCreator ****
Should aMuleLinkCreator GUI version (alc) be built? yes
Should aMuleLinkCreator for console (alcc) be built? yes
**** aMule Statistics ****
Should C aMule Statistics (CAS) be built? no
Should aMule GUI Statistics (wxCas) be built? no
Should xas XChat2 plugin be installed? no
Should plasmaMule plasma-applet be build? no
**** General Libraries and Tools ****
Should ccache support be enabled? no
Libraries aMule will use to build:
wxWidgets 2.8.12 (gtk2,shared)
crypto++ 5.6.2 (installed, in /usr)
libupnp 1.6.18
libintl system
libGeoIP system
zlib 1.2.8
Other outputs:
ls -l /usr/bin/wx*
lrwxrwxrwx 1 root root 62 Nov 9 02:41 /usr/bin/wx-config -> ../lib64/wx-2.8-wxcontainer/wx/config/gtk2-unicode-release-2.8
lrwxrwxrwx 1 root root 8 Nov 9 02:41 /usr/bin/wxrc -> wxrc-2.8
-rwxr-xr-x 1 root root 89408 Oct 15 14:53 /usr/bin/wxrc-2.8
ls -l /usr/local/bin/wx*
ls: cannot access /usr/local/bin/wx*: No such file or directory
rpm -qa | grep wx
libwx_gtk2u_html-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_fl-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_gl-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_baseu-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_qa-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_richtext-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_qa-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_baseu_net-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_gizmos_xrc-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_plot-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_aui-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_baseu_net-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_html-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_gizmos_xrc-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_core-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_media-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_xrc-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_media-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_plot-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_svg-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_gizmos-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
wxWidgets-wxcontainer-devel-2.8.12-26.1.11.x86_64
libwx_gtk2u_aui-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_ogl-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_adv-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_baseu-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_baseu_xml-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_xrc-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_stc-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_svg-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_baseu_xml-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_richtext-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_gizmos-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_mmedia-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_stc-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
wxWidgets-lang-2.8.12-26.1.11.noarch
libwx_gtk2u_mmedia-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_core-2_8-0-stl-2.8.12-26.1.11.x86_64
libwx_gtk2u_gl-2_8-0-wxcontainer-2.8.12-26.1.11.x86_64
libwx_gtk2u_adv-2_8-0-stl-2.8.12-26.1.11.x86_64
Any hints what should I install? Thank you in advance!
Cheers,
-
Please try compiling the SVN version. I think I have seen this before so it's probably fixed.
-
Thank you and sorry for naive question, but is this SVN repo for aMule (there is no link from the main site):
http://amule.googlecode.com/svn/trunk/
I checked it out, but I don't see configure script.
-
Stupid me, I was looking at the main site. OK, I compiled it just fine. The only difference I saw was that SVN version generates huge amount of warnings and notes, like:
/usr/include/wx-2.8/wx/radiobox.h: In member function 'void wxToolTipArray::Remove(_wxArraywxToolTipArray)':
/usr/include/wx-2.8/wx/debug.h:194:43: warning: typedef 'wxDummyCheckInt' locally defined but not used [-Wunused-local-typedefs]
#define wxFORCE_SEMICOLON typedef int wxDummyCheckInt
^
/usr/include/wx-2.8/wx/debug.h:224:9: note: in expansion of macro 'wxFORCE_SEMICOLON'
wxFORCE_SEMICOLON /* just to force a semicolon */
^
/usr/include/wx-2.8/wx/dynarray.h:353:7: note: in expansion of macro 'wxCHECK2_MSG'
wxCHECK2_MSG( iIndex != wxNOT_FOUND, return, \
^
/usr/include/wx-2.8/wx/dynarray.h:486:5: note: in expansion of macro '_WX_DEFINE_TYPEARRAY_HELPER'
_WX_DEFINE_TYPEARRAY_HELPER(T, name, base, classexp, _WX_PTROP_NONE)
^
/usr/include/wx-2.8/wx/dynarray.h:669:5: note: in expansion of macro '_WX_DEFINE_TYPEARRAY_PTR'
_WX_DEFINE_TYPEARRAY_PTR(_wxArray##name, name, base, classdecl)
^
/usr/include/wx-2.8/wx/dynarray.h:655:5: note: in expansion of macro 'WX_DEFINE_TYPEARRAY_WITH_DECL_PTR'
WX_DEFINE_TYPEARRAY_WITH_DECL_PTR(T, name, base, class WXDLLEXPORT)
^
/usr/include/wx-2.8/wx/dynarray.h:829:5: note: in expansion of macro 'WX_DEFINE_EXPORTED_TYPEARRAY_PTR'
WX_DEFINE_EXPORTED_TYPEARRAY_PTR(T, name, wxBaseArrayPtrVoid)
^
/usr/include/wx-2.8/wx/radiobox.h:25:1: note: in expansion of macro 'WX_DEFINE_EXPORTED_ARRAY_PTR'
WX_DEFINE_EXPORTED_ARRAY_PTR(wxToolTip *, wxToolTipArray);
^
/usr/include/wx-2.8/wx/valtext.h: In member function 'bool wxTextValidator::CheckValidator() const':
/usr/include/wx-2.8/wx/debug.h:194:43: warning: typedef 'wxDummyCheckInt' locally defined but not used [-Wunused-local-typedefs]
#define wxFORCE_SEMICOLON typedef int wxDummyCheckInt
^
/usr/include/wx-2.8/wx/debug.h:224:9: note: in expansion of macro 'wxFORCE_SEMICOLON'
wxFORCE_SEMICOLON /* just to force a semicolon */
^
/usr/include/wx-2.8/wx/debug.h:186:38: note: in expansion of macro 'wxCHECK2_MSG'
#define wxCHECK_MSG(cond, rc, msg) wxCHECK2_MSG(cond, return rc, msg)
^
/usr/include/wx-2.8/wx/valtext.h:103:9: note: in expansion of macro 'wxCHECK_MSG'
wxCHECK_MSG( m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)), false,
^
-
I think these warnings are not related to aMule but rather to wxWidgets or your compiler.
Maybe you should switch to wx 3.0 at some time, support for 2.8 will be (or already is) discontinued by wx developers.