Tiny Core Linux

Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: Green_goblin on November 22, 2023, 04:37:14 AM

Title: aMule on CLI
Post by: Green_goblin on November 22, 2023, 04: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.
Title: Re: aMule on CLI
Post by: Green_goblin on November 27, 2023, 01: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.
Title: Re: aMule on CLI
Post by: CardealRusso on November 27, 2023, 03: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
Title: Re: aMule on CLI
Post by: Rich on November 27, 2023, 05: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


Title: Re: aMule on CLI
Post by: Green_goblin on November 28, 2023, 01: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.

(https://i.imgur.com/fp9T6Kt.png)
Title: Re: aMule on CLI
Post by: CardealRusso on November 28, 2023, 03:42:36 AM
(https://i.imgur.com/fp9T6Kt.png)
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.

(https://i.imgur.com/nDtnX0u.png)
(https://i.imgur.com/mLuD365.png)
Title: Re: aMule on CLI
Post by: CardealRusso on November 28, 2023, 07: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
Title: Re: aMule on CLI
Post by: Rich on November 28, 2023, 08: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"