aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: Howto Compile aMule SVN to Debian 8.5 Arch64  (Read 2152 times)

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 163
  • Offline Offline
  • Posts: 2688
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #15 on: September 30, 2016, 12:04:23 PM »

thanks GonoszTopi for your help.

You're welcome.

For wxWidget does I need to use libraries in aarch64 folder?

I'd suggest you to remove the system wxWidgets libraries ("sudo apt-get remove wxwidgets" or something like that), and use the library you compiled (in /usr/local/).
Logged
concordia cum veritate

klode82

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #16 on: October 03, 2016, 05:00:21 PM »

For now, I'm working on recompile the last rev (10964) and I'm trying to compile with suggestions of GonoszTopi (about crypto++ and wxWidgets).
Logged

klode82

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #17 on: October 03, 2016, 06:40:26 PM »

Sorry, but I've got the same issue... After 2-3 mins during execution of amule, the memory leaks to 100%, and the application crashes... This is the last log:

Code: [Select]

debian@pine64:~$ amule
 2016-10-03 18:06:31: Initialising aMule SVN compiled with wxGTK2 v3.0.2 (Snapshot: rev. 10964)
 2016-10-03 18:06:31: Checking if there is an instance already running...
 2016-10-03 18:06:31: No other instances are running.
06:06:31 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
 2016-10-03 18:06:32: ListenSocket: Ok.
 2016-10-03 18:06:34: Loading temp files from /media/debian/PINESTORE/EMULE_TEMP.
 2016-10-03 18:06:34: Loading PartFile 1 of 16
 2016-10-03 18:06:35: Loading PartFile 2 of 16
 2016-10-03 18:06:35: Loading PartFile 3 of 16
 2016-10-03 18:06:35: Loading PartFile 4 of 16
 2016-10-03 18:06:35: Loading PartFile 5 of 16
 2016-10-03 18:06:35: Loading PartFile 6 of 16
 2016-10-03 18:06:35: Loading PartFile 7 of 16
 2016-10-03 18:06:35: Loading PartFile 8 of 16
 2016-10-03 18:06:35: Loading PartFile 9 of 16
 2016-10-03 18:06:35: Loading PartFile 10 of 16
 2016-10-03 18:06:35: Loading PartFile 11 of 16
 2016-10-03 18:06:35: Loading PartFile 12 of 16
 2016-10-03 18:06:35: Loading PartFile 13 of 16
 2016-10-03 18:06:35: Loading PartFile 14 of 16
 2016-10-03 18:06:35: Loading PartFile 15 of 16
 2016-10-03 18:06:35: Loading PartFile 16 of 16
 2016-10-03 18:06:35: All PartFiles Loaded.
 2016-10-03 18:06:35: Adding file /media/debian/PINESTORE/EMULE_TEMP/001.part.met to shares
 2016-10-03 18:06:35: Adding file /media/debian/PINESTORE/EMULE_TEMP/003.part.met to shares
 2016-10-03 18:06:35: Adding file /media/debian/PINESTORE/EMULE_TEMP/004.part.met to shares
 2016-10-03 18:06:35: Adding file /media/debian/PINESTORE/EMULE_TEMP/010.part.met to shares
 2016-10-03 18:06:35: Adding file /media/debian/PINESTORE/EMULE_TEMP/011.part.met to shares
 2016-10-03 18:06:35: Adding file /media/debian/PINESTORE/EMULE_TEMP/012.part.met to shares
 2016-10-03 18:06:35: Adding file /media/debian/PINESTORE/EMULE_TEMP/015.part.met to shares
 2016-10-03 18:06:35: Adding file /media/debian/PINESTORE/EMULE_TEMP/016.part.met to shares

(amule:25203): GLib-CRITICAL **: Source ID 2084 was not found when attempting to remove it

(amule:25203): GLib-CRITICAL **: Source ID 3893 was not found when attempting to remove it

(amule:25203): GLib-CRITICAL **: Source ID 50882 was not found when attempting to remove it
Killed


Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 163
  • Offline Offline
  • Posts: 2688
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #18 on: October 07, 2016, 09:46:24 PM »

Okay, I'd like you to test aMule compiled with Boost.Asio networking. For that you'll have to install Boost (libasio-dev and probably libboost-system-dev), and configure aMule with the --with-boost flag.
Logged
concordia cum veritate

klode82

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #19 on: October 09, 2016, 03:40:53 PM »

