2
(1) Read the README file.
3
(also read the JUKEBOX file if you wanna compile a player
4
for the sajber jukebox)
6
(2) Type "make" to see a list of supported hardware platforms
7
and operating systems, then type the make command that
10
(3) If compilation was successful, type "make install" to
11
install the binary and the manual page in /usr/local.
15
Some additional remarks:
1
There are now two basic ways to get your mpg123 installation consisting of
3
a) the mpg123 binary file
6
(you may want to copy some of the documentation - README, etc - to /usr/share/doc/mpg123 or the like, too)
13
- a C compiler; we try to keep the code ANSI C89 compatible
14
gcc from 2.95 on should work, others, too - please report any issues
18
- working assembler (recent GNU binutils) if using certain CPU optimizations
20
- headers and lib for certain audio output drivers (libasound for alsa, sdl for sdl...)
23
1. New installation via GNU autotools
25
The GNU 3-step procedure:
35
for a list of possible parameters you can specify. The obvious are --prefix and the normal GNU autotool bunch, but others include what audio subsystem to use and what CPU optimizations to build in.
36
In future we may have a merged build for the i386 platform including MMX, SSE, 3DNow!, etc. optimizations and choosing at runtime, but for now that's a build time decision.
38
Other important choices include --enable-gapless for enabling mpg123 to skip encoder/decoder padding for seamless transition between tracks and --with-seektable=<number> for setting the size for the table of stored frame addresses to make seeking faster. When you want a minimal memory footprint, you can set number to 0. Seeking will always start from the beginning, then - being accurate, but rather slow, what doesn't matter if you don't use interactive seeking forth and back.
40
2. The classic way via the provided Makefile
42
This is basically the known mpg123 Makefile with some mods and additions.
43
for coexistence with the autotools setup, a wrapper script for generating a fake config.h is needed.
44
You may want to edit that one in src/config.h and run make -f src/Makefile.legacy yourself, but normally run
48
to get a list of targets and simply
50
./MakeLegacy.sh <target>
52
to build. You may want to have some CFLAGS defined; these are used now in the Makefile.
54
./MakeLegacy.sh install
56
will install the binary and man page to the dirs specified by these make variables (with default values):
62
So, if you want it in /usr; just run
64
./MakeLegacy.sh PREFIX=/usr install
67
Please note that the Makefile does not contain any CFLAGS or explicit `strip` calls anymore; mpg123 will be built and installed with debugging symbols - so if you want to conserve some space, please specify the -s in CFLAGS or strip the binary yourself.
73
These are some remarks from Michael that are likely to be still valid in essence:
17
75
- There is currently no direct audio hardware support for the
18
76
"dec" and "generic" targets. That means that you have to use