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] 3

Author Topic: porting amule to arm architecture  (Read 21869 times)

Josef K.

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: porting amule to arm architecture
« Reply #15 on: April 07, 2008, 08:43:05 PM »

I'm trying to compile it on a mybook world edition (ARM9)
I succesfully compiled libpng, libgd, wxwidget and binutils
then I tried to compile amule --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --disable-backtrace --disable-debug --enable-optimise
but got this error

Code: [Select]
MuleDebug.cpp:36:23: execinfo.h: No such file or directory
MuleDebug.cpp: In function `wxString get_backtrace(unsigned int)':
MuleDebug.cpp:291: error: `backtrace' undeclared (first use this function)
MuleDebug.cpp:291: error: (Each undeclared identifier is reported only once for each function it appears in.)
MuleDebug.cpp:296: error: `backtrace_symbols' undeclared (first use this function)
make[4]: *** [libmulecommon_a-MuleDebug.o] Error 1
make[4]: Leaving directory `/opt/aMule-2.1.3/src/libs/common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/aMule-2.1.3/src/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/aMule-2.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/aMule-2.1.3'
make: *** [all] Error 2

any idea how could I fix it?
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: porting amule to arm architecture
« Reply #16 on: April 07, 2008, 08:50:15 PM »

Grab the latest SVN version of amule. This bug is already fixed.
Logged
concordia cum veritate

Josef K.

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: porting amule to arm architecture
« Reply #17 on: April 08, 2008, 10:04:53 PM »

TKS a lot :)
but now I got another problem
new amule versions require crypto libraries, so I'm trying to compile it but the system go in loop every time it arrive at making dll.cpp :(
is there anything that could I remove\modify in crypto package that would fix it and still let me install amule?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: porting amule to arm architecture
« Reply #18 on: April 09, 2008, 01:25:24 AM »

Please post the error message here, maybe we can help you to fix the problem.
Logged

Josef K.

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: porting amule to arm architecture
« Reply #19 on: April 09, 2008, 09:33:36 AM »

compiling amuled
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --disable-backtrace --disable-debug --enable-optimi
I got this

