libsdl-org / SDL_mixer

An audio mixer that supports various file formats for Simple Directmedia Layer.
zlib License
434 stars 146 forks source link

SDL-mixer depends on old version of mpg123 #340

Closed LilyWangLL closed 3 years ago

LilyWangLL commented 3 years ago

The latest version of mpg123 is 1.29.2, but SDL-mixer depends on mpg123 1.25.6. If use latest mpg123 to install SDL-mixer, SDL-mixer[mpg123] will build failed with error as below. Could update SDL-mixer to support latest mpg123?

music_mpg123.c(52): error C2143: syntax error: missing ')' before '('
music_mpg123.c(52): error C2081: 'ssize_t': name in formal parameter list illegal
music_mpg123.c(52): error C2143: syntax error: missing ')' before '*'
music_mpg123.c(52): error C2091: function returns function
music_mpg123.c(52): error C2143: syntax error: missing ';' before '*'
music_mpg123.c(52): error C2059: syntax error: '*'
music_mpg123.c(52): error C2059: syntax error: ')'
music_mpg123.c(53): error C2365: 'mpg123_seek': redefinition; previous definition was 'function'
: see declaration of 'mpg123_seek'
music_mpg123.c(54): error C2365: 'mpg123_strerror': redefinition; previous definition was 'function'
: see declaration of 'mpg123_strerror'
music_mpg123.c(55): error C2059: syntax error: '}'
music_mpg123.c(57): error C2061: syntax error: identifier 'mpg123'
music_mpg123.c(57): error C2059: syntax error: ';'
music_mpg123.c(57): error C2513: ' ': no variable declared before '='
music_mpg123.c(72): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(72): error C2224: left of '.loaded' must have struct/union type
music_mpg123.c(87): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(87): error C2224: left of '.mpg123_close' must have struct/union type
music_mpg123.c(88): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(88): error C2224: left of '.mpg123_delete' must have struct/union type
music_mpg123.c(89): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(89): error C2224: left of '.mpg123_exit' must have struct/union type
music_mpg123.c(90): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(90): error C2224: left of '.mpg123_format' must have struct/union type
music_mpg123.c(91): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(91): error C2224: left of '.mpg123_format_none' must have struct/union type
music_mpg123.c(92): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(92): error C2224: left of '.mpg123_getformat' must have struct/union type
music_mpg123.c(93): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(93): error C2224: left of '.mpg123_init' must have struct/union type
music_mpg123.c(94): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(94): error C2224: left of '.mpg123_new' must have struct/union type
music_mpg123.c(95): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(95): error C2224: left of '.mpg123_open_handle' must have struct/union type
music_mpg123.c(96): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(96): error C2224: left of '.mpg123_plain_strerror' must have struct/union type
music_mpg123.c(97): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(97): error C2224: left of '.mpg123_rates' must have struct/union type
music_mpg123.c(98): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(98): error C2224: left of '.mpg123_read' must have struct/union type
music_mpg123.c(99): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(99): error C2224: left of '.mpg123_replace_reader_handle' must have struct/union type
music_mpg123.c(100): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(100): error C2224: left of '.mpg123_seek' must have struct/union type
music_mpg123.c(101): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(101): error C2224: left of '.mpg123_strerror' must have struct/union type
music_mpg123.c(103): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(103): error C2224: left of '.loaded' must have struct/union type
music_mpg123.c(110): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(110): error C2224: left of '.loaded' must have struct/union type
music_mpg123.c(113): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(113): error C2224: left of '.loaded' must have struct/union type
music_mpg123.c(118): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(118): error C2224: left of '.loaded' must have struct/union type
music_mpg123.c(176): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(176): error C2224: left of '.mpg123_strerror' must have struct/union type
music_mpg123.c(178): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(178): error C2224: left of '.mpg123_plain_strerror' must have struct/union type
music_mpg123.c(184): error C2061: syntax error: identifier 'rwops_read'
music_mpg123.c(184): error C2059: syntax error: ';'
music_mpg123.c(184): error C2059: syntax error: '<parameter-list>'
music_mpg123.c(203): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(203): error C2224: left of '.mpg123_init' must have struct/union type
music_mpg123.c(233): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(233): error C2224: left of '.mpg123_new' must have struct/union type
music_mpg123.c(240): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(240): error C2224: left of '.mpg123_replace_reader_handle' must have struct/union type
music_mpg123.c(242): error C2065: 'rwops_read': undeclared identifier
music_mpg123.c(250): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(250): error C2224: left of '.mpg123_format_none' must have struct/union type
music_mpg123.c(257): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(257): error C2224: left of '.mpg123_rates' must have struct/union type
music_mpg123.c(267): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(267): error C2224: left of '.mpg123_format' must have struct/union type
music_mpg123.c(270): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(270): error C2224: left of '.mpg123_open_handle' must have struct/union type
music_mpg123.c(316): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(316): error C2224: left of '.mpg123_read' must have struct/union type
music_mpg123.c(325): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(325): error C2224: left of '.mpg123_getformat' must have struct/union type
music_mpg123.c(373): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(373): error C2224: left of '.mpg123_seek' must have struct/union type
music_mpg123.c(384): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(384): error C2224: left of '.mpg123_close' must have struct/union type
music_mpg123.c(385): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(385): error C2224: left of '.mpg123_delete' must have struct/union type
music_mpg123.c(401): error C2065: 'mpg123': undeclared identifier
music_mpg123.c(401): error C2224: left of '.mpg123_exit' must have struct/union type

install-x86-windows-dbg-out.log

sezero commented 3 years ago

https://github.com/libsdl-org/SDL_mixer/commit/ff4eac94b48c111b31ca124e2cbb4577fef72bd8 should fix it.