aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: how to use daemon/gui  (Read 5103 times)

elfstone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
how to use daemon/gui
« on: October 05, 2004, 12:31:21 PM »

hi, i just wanted to configure rc6 and found those options:

  --enable-amulecmd       Compile aMule command line client
  --enable-amulecmdgui    Compile aMule GUI client
  --enable-amule-gui    Compile aMule remote GUI
  --enable-amule-daemon    Compile aMule daemon version
  --enable-webserver      Compile aMule WebServer
  --enable-webservergui   Compile aMule WebServer GUI


So, how can i compile/install a daemon-amule thant runs all the time and an amule-gui that i start up from time to time and connect to the daemon.

Is it possible to run a daemoninzes version with webserver-capabilities?

Im pretty sure this has been asked before, but i didnt find any help files or threads about it.

thx,
elfstone
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: how to use daemon/gui
« Reply #1 on: October 05, 2004, 03:12:07 PM »

The seperate gui is currently non-functional (we forgot to disable that configure option), so if you want daemon mode, then you'll have to connect to is using amulecmd or amuleweb. ;)

You'll need to set up amule to accept remote connections before you can do this. You can probably find more info in the wiki.
Logged

elfstone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: how to use daemon/gui
« Reply #2 on: October 05, 2004, 07:10:07 PM »

Ok, thx..

Core-Client without gui and webserver sounds fine, how can i do that?

I configured now with:

./configure --enable-optimise --enable-ccache --enable-amule-daemon --enable-amulecmd --enable-webserver                            

It compiles fine, but when i start with amule i get the gui. How can i disable the gui? I didnt find an amule-daemon executable and the -d switch doesnt do anything either.

Thx for further help..




And, is the sperate client "non-functional" because it has a little bug that will be fixed in RC7, or is it only half done and will come in the very distant future (maybe in 2.0.1).
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: how to use daemon/gui
« Reply #3 on: October 05, 2004, 07:21:12 PM »

hter is another binary...
amuleD !! with small d ;)

try taht one :)

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

elfstone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: how to use daemon/gui
« Reply #4 on: October 05, 2004, 08:02:52 PM »

where should it be?

i compiled with --enable-amule-daemon, but i cant find no amuled
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: how to use daemon/gui
« Reply #5 on: October 05, 2004, 08:05:53 PM »

which wx version? 2.4.2 doesn't compile daemon
Logged

elfstone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: how to use daemon/gui
« Reply #6 on: October 05, 2004, 08:07:22 PM »

Yes 2.4.2.

Configure says compiling with daemon.. so, maybe it should tell me. What wx version will work?
Logged

elfstone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: how to use daemon/gui
« Reply #7 on: October 05, 2004, 08:56:12 PM »

I downloaded wx 2.5.4 and compiled it. It worked, i configured amule and did make, it runs for a few minutes, and then i get this error.
Any ideas?

Quote
ASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/local/lib/wx/include/gtk-2.5 -I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DAMULE_DAEMON  -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2  -MT amuled-CryptoPP.o -MD -MP -MF ".deps/amuled-CryptoPP.Tpo" \
  -c -o amuled-CryptoPP.o `test -f 'CryptoPP.cpp' || echo './'`CryptoPP.cpp; \
