Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » How do I get minimp3 so I can compile it into allegro

This thread is locked; no one can reply to it. rss feed Print
How do I get minimp3 so I can compile it into allegro
Michael Weiss
Member #223
April 2000

In version 5.2.6 change log:

Acodec addon:

Add MP3 support via the MiniMP3 library.

When I try to compile allegro from source, minimp3 is not found.

I followed SiegeLord's instructions here:

https://github.com/liballeg/allegro_wiki/wiki/Install-Allegro-from-source-on-Ubuntu

and installed this list of dependencies:

sudo apt install git cmake build-essential

Install various dependencies.

sudo apt install libdumb1-dev \
libflac-dev \
libfreetype6-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libgtk-3-dev \
libjpeg-dev \
libopenal-dev \
libphysfs-dev \
libpng-dev \
libpulse-dev \
libtheora-dev \
libvorbis-dev \
libwebp-dev \
libxext-dev \
libxxf86vm-dev \
libxrandr-dev \
libxinerama-dev \
libxpm-dev \
libopusfile-dev

But I don't think minimp3 is there.

when I run ccmake and select WANT_MP3

Could NOT find MiniMP3 (missing: MINIMP3_INCLUDE_DIRS)
WARNING: minimp3 was not found

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

SiegeLord
Member #7,827
October 2006
avatar

In your build directory, make a directory deps/include. And inside that directory, put minimp3.h and minimp3_ex.h from https://github.com/lieff/minimp3

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Michael Weiss
Member #223
April 2000

Thank you.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

SiegeLord
Member #7,827
October 2006
avatar

minimp3 is header only, so no shared libraries. The headers are included in the deps package though, yes.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Go to: