PromyLOPh / pianobar

Console-based pandora.com player
http://6xq.net/pianobar/
Other
1.74k stars 321 forks source link

Compile error in player.c #682

Closed wellsa-usa closed 5 years ago

wellsa-usa commented 5 years ago

Subject of the issue

I downloaded the latest pianobar from github: https://github.com/PromyLOPh/pianobar : (git clone https://github.com/PromyLOPh/pianobar.git). After i run sudo make clean, then make, I get the following error: CC src/main.c CC src/player.c src/player.c: In function ‘BarAoPlayThread’: src/player.c:522:34: warning: implicit declaration of function ‘av_buffersink_get_time_base’ [-Wimplicit-function-declaration] const double timeBase = av_q2d (av_buffersink_get_time_base (player->fbufsink)), ^~~~~~~ src/player.c:522:34: error: incompatible type for argument 1 of ‘av_q2d’ In file included from /usr/include/arm-linux-gnueabihf/libavutil/avutil.h:292:0, from /usr/include/arm-linux-gnueabihf/libavutil/samplefmt.h:24, from /usr/include/arm-linux-gnueabihf/libavcodec/avcodec.h:31, from src/player.c:45: /usr/include/arm-linux-gnueabihf/libavutil/rational.h:104:22: note: expected ‘AVRational {aka struct AVRational}’ but argument is of type ‘int’ static inline double av_q2d(AVRational a){ ^~ Makefile:107: recipe for target 'src/player.o' failed

Your environment

Steps to reproduce

sudo make, make

Expected behaviour

clean compile

Actual behaviour

CC src/main.c CC src/player.c src/player.c: In function ‘BarAoPlayThread’: src/player.c:522:34: warning: implicit declaration of function ‘av_buffersink_get_time_base’ [-Wimplicit-function-declaration] const double timeBase = av_q2d (av_buffersink_get_time_base (player->fbufsink)), ^~~~~~~ src/player.c:522:34: error: incompatible type for argument 1 of ‘av_q2d’ In file included from /usr/include/arm-linux-gnueabihf/libavutil/avutil.h:292:0, from /usr/include/arm-linux-gnueabihf/libavutil/samplefmt.h:24, from /usr/include/arm-linux-gnueabihf/libavcodec/avcodec.h:31, from src/player.c:45: /usr/include/arm-linux-gnueabihf/libavutil/rational.h:104:22: note: expected ‘AVRational {aka struct AVRational}’ but argument is of type ‘int’ static inline double av_q2d(AVRational a){ ^~ Makefile:107: recipe for target 'src/player.o' failed

wellsa-usa commented 5 years ago

I forgot to add, this is running on a Raspberry Pi 3 - Model B+ - 1.4GHz Cortex-A53. I have the same version of s/w on an older Raspberry Pi 3 - Model B - ARMv8 with 1G RAM and it compiles and runs just fine.

PromyLOPh commented 5 years ago

See #681