then mv -f ".deps/amuled-CryptoPP.Tpo" ".deps/amuled-CryptoPP.Po"; \
else rm -f ".deps/amuled-CryptoPP.Tpo"; exit 1; \
fi
CryptoPP.cpp:1708:10: warning: #warning "You do not have GCC 3.3 or later, or did not specify -msse2 compiler option, so use of SSE2 intrinsics will be disabled."
CryptoPP.cpp: In copy constructor `CryptoPP::Integer::Integer(const CryptoPP::Integer&)':
CryptoPP.cpp:4328: warning: base class `class CryptoPP::ASN1Object' should be explicitly initialized in the copy constructor
CryptoPP.h: In member function `const T& CryptoPP::SecBlock::operator[](I) const [with I = unsigned int, T = word, A = CryptoPP::AllocatorWithCleanup]':
CryptoPP.cpp:4461:   instantiated from here
CryptoPP.h:2735: warning: comparison of unsigned expression >= 0 is always true
CryptoPP.h: In member function `const T& CryptoPP::SecBlock::operator[](I) const [with I = unsigned int, T = byte, A = CryptoPP::AllocatorWithCleanup]':
CryptoPP.cpp:6113:   instantiated from here
CryptoPP.h:2735: warning: comparison of unsigned expression >= 0 is always true
CryptoPP.cpp: In copy constructor `CryptoPP::ByteQueue::ByteQueue(const CryptoPP::ByteQueue&)':
CryptoPP.cpp:6202: warning: base class `class CryptoPP::Bufferless' should be explicitly initialized in the copy constructor
CryptoPP.cpp: In constructor `CryptoPP::FilterWithBufferedInput::FilterWithBufferedInput(unsigned int, unsigned int, unsigned int,
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: how to use daemon/gui
« Reply #8 on: October 05, 2004, 09:32:51 PM »

2.5.4?? 2.5.3 is current cvs ;)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

elfstone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: how to use daemon/gui
« Reply #9 on: October 05, 2004, 10:41:42 PM »

oh, im mistyped.. its 2.5.2.

what could it be?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: how to use daemon/gui
« Reply #10 on: October 06, 2004, 08:30:22 AM »

so does this show up when you compile or does it show up when you run amule?
I have only seen those messages while compiling...not during runtime !?

and if its during comping those are just crypto++ warning...not much to worry about...

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

elfstone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: how to use daemon/gui
« Reply #11 on: October 06, 2004, 10:17:22 AM »

while compiling.. but it seems i quoted the not-so-interesting part of the error.
And i found out, it only happens, when i use --enable-emule-daemon (which was the reason i installed wx 2.5.2 in the first plase). When i dont use --enable-emule-daemon it compiles fine and runs without problems (webserver and everything works)

More errors
Quote

CryptoPP.cpp:152: warning: `CryptoPP::CompileAssert CryptoPP::cryptopp_assert_152' defined but not used
CryptoPP.cpp:154: warning: `CryptoPP::CompileAssert CryptoPP::cryptopp_assert_154' defined but not used
CryptoPP.cpp:157: warning: `CryptoPP::CompileAssert CryptoPP::cryptopp_assert_157' defined but not used
g++  -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -O2   -lpthread -o amuled  amuled-ListenSocket.o amuled-AICHSyncThread.o amuled-ECSocket.o amuled-EMSocket.o amuled-AddFileThread.o amuled-BaseClient.o amuled-SHA.o amuled-SHAHashSet.o amuled-CFile.o amuled-ClientCredits.o amuled-ClientList.o amuled-ClientUDPSocket.o amuled-DownloadClient.o amuled-DownloadQueue.o amuled-ED2KLink.o amuled-ExternalConn.o amuled-filemem.o amuled-filefn.o amuled-Friend.o amuled-HTTPDownload.o amuled-IPFilter.o amuled-KnownFile.o amuled-KnownFileList.o amuled-MD5Sum.o amuled-otherfunctions.o amuled-packets.o amuled-PartFile.o amuled-Preferences.o amuled-SafeFile.o amuled-SearchList.o amuled-server.o amuled-ServerList.o amuled-ServerSocket.o amuled-SharedFileList.o amuled-sockets.o amuled-timer.o amuled-UDPSocket.o amuled-UploadClient.o amuled-UploadQueue.o amuled-amuled.o amuled-CryptoPP.o -L/usr/local/lib -pthread -L/usr/X11R6/lib -lwx_base-2.5 -lwx_base_net-2.5 -lwx_base-2.5 -lz -L/usr/lib -lcurl -L/usr/ssl/lib -lz -lssl -lcrypto -ldl
amuled-Preferences.o(.gnu.linkonce.r._ZTV18wxCheckListBoxBase+0x8):/usr/include/g++/bits/stl_tree.h:640: undefined reference to `wxListBox::GetClassInfo() const'
amuled-Preferences.o(.gnu.linkonce.r._ZTV18wxCheckListBoxBase+0x24):/usr/include/g++/bits/stl_tree.h:278: undefined reference to `wxWindowBase::TryValidator(wxEvent&)'
amuled-Preferences