I've compiled the same last rev with --with-boost option.
when I goes to KAD, under Networks, I've got this error:

Code: [Select]
ASSERT INFO:
../src/gtk/dc.cpp(276): assert "cr" failed in wxPaintDCImpl(): using wxPaintDC without being in a native paint event

BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, char const*)
[2] wxNativeDCFactory::CreatePaintDC(wxPaintDC*, wxWindow*)
[3] wxPaintDC::wxPaintDC(wxWindow*)
[4] wxBufferedPaintDC::wxBufferedPaintDC(wxWindow*, int)
[5] COScopeCtrl::OnPaint(wxPaintEvent&)
[6] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[7] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[8] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[9] wxEvtHandler::TryHereOnly(wxEvent&)
[10] wxEvtHandler::ProcessEventLocally(wxEvent&)
[11] wxEvtHandler::ProcessEvent(wxEvent&)
[12] COScopeCtrl::OnTimer(wxTimerEvent&)
[13] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[14] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[15] wxEvtHandler::SearchDynamicEventTable(wxEvent&)
[16] wxEvtHandler::TryHereOnly(wxEvent&)
[17] wxEvtHandler::ProcessEventLocally(wxEvent&)
[18] wxEvtHandler::ProcessEvent(wxEvent&)
[19] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[20] wxTimerImpl::SendEvent()


Maybe this can useful..... I'm waiting right now to the bug event of memory leak.
Logged

klode82

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #20 on: October 09, 2016, 07:57:51 PM »

I've got the same problem... The memory leaks to full, then it crashes.....
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 163
  • Offline Offline
  • Posts: 2688
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #21 on: October 10, 2016, 10:58:33 PM »

using wxPaintDC without being in a native paint event

Yes, we're drawing from a timer event, not from a paint event... I wonder how and why it worked until now... (maybe GTK compiled with debug disabled?)
Logged
concordia cum veritate

klode82

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #22 on: October 12, 2016, 11:03:34 AM »

So... does I need to compile wxWidgets with debug enabled... or amule with debug enabled?...  :o
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 163
  • Offline Offline
  • Posts: 2688
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #23 on: October 12, 2016, 11:52:45 AM »

You can try patching src/OScopeCtrl.cpp, by changing line 525 from #ifndef __WXMAC__ to #if 0
Code: [Select]
diff --git a/src/OScopeCtrl.cpp b/src/OScopeCtrl.cpp
index fd7d842..f7c9c80 100644
--- a/src/OScopeCtrl.cpp
+++ b/src/OScopeCtrl.cpp
@@ -522,7 +522,7 @@ void COScopeCtrl::InvalidateCtrl(bool bInvalidateGraph, bool bInvalidateGrid)
        bRecreateGraph |= bInvalidateGraph;
        bRecreateGrid |= bInvalidateGrid;
        // It appears the timerRedraw logic screws up Mac, disable it there
-#ifndef __WXMAC__
+#if 0
        // To prevent startup problems don't start timer logic until
        // a native OnPaint event has been generated.
        if (m_onPaint) {
Then recompile aMule and try...
Logged
concordia cum veritate

klode82

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #24 on: October 13, 2016, 06:53:20 AM »

Thanks GonoszTopi... You're Awesome!
I'm recompiling right now with the file OScopeCtrl.cpp edited as your suggestion. I've used this command for configure:

Code: [Select]
./configure --with-crypto-prefix=/usr/include/crypto++ --disable-debug --disable-optimize --with-libupnp-prefix=/usr/lib/aarch64-linux-gnu/ --with-gdlib-config=/usr/lib/aarch64-linux-gnu --with-boost

I'll try it asap.


Logged

klode82

  • Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 25
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #25 on: October 13, 2016, 10:15:28 AM »

 ;D
YOU ARE SO AWESOME!!! It seems this works like a Charm!!!

Thanks very many many much more!

One question: how do you have found the right point to modify in the source? I'm a programmer, but not for C++. I'm working on PHP and VB.Net...

Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 163
  • Offline Offline
  • Posts: 2688
Re: Howto Compile aMule SVN to Debian 8.5 Arch64
« Reply #26 on: October 13, 2016, 01:47:25 PM »

One question: how do you have found the right point to modify in the source?

Being familiar with the code helps a lot... 8) However, it's just a hack, not a real fix.
Logged
concordia cum veritate
Pages: 1 [2]