aMule Forum
English => Compilation problems => Topic started by: DigitoErgoSum on July 13, 2005, 06:08:01 PM
-
I'm trying to install amule on my router without X installed.
I tried the ebuilds (61767 and 61794) found at LINK (http://bugs.gentoo.org/show_bug.cgi?id=95104) but, emerging, i receive an error.
verbo ~ # emerge -pv amule
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] net-p2p/amule-2.0.3 +amuled -debug -gtk2 -nls -nosystray -optimize +remote -remotegui -stats -unicode -wxgtk1 0 kB [1]
Total size of downloads: 0 kB
Portage overlays:
[1] /usr/local/overlays/portage
... ... ... ... ... ...
In file included from amule-gui.cpp:95:
ChatWnd.h:33:54: wx/panel.h: No such file or directory
ChatWnd.h:34:70: wx/notebook.h: No such file or directory
In file included from amule-gui.cpp:95:
ChatWnd.h:44: error: parse error before `{' token
ChatWnd.h:47: error: destructors must be member functions
ChatWnd.h:61: error: parse error before `protected'
ChatWnd.h:67: error: parse error before `private'
ChatWnd.h:67: error: virtual outside class declaration
ChatWnd.h:67: error: non-member function `const wxEventTable* GetEventTable()' cannot have `const' method qualifier
ChatWnd.h:67: error: redefinition of `wxEventHashTable sm_eventHashTable'
extern/listctrl.260.h:258: error: `wxEventHashTable sm_eventHashTable' previously declared here
ChatWnd.h:67: error: no matching function for call to `wxEventHashTable::wxEventHashTable()'
/usr/include/wx-2.6/wx/event.h:2286: error: candidates are: wxEventHashTable::wxEventHashTable(const wxEventHashTable&)
/usr/include/wx-2.6/wx/event.h:2250: error: wxEventHashTable::wxEventHashTable(const wxEventTable&)
ChatWnd.h:67: error: virtual outside class declaration
ChatWnd.h:67: error: non-member function `wxEventHashTable& GetEventHashTable()' cannot have `const' method qualifier
ChatWnd.h:71: error: parse error before `}' token
amule-gui.cpp:153: error: syntax error before `::' token
amule-gui.cpp:154: error: syntax error before `::' token
amule-gui.cpp: In constructor `CamuleGuiBase::CamuleGuiBase()':
amule-gui.cpp:166: error: invalid use of undefined type `struct MyTimer'
amule-gui.cpp:158: error: forward declaration of `struct MyTimer'
amule-gui.cpp: In member function `virtual void CamuleGuiBase::ShowAlert(wxString, wxString, int)':
amule-gui.cpp:179: error: `wxMessageBox' undeclared (first use this function)
amule-gui.cpp:253:18: warning: #warning Need to parse the geometry for non-GTK/WIN platforms
amule-gui.cpp: In member function `virtual int CamuleGuiBase::InitGui(bool, wxString&)':
amule-gui.cpp:265: error: invalid use of undefined type `struct wxPoint'
/usr/include/wx-2.6/wx/utils.h:55: error: forward declaration of `struct wxPoint'
amule-gui.cpp:266: error: `wxSize' undeclared (first use this function)
amule-gui.cpp:268: error: no matching function for call to `CamuleDlg::CamuleDlg(NULL, wxString&)'
amuleDlg.h:74: error: candidates are: CamuleDlg::CamuleDlg()
amuleDlg.h:74: error: CamuleDlg::CamuleDlg(const CamuleDlg&)
amule-gui.cpp:184: warning: unused parameter `wxString&geom_string'
amule-gui.cpp: In member function `bool CamuleGuiBase::CopyTextToClipboard(wxString)':
amule-gui.cpp:278: error: `wxTheClipboard' undeclared (first use this function)
amule-gui.cpp:281: error: parse error before `(' token
amule-gui.cpp:277: warning: unused parameter `wxString strText'
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.5-20050130/include/g++-v3/bits/stl_multimap.h: At top level:
StatisticsDlg.h:64: warning: `COLORREF getColors(int)' declared `static' but never defined
{standard input}: Assembler messages:
{standard input}:210: Error: symbol `sm_eventHashTable' is already defined
{standard input}:236: Error: symbol `sm_eventHashTable' is already defined
{standard input}:244: Error: symbol `sm_eventHashTable' is already defined
{standard input}:270: Error: symbol `sm_eventHashTable' is already defined
{standard input}:306: Error: symbol `sm_eventHashTable' is already defined
{standard input}:354: Error: symbol `sm_eventHashTable' is already defined
{standard input}:356: Error: symbol `sm_eventHashTable' is already defined
make[3]: *** [amulegui-amule-gui.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3'
make: *** [all] Error 2
!!! ERROR: net-p2p/amule-2.0.3 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Dependencies:
verbo ~ # emerge -pv wxGTK zlib libpng
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] x11-libs/wxGTK-2.6.0-r1 -debug -doc -gnome -gtk2 -joystick -jpeg -odbc -opengl -png -sdl -tiff -unicode -wxgtk1 0 kB
[ebuild R ] sys-libs/zlib-1.2.2-r1 -build 0 kB
[ebuild R ] media-libs/libpng-1.2.8 -doc 0 kB
-
I don't know much about gentoo, nor this ebuild, but you're trying to build the monolithic amule application. If there is an option to disable it, then it should resolve your problem. Otherwise you have to build it from the tarball yourself.
-
so something like --enable-amule-daemon --enable-amule-gui --disable-systray don't work ???
What do i need ??? --disable-monolithic ?
-
so something like --enable-amule-daemon --enable-amule-gui --disable-systray don't work ???
They do work.
What do i need ??? --disable-monolithic ?
Exactly.
-
It looks like it is problem with your wxGTK install. You just install wxbase package and not wxGTK. Look at your USE flags. You have -gtk2 and -wxgtk1 so it does not compile against gtk2 nor gtk1. Compile your wxGTK package with one of those flags (or both if you like) and see what happen.
-
Oh. I did not notice you want just amule deamon. Forget what I have said in my previous post.
-
I made it works modifying the ebuild from
if use amuled && use nosystray; then EXTRA_ECONF="--enable-amule-daemon --enable-amule-gui --disable-systray"
into
if use amuled && use nosystray; then EXTRA_ECONF="--enable-amule-daemon --disable-systray --disable-monolithic"
Now I have problems making it works with /etc/init.d. Here (http://bugs.gentoo.org/attachment.cgi?id=60643&action=view) is the code of initscript.
I ran amuled as root and it works without problems, i copied the config files into p2p home dir and i tried /etc/init.d/amuled start.
verbo ~ # /etc/init.d/amuled start
* Starting aMule Daemon ...
* aMule daemon can't be started! Check logfile: /var/log/amuled.log [ ok ]
Logfile is empty :(
Do you have any idea ????
Bye & thx
-
Try changing the key "AcceptExternalConnections" in ~/.aMule/amule.conf to "AcceptExternalConnections=1". Or if you copied the amule.conf file (I'm not sure from your post), check that the paths in the file are correct and that amuled has access to them.
-
also since you are not the first one with this problem we have a wiki page
check
http://wiki.amule.org
and read the webserver setup since it covers everything you need to know for this stuff
http://www.amule.org/wiki/index.php/Webserver
stefanero
-
:tongue: ehm ehm :)
It was a permission problem... I ran amuled as root and after i copied all configuration files to /home/p2p/ without changing the owner :D :D :D
There's always something to learn or to check :D
Thx to all of you.