...

hundreds of those... more than hundreds.. well, lots of.

...

amuled-Preferences.o(.gnu.linkonce.r._ZTV18wxCheckListBoxBase+0x2b8):/usr/include/g++/bits/stl_tree.h:457: undefined reference to `non-virtual thunk [nv:-340] to wxListBox::DoAppend(wxString const&)'
amuled-Preferences.o(.gnu.linkonce.r._ZTV18wxCheckListBoxBase+0x2bc):/usr/include/g++/bits/stl_tree.h:457: undefined reference to `non-virtual thunk [nv:-340] to wxListBoxBase::DoInsert(wxString const&, int)'
amuled-Preferences.o(.gnu.linkonce.r._ZTV18wxCheckListBoxBase+0x2c0):/home/muellert/downloads/aMule-2.0.0rc6/src/Preferences.cpp:885: undefined reference to `non-virtual thunk [nv:-340] to wxListBox::DoSetItemClientData(int, void*)'
amuled-Preferences.o(.gnu.linkonce.r._ZTV18wxCheckListBoxBase+0x2c4):/usr/include/g++/bits/stl_tree.h:465: undefined reference to `non-virtual thunk [nv:-340] to wxListBox::DoGetItemClientData(int) const'
amuled-Preferences.o(.gnu.linkonce.r._ZTV18wxCheckListBoxBase+0x2c8):/home/muellert/downloads/aMule-2.0.0rc6/src/Preferences.cpp:886: undefined reference to `non-virtual thunk [nv:-340] to wxListBox::DoSetItemClientObject(int, wxClientData*)'
amuled-Preferences.o(.gnu.linkonce.r._ZTV18wxCheckListBoxBase+0x2cc):/usr/include/g++/bits/stl_tree.h:467: undefined reference to `non-virtual thunk [nv:-340] to wxListBox::DoGetItemClientObject(int) const'
amuled-Preferences.o(.gnu.linkonce.r._ZTI18wxCheckListBoxBase+0x8):/usr/include/g++/bits/stl_tree.h:640: undefined reference to `typeinfo for wxListBox'
amuled-Preferences.o(.gnu.linkonce.t._ZN18wxCheckListBoxBaseD0Ev+0x1c): In function `wxCheckListBoxBase::~wxCheckListBoxBase [in-charge deleting]()':
/usr/include/g++/bits/stl_tree.h:382: undefined reference to `wxListBox::~wxListBox [not-in-charge]()'
amuled-Preferences.o(.gnu.linkonce.t._ZN18wxCheckListBoxBaseD1Ev+0x1b): In function `wxCheckListBoxBase::~wxCheckListBoxBase [in-charge]()':
/usr/include/g++/bits/stl_tree.h:274: undefined reference to `wxListBox::~wxListBox [not-in-charge]()'
collect2: ld returned 1 exit status
make[4]: *** [amuled] Fehler 1
make[4]: Leaving directory `/home/muellert/downloads/aMule-2.0.0rc6/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/muellert/downloads/aMule-2.0.0rc6/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/muellert/downloads/aMule-2.0.0rc6/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/muellert/downloads/aMule-2.0.0rc6'
make: *** [all] Fehler 2



Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: how to use daemon/gui
« Reply #12 on: October 06, 2004, 10:21:39 AM »

ok...

try to use current CVS, this fix should be in there...like I said the crypto++ error dont matter, but your compile error, should be fixed in current CVS,

since phoenix found a bug there yesterday

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."