WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: aMule on CLI  (Read 1987 times)

Offline Green_goblin

  • Newbie
  • *
  • Posts: 6
aMule on CLI
« on: November 22, 2023, 07:37:14 AM »
Is it possible to install aMule? I know someone made a package years ago, but it's not available right now...

1. Tinycore
2. Version 14.0
3. 32 bit or 64 bit, I'm not sure
4. https://www.amule.org/

aMule-daemon would be great to use on CLI only.
« Last Edit: November 22, 2023, 07:42:17 AM by Green_goblin »

Offline Green_goblin

  • Newbie
  • *
  • Posts: 6
Re: aMule on CLI
« Reply #1 on: November 27, 2023, 04:29:09 PM »
Anyway, I've got it working finally. Had to convert the .deb file to .tcz, and all the dependencies as well. I'll try to post all the necessary .tcz files later. By the way, it only works with the 64 bit version, tried first with 32 bit version but to no avail.
« Last Edit: November 27, 2023, 04:30:42 PM by Green_goblin »

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 181
Re: aMule on CLI
« Reply #2 on: November 27, 2023, 06:57:50 PM »
i tried to compile it and when i finally did, the program refused to open.

apparently, you need to use a specific version of wxwidgets

Code: [Select]
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1017,wx containers,compatible with 2.8).
Aborted

Worse, according to the manual, wxwidgets is  required to compile without gui (lol)
https://wiki.amule.org/t/index.php?title=HowTo_Compile_aMuled

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11691
Re: aMule on CLI
« Reply #3 on: November 27, 2023, 08:50:35 PM »
Hi CardealRusso
I wonder if adding this to the source code would fix it:
Code: [Select]
#define __GXX_ABI_VERSION 1013Found here:
https://stackoverflow.com/questions/45123664/wxwidgets-runtime-error-mismatch-version



Offline Green_goblin

  • Newbie
  • *
  • Posts: 6
Re: aMule on CLI
« Reply #4 on: November 28, 2023, 04:34:46 AM »
Anyway, I've got it working finally. Had to convert the .deb file to .tcz, and all the dependencies as well. I'll try to post all the necessary .tcz files later. By the way, it only works with the 64 bit version, tried first with 32 bit version but to no avail.

Here you have the main software and all the dependencies:

https://www.mediafire.com/file/utbdzmg5trhfflf/amule-daemon.tar.gz/file

As I said, it only works on a 64 bit machine.

Feel free to add those to the main TC repository. By the way, "lsb-base" is probably not necessary.


Offline CardealRusso

  • Full Member
  • ***
  • Posts: 181
Re: aMule on CLI
« Reply #5 on: November 28, 2023, 06:42:36 AM »

That is definitely not acceptable.

However,
Code: [Select]
#define __GXX_ABI_VERSION 1013
thanks to Rich's tip, I managed to compile the program, using only libraries present in the repository (crypto++ is not present, I need to send it together with amule)

btw i used this
Code: [Select]
find . -type f -name "*.h" -exec sed -i '1i\ #define __GXX_ABI_VERSION 1013 ' {} +Since I didn't know specifically where to put it.


« Last Edit: November 28, 2023, 06:49:31 AM by CardealRusso »

Offline CardealRusso

  • Full Member
  • ***
  • Posts: 181
Re: aMule on CLI
« Reply #6 on: November 28, 2023, 10:30:12 AM »
Done. I hope this works for you.
https://www.mediafire.com/file/puyocawnyusadgs/programs.tar.gz/file

If you cross your fingers, you might be able to run the buildscript on x86.
Also, the deps files were generated automatically, without being recursive. I hope someone can do it or maybe improve the command

Code: [Select]
find . -type f -exec ldd {} \; 2>/dev/null | awk '/\/usr\/local\/lib/ {print $3}' | xargs ls -lah | awk '{print $11}' | awk -F'/' '{print $4 ".tcz"}' | uniq

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11691
Re: aMule on CLI
« Reply #7 on: November 28, 2023, 11:58:59 PM »
Hi CardealRusso
... However,
Code: [Select]
#define __GXX_ABI_VERSION 1013
thanks to Rich's tip, I managed to compile the program, using only libraries present in the repository ...
Glad to hear that worked.

I think entering this before you run  ./configure  should also work:
Code: [Select]
export CXXFLAGS="-fabi-version=13"
« Last Edit: November 29, 2023, 12:03:42 AM by Rich »