Code: [Select]
checking for gdlib-config... no
configure:
        WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
        Please check that gdlib-config is in your default path, check out
        LD_LIBRARY_PATH or equivalent variable.
        Or this might also be that your gdlib-config has other name.
        Please try again with --with-gdlib-config=/usr/bin/gdlib-config
        (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
        If you use compiled packages check if you have devel pack installed.
        To download the latest version check http://www.boutell.com/gd
        for sources.

but since it's releated to graphics on the nas and I'll use just daemon&webui I guess it won't be a problem

but I also got this

Code: [Select]
checking for crypto++ version >= 5.1... configure: error:
        Could not find cryptopp header file "cryptlib.h".
        Please check if the path "/usr" is valid.

so, as suggested in the wiki, I've downloaded cryptopp552.zip

then I tryed to compile (make) it

I don't get specific error during making but simply there're a lot of files (like dll.*, fipstest.*) that loop the system (I've left the nas compiling for almost a day and it was still working on those file)
since crypto++ package seems to me modular I wonder if I could remove some unneeded files from cryptopp (not used in amuled) before compiling crypto, or if I can compile amule without crypto...
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: porting amule to arm architecture
« Reply #20 on: April 09, 2008, 09:45:00 AM »

Did you extract it using "unzip -a cryptopp552.zip"? Which version of (GNU) make do you use?

gd lib is used by amuleweb for image creation, so it's recommendable to install it.
Logged

Josef K.

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: porting amule to arm architecture
« Reply #21 on: April 09, 2008, 06:34:56 PM »

Did you extract it using "unzip -a cryptopp552.zip"?

yes

Quote
Which version of (GNU) make do you use?

just upgraded to 3.81-1 (just in case)

Quote
gd lib is used by amuleweb for image creation, so it's recommendable to install it.

I've installed it (2.0.33) but got the same error

Code: [Select]
        WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
        Please check that gdlib-config is in your default path, check out
        LD_LIBRARY_PATH or equivalent variable.
        Or this might also be that your gdlib-config has other name.
        Please try again with --with-gdlib-config=/usr/bin/gdlib-config
        (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
        If you use compiled packages check if you have devel pack installed.
        To download the latest version check http://www.boutell.com/gd
        for sources.

how about crypto?
« Last Edit: April 09, 2008, 06:39:23 PM by Josef K. »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: porting amule to arm architecture
« Reply #22 on: April 09, 2008, 07:03:28 PM »

I'm out of ideas regarding cryptopp. I've tried it on several (x86 based) operating systems and I could always get it to work or at least got a decent error message. A loop should only happen with a badly written makefile, but I couldn't find anything which could cause this.

Regarding gd: Is there some kind of gd-devel package for your distribution?
Logged

Josef K.

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: porting amule to arm architecture
« Reply #23 on: April 09, 2008, 07:31:33 PM »

it's an embedded linux inside a mybook world edition (it use optware)
but I've already compiled the tarball so I wonder what's missing (or why amule don't recognize the path)
about crypto I'm trying simply remove from the compiling directory files that make the system loop and hope it will work
of course if anybody could provide me an already compiled (ARM9) ipk, it will really make my day ^_^

BTW
Code: [Select]
ls -l /usr/local/bin/wx*

lrwxrwxrwx 1 root root 49 Apr  7 21:14 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/base-unicode-release-2.8
« Last Edit: April 10, 2008, 10:59:04 PM by Josef K. »
Logged

Josef K.

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: porting amule to arm architecture
« Reply #24 on: April 10, 2008, 10:29:49 PM »

it definetly seems amule don't like my nas :(
since I can't find a way to install crypto++ I kept searching for an ARM compiled package, and today I found it here:http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/
it's an old version, but old is better than nothing  ::)
so I installed it, installation went smootly, and I started amuled
Code: [Select]
-bash: /opt/bin/amuled: No such file or directoryand of course amuled is already in opt/bin  ???
I wonder if I'll eventually find a way to install amule  :'(
Logged

lfroen

  • Guest
Re: porting amule to arm architecture
« Reply #25 on: April 11, 2008, 07:00:55 PM »

The only way to install amule on uncommon hardware (like yours) is to find a way to compile it yourself. There's plenty of info about setting up cross-compiling environment for ARM. Debian have all packages already precompiled (emdebian project).
FYI: on NSLU optware packages are broken.
Logged

Josef K.

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: porting amule to arm architecture
« Reply #26 on: April 25, 2008, 11:17:35 AM »

since crypto++ can't be compiled for my ARM nas (mybook)
Code: [Select]
g++ -DNDEBUG -g -O2 -pipe -c validat2.cpp
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [validat2.o] Error 1
{standard input}: Assembler messages:
{standard input}:263363: Warning: end of file not at end of a line; newline inse                                             rted
{standard input}:263479: Error: unknown pseudo-op: `.lbe27175'

unless there's out there an amuled version that can be compiled without crypto++ (like it used to be)

I guess I should give up with amuled  :'(
Logged

lfroen

  • Guest
Re: porting amule to arm architecture
« Reply #27 on: April 25, 2008, 12:45:37 PM »

Quote
unless there's out there an amuled version that can be compiled without crypto++ (like it used to be)

The problem is that your NAS doesn't have enough memory to compile cryptopp. You have to setup cross-compiling environment. Didn't I say it already?! Go to www.emdebian.org for istructions
Logged

Connor32

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: porting amule to arm architecture
« Reply #28 on: June 23, 2008, 11:16:25 PM »

Hi all,

I have a Buffalo linkstation live NAS (arm9 processor) and I installed freelink (debian) on it.
I upgraded to debian unstable (sid).
I was able to compile wxwidgets 2.8.7 ( --no-gui option, and --enable-unicode) and I was also able to compile amuled 2.2.1 (./configure --disable-monolithic --enable-amule-daemon --disable-upnp).
As soon as I start amuled I get a segmentation fault.
The compilation has been done natively on the NAS. I have been using amule 2.1.3 on the same NAS but I would like to get the benefits of the new version.
Any help/ideas?

Thanks!


C.
Logged

Connor32

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: porting amule to arm architecture
« Reply #29 on: June 24, 2008, 09:11:09 AM »

That's weird.

Now I get problems also with the 2.1.3, recompiled after the dist-upgrade:

Code: [Select]
Current version is: aMuled 2.1.3 AdunanzA using wxGTK2 v2.6.3 (Unicoded)
Running on: Linux 2.6.12.6-arm1 armv5tejl


[2] CamuleApp::OnFatalException() in amule.cpp:1195
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.6.so.0[0x401a61c8]
[4] wxMsgCatalogFile::FillHash(wxMessagesHash&, wxString const&, bool) const in /usr/lib/libwx_baseu-2.6.so.0[0x40130c94]
[5] wxMsgCatalog::Load(wchar_t const*, wchar_t const*, wchar_t const*, bool) in  /usr/lib/libwx_baseu-2.6.so.0[0x40133020]
[6] wxLocale::AddCatalog(wchar_t const*, wxLanguage, wchar_t const*) in /usr/lib/libwx_baseu-2.6.so.0[0x40133208]
[7] wxLocale::AddCatalog(wchar_t const*) in /usr/lib/libwx_baseu-2.6.so.0[0x40133584]
[8] CamuleApp::Localize_mule() in amule.cpp:1204
[9] CamuleApp::OnInit() in amule.cpp:623
[10] wxDateTime::Format(wchar_t const*, wxDateTime::TimeZone const&) const in amuled.cpp:469
[11] wxAppConsole::CallOnInit() in app.h:87
[12] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.6.so.0[0x401275ac]
[13] main in amuled.cpp:132
[14] __libc_start_main in /lib/libc.so.6[0x4038506c]
Logged
Pages: 1 [2] 3