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 21848 times)

AlphaC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
porting amule to arm architecture
« on: February 09, 2008, 09:06:47 PM »

hello, I'm going to try porting amuled and amuleweb to arm architecture (for a network appliance) using http://www.scratchbox.org, I would like to know from any developer if they know about any caveats and if there is any documentation for the sources, I've downloaded the sources tar, is there a way to strip out amuled and amuleweb sources  from the main amule  package?

thanks!
alphac
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: porting amule to arm architecture
« Reply #1 on: February 09, 2008, 09:27:57 PM »

Rule of thumb: If wxwidgets work, then aMule should, too.

AMule runs at least on x86, x86_64, PowerPC and Sparc. I'm not aware of any particularities of ARM which wouldn't make it run on ARM, too.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: porting amule to arm architecture
« Reply #2 on: February 10, 2008, 02:30:53 AM »

It  works on ARM, unless anything was broken after I retired.
Logged

AlphaC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: porting amule to arm architecture
« Reply #3 on: February 10, 2008, 04:23:32 AM »

so does already exist an arm version? Anybody has the sources so I can get an idea about the differences?
Isn't wxwidgets only for gui? I just need amuled and amuleweb the machine on wich they will run is headless.

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: porting amule to arm architecture
« Reply #4 on: February 10, 2008, 10:46:32 AM »

There's no special ARM version - the sources you've already downloaded work on ARM, too. (Unless something broke, of course) You should however use the current developmental version (amule.hirnriss.net).

You need wxBase (contains among others filesystem or networking functions) if you run both on a headless machine.
Please be aware that the wxBase tarball is a bit tricky to compile IIRC, it's easier to download wxAll and compile it with the --disable-gui option.
Logged

lfroen

  • Guest
Re: porting amule to arm architecture
« Reply #5 on: February 10, 2008, 10:22:19 PM »

It  works on ARM, unless anything was broken after I retired.

Wrong. It does not work and it never did. I thought the same before buying NSLU2 (arm based NAS box). Result - broken compiler produce junk on floating point operations, which amule is full of.
So, theoretically it compiles. In practice result is not usable.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: porting amule to arm architecture
« Reply #6 on: February 10, 2008, 10:54:29 PM »

Uh... lfroen, stop acting dumb, please. Lot of people have used aMule with NSLU2 along the years. We even had people creating binaries specifically for it. Use the search function.

If something is broken now, it must be fixed. If the compiler is broken, updates to the compiler or cross-compilation are in order. But aMule does work perfectly on ARM CPUs.

« Last Edit: February 11, 2008, 09:12:23 AM by Kry »
Logged

Ramiro

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 71
Re: porting amule to arm architecture
« Reply #7 on: February 10, 2008, 11:45:24 PM »

I've been using amule on the NSLU2 for years. Now that Debian works flawlessly on the slug I've installed amule from the official Debian repositories and it works fine, of course.
Logged

AlphaC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: porting amule to arm architecture
« Reply #8 on: February 12, 2008, 01:56:22 AM »

that's interesting cause I'd like to compile it (and eventually port it) for nas4220 http://en.nas-4220.org/
maybe someone already did some work...
however, I'll give a try this weekend.
Logged

AlphaC

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: porting amule to arm architecture
« Reply #9 on: February 21, 2008, 11:40:12 PM »

ok, before trying to reinvent the wheel again I wanted to copy debian amuled arm binaries on my nas, first I tried with a simple package "wget" + dependencies and everything worked ok. Now I've got some problems, I copied all dependencies and libraries on the nas, but when I run amuled I get this message:
/mnt/md1/apps/usr/bin/amuled: error while loading shared libraries: libstdc++.so.6: cannot handle TLS data

does arm arch support TLS??
Logged

lfroen

  • Guest
Re: porting amule to arm architecture
« Reply #10 on: February 22, 2008, 11:44:11 AM »

Uh... lfroen, stop acting dumb, please. Lot of people have used aMule with NSLU2 along the years. We even had people creating binaries specifically for it. Use the search function.
My mistake. It looks like it actually works on NSLU, but only on full-blown debian, not on Unslug.
Logged

lfroen

  • Guest
Re: porting amule to arm architecture
« Reply #11 on: February 22, 2008, 11:46:20 AM »

/mnt/md1/apps/usr/bin/amuled: error while loading shared libraries: libstdc++.so.6: cannot handle TLS data

does arm arch support TLS??

TLS is operating system concept, not hardware feature. IMHO - try to compile plain "hello world, c++" on your system. If it works, try again, now with WX. After both work, compile amuled.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: porting amule to arm architecture
« Reply #12 on: February 22, 2008, 12:08:49 PM »

My mistake. It looks like it actually works on NSLU, but only on full-blown debian, not on Unslug.

Ramiro was compiling it on Unslug before debian, iirc.
Logged

lfroen

  • Guest
Re: porting amule to arm architecture
« Reply #13 on: February 22, 2008, 06:56:43 PM »

Quote from: Kry link=topic=14411.msg76576#msg76576 date=12036785
Ramiro was compiling it on Unslug before debian, iirc.
[/quote
Nop (checked with Ramiro).
Logged

Ramiro

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 71
Re: porting amule to arm architecture
« Reply #14 on: February 28, 2008, 12:11:56 AM »

It was on OpenSlug. Both OpenSlug and Unslug run the processor in big endian mode, but Unslug is basically the original firmware, with a very old kernel and libc.
Logged
Pages: [1] 2 3