Project

General

Profile

How to get Adlib files playing on Linux build?

Added by Domarius Forge almost 4 years ago

I'm in Manjaro KDE and it has Audacious 4.0.3-1 available in its repository (Add Remove Programs app)

I have never had it play any of my Adlib files. I have .CMF, .ADL, .SNG, .LDS etc. etc.

When trying to play them, Audacious pops up multiple windows saying "Unrecognised file format."

What is required for them to play? I've installed "adplug" from the Applications Manager app but it hasn't helped. Perhaps it downloaded in a way that doesn't connect it with Audacious.


Replies (12)

RE: How to get Adlib files playing on Linux build? - Added by John Lindgren almost 4 years ago

If Manjaro is just shipping the Arch Linux package, then it's not built with adplug support because adplug is an AUR package.

RE: How to get Adlib files playing on Linux build? - Added by Domarius Forge almost 4 years ago

Thanks John :) So is my only option to re-build?

RE: How to get Adlib files playing on Linux build? - Added by Michael Schwendt almost 4 years ago

Well, you could build just the adplug plugin from the audacious-plugins package and add it to your installation.

RE: How to get Adlib files playing on Linux build? - Added by Domarius Forge almost 4 years ago

Thanks. You may have to bear with me, I'm still learning about this stuff (the things I will do to listen to my FM tunes). I have the "audacious-plugins" package installed, aren't those files already complied? I can get a list of installed files and I don't see anything about adplug in there. https://i.imgur.com/uW4QIb3.png

But I downloaded adplug from sourceforge https://sourceforge.net/projects/adplug/files/AdPlug%20core%20library/2.2.1/
I've done ./configure and make, and I get this compile error;

mv -f .deps/adplugdb.Tpo .deps/adplugdb.Po
/bin/sh ../libtool  --tag=CXX   --mode=link g++  -g -O2 ../src/.libs/libadplug.la -lbinio    -o adplugdb adplugdb.o  -lstdc++ 
libtool: link: g++ -g -O2 -o .libs/adplugdb adplugdb.o  ../src/.libs/libadplug.so -lbinio -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
/usr/bin/ld: ../src/.libs/libadplug.so: undefined reference to `OPL_CALC_RH'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:411: adplugdb] Error 1
make[1]: Leaving directory '/home/domarius/Desktop/adplug-2.2.1/adplugdb'
make: *** [Makefile:441: check-recursive] Error 1

RE: How to get Adlib files playing on Linux build? - Added by Thomas Lange almost 4 years ago

Please don't do these steps manually, without making use of pacman / makepkg.
Install AdLib from the AUR, then recompile audacious-plugins with ABS.

See https://wiki.archlinux.org/index.php/Arch_Build_System for more details.

RE: How to get Adlib files playing on Linux build? - Added by Domarius Forge almost 4 years ago

Thank you Thomas. I'm sure that link contains everything one needs to know about it, but I think there might be a lot of assumed knowledge. I'm fairly lost. Am I supposed to check out something from SVN to achieve this?

The screenshot linked here, is this what you mean by the AUR? Does it seem I have the right packages installed? There are a few called "audacious-plugins"

Hopefully there's just a simple command to run to rebuild audacious-plugins...

RE: How to get Adlib files playing on Linux build? - Added by Michael Schwendt almost 4 years ago

Generally, whatever Linux distribution you choose to use, if you want to modify (and rebuild) existing packages, your distribution choice ought to take into account whether you like the distribution's packaging system and related tools. For convenience reasons, you would reuse existing packages and modify them rather than building stuff from upstream source tarballs. There will be a bit of a learning curve, of course.

As a last resort you could download the official audacious-plugins source archive from the Audacious website, go through the configure process and then compile'n'install only the adplug plugin. For the build requirements, prefer existing distribution packages rather than building too many things yourself. Because, if you do it for the first time, it won't be trivial, and simple decisions like choosing /usr/local rather than /usr can lead to things going wrong already.

RE: How to get Adlib files playing on Linux build? - Added by Domarius Forge almost 4 years ago

Thanks again Michael. OK so it seems to me this has become more of a Manjaro Linux question now, which I can take to their forums.

To see if I've got this right; the Audacious package and the adplug package are both available, but I need to re-build the adplug package into Audacious...? It's not as simple as dropping a shared object file into the Audacious plugin folder?

RE: How to get Adlib files playing on Linux build? - Added by Thomas Lange almost 4 years ago

The package "audacious" and "audacious-plugins" are included in the Arch repositories and are hence officially supported.
The package "adplug" is only available in the community-driven AUR [1] and is hence unsupported, use it at your own risk.

Your package manager obviously does not differ between this, which is not reasonable in my opinion.
Users without deeper knowledge may break their systems and then blame the distribution for it.

Anyway, since you already have installed adplug, you now "only" need to recompile audacious-plugins.
To do this manually without ABS, fetch the PKGBUILD from [2], make sure the package group "base-devel" is installed
and then run "makepkg -si" [3] in the directory where the PKGBUILD file is located.
Make sure the Audacious versions match (Arch is already at 4.0.4, Manjaro still at 4.0.3?).
If the package gets updated, you have to repeat this process.

Again, read the wiki (the Arch one is great) and ask in the Manjaro forum for help - as you suggested.
Good luck.

[1] https://wiki.archlinux.org/index.php/Arch_User_Repository
[2] https://git.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/audacious-plugins
[3] https://wiki.archlinux.org/index.php/Makepkg#Usage

RE: How to get Adlib files playing on Linux build? - Added by Domarius Forge almost 4 years ago

Thanks again Thomas :) Really glad there is an Arch Linux familiar person here to help.

Manjaro does seem to differentiate but it's not obvious if you don't know what the different repositories are; a little icon (visible in the screenshots) a green Arch icon for "Arch repositories", and a blue one for "AUR", which you get from the mouseover.

Hahah, looks like that version difference is the first problem right away. After I ran "makepkg -si" I got "Missing dependencies - audacious 4.0.4" and it stopped.

Well it's definitely a Manjaro question now so I will go and post there. Thanks for your patience.

RE: How to get Adlib files playing on Linux build? - Added by Domarius Forge almost 4 years ago

Anikin Pod racer gif "It's working! It's working!!"

That did it :) I'm so glad, haha. I've documented what I've learned so far, I consider it an Arch / Manjaro learning experience.

This was really appreciated, thanks for sharing your knowledge.

Now I can get back to programming to the tunes of Commander Keen and Tyrian (and of course, plenty of other FM tunes in that folder that I can't track down recordings of on YouTube nor want to spend the storage space on MP3 versions of).

    (1-12/12)