music-player-core
music-player-core copied to clipboard
Installing from Pip on Ubuntu
Failed to install correctly when installing via pip. Install log:
Collecting musicplayer
Using cached https://files.pythonhosted.org/packages/7f/e2/7a1890044c7cb2073b83924b5868eea55207317c12092d9615869381dc7e/musicplayer-1.20141030.091600.tar.gz
Building wheels for collected packages: musicplayer
Running setup.py bdist_wheel for musicplayer ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aEYF4_/musicplayer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp8jqQvMpip-wheel- --python-tag cp27:
/usr/lib/python2.7/dist-packages/setuptools/dist.py:397: UserWarning: Normalizing '1.20180706.072211' to '1.20180706.72211'
normalized_version,
running bdist_wheel
running build
running build_ext
building 'musicplayer' extension
creating build
creating build/temp.linux-i686-2.7
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_bitmapthumbnail.cpp -o build/temp.linux-i686-2.7/musicplayer_bitmapthumbnail.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c Fader.cpp -o build/temp.linux-i686-2.7/Fader.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_getmetadata.cpp -o build/temp.linux-i686-2.7/musicplayer_getmetadata.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_player_output.cpp -o build/temp.linux-i686-2.7/musicplayer_player_output.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from musicplayer_player_output.cpp:9:0:
PythonHelpers.h: In function ‘PyObject* _handleModuleCommand(const char*, const char*, const char*, va_list)’:
PythonHelpers.h:161:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
PythonHelpers.h:164:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
ret = PyObject_Call(func, args, NULL);
^~~
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_utils.cpp -o build/temp.linux-i686-2.7/musicplayer_utils.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_player_decoding.cpp -o build/temp.linux-i686-2.7/musicplayer_player_decoding.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from musicplayer_player_decoding.cpp:14:0:
PythonHelpers.h: In function ‘PyObject* _handleModuleCommand(const char*, const char*, const char*, va_list)’:
PythonHelpers.h:161:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
PythonHelpers.h:164:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
ret = PyObject_Call(func, args, NULL);
^~~
musicplayer_player_decoding.cpp: In function ‘void player_resetStreamPackets(PlayerInStream*)’:
musicplayer_player_decoding.cpp:252:35: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&player->audio_pkt);
^
In file included from /usr/include/i386-linux-gnu/libavformat/avformat.h:319:0,
from PlayerInStream.hpp:9,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
musicplayer_player_decoding.cpp: In function ‘int stream_component_open(PlayerInStream*, AVFormatContext*, int)’:
musicplayer_player_decoding.cpp:372:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(stream_index < 0 || stream_index >= ic->nb_streams)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:374:37: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avctx = ic->streams[stream_index]->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:374:37: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avctx = ic->streams[stream_index]->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:374:37: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avctx = ic->streams[stream_index]->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp: In function ‘void closeInputStream(AVFormatContext*)’:
musicplayer_player_decoding.cpp:482:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < formatCtx->nb_streams; ++i) {
~~^~~~~~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:483:40: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avcodec_close(formatCtx->streams[i]->codec);
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:483:40: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avcodec_close(formatCtx->streams[i]->codec);
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:483:40: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avcodec_close(formatCtx->streams[i]->codec);
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp: In member function ‘bool PlayerObject::openInStream()’:
musicplayer_player_decoding.cpp:716:32: warning: ‘new’ of type ‘LinkedList<PlayerInStream>::Item’ with extended alignment 32 [-Waligned-new=]
is.reset(new InStreams::Item());
^
musicplayer_player_decoding.cpp:716:32: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
musicplayer_player_decoding.cpp:716:32: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
musicplayer_player_decoding.cpp: In function ‘long int audio_decode_frame(PlayerObject*, PlayerInStream*, long int)’:
musicplayer_player_decoding.cpp:783:38: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext *dec = is->audio_st->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:783:38: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext *dec = is->audio_st->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:783:38: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext *dec = is->audio_st->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:807:23: error: ‘avcodec_alloc_frame’ was not declared in this scope
if (!(is->frame = avcodec_alloc_frame()))
^~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:807:23: note: suggested alternative: ‘avcodec_send_frame’
if (!(is->frame = avcodec_alloc_frame()))
^~~~~~~~~~~~~~~~~~~
avcodec_send_frame
musicplayer_player_decoding.cpp:810:5: error: ‘avcodec_get_frame_defaults’ was not declared in this scope
avcodec_get_frame_defaults(is->frame);
^~~~~~~~~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:810:5: note: suggested alternative: ‘avcodec_get_frame_class’
avcodec_get_frame_defaults(is->frame);
^~~~~~~~~~~~~~~~~~~~~~~~~~
avcodec_get_frame_class
musicplayer_player_decoding.cpp:815:73: warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
int len1 = avcodec_decode_audio4(dec, is->frame, &got_frame, pkt_temp);
^
In file included from /usr/include/i386-linux-gnu/libavformat/avformat.h:319:0,
from PlayerInStream.hpp:9,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavcodec/avcodec.h:4944:5: note: declared here
int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
^~~~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:939:21: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(pkt);
^
In file included from /usr/include/i386-linux-gnu/libavformat/avformat.h:319:0,
from PlayerInStream.hpp:9,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:958:22: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(pkt);
^
In file included from /usr/include/i386-linux-gnu/libavformat/avformat.h:319:0,
from PlayerInStream.hpp:9,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
musicplayer_player_decoding.cpp: In member function ‘void PlayerObject::openPeekInStreams()’:
musicplayer_player_decoding.cpp:1204:43: warning: ‘new’ of type ‘LinkedList<PlayerInStream>::Item’ with extended alignment 32 [-Waligned-new=]
s = new PlayerObject::InStreams::Item();
^
musicplayer_player_decoding.cpp:1204:43: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
musicplayer_player_decoding.cpp:1204:43: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
musicplayer_player_decoding.cpp: In member function ‘bool PlayerObject::readOutStream(float32_t*, size_t, size_t*)’:
musicplayer_player_decoding.cpp:1526:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i % player->outNumChannels == player->outNumChannels - 1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Buffer.hpp:6:0,
from musicplayer.h:39,
from musicplayer_player_decoding.cpp:11:
LinkedList.hpp: In instantiation of ‘LinkedList<T>::ItemPtr LinkedList<T>::push_front(LinkedList<T>::ItemPtr) [with T = PlayerInStream; LinkedList<T>::ItemPtr = IntrusivePtr<LinkedList<PlayerInStream>::Item>]’:
musicplayer_player_decoding.cpp:732:25: required from here
LinkedList.hpp:235:24: warning: ‘new’ of type ‘LinkedList<PlayerInStream>::Item’ with extended alignment 32 [-Waligned-new=]
if(!item) item.reset(new Item());
^~~~~~~~~~
LinkedList.hpp:235:24: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
LinkedList.hpp:235:24: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for musicplayer
Running setup.py clean for musicplayer
Failed to build musicplayer
Installing collected packages: musicplayer
Running setup.py install for musicplayer ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aEYF4_/musicplayer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-QiBIbG-record/install-record.txt --single-version-externally-managed --compile:
/usr/lib/python2.7/dist-packages/setuptools/dist.py:397: UserWarning: Normalizing '1.20180706.072228' to '1.20180706.72228'
normalized_version,
running install
running build
running build_ext
building 'musicplayer' extension
creating build
creating build/temp.linux-i686-2.7
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_bitmapthumbnail.cpp -o build/temp.linux-i686-2.7/musicplayer_bitmapthumbnail.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c Fader.cpp -o build/temp.linux-i686-2.7/Fader.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_getmetadata.cpp -o build/temp.linux-i686-2.7/musicplayer_getmetadata.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_player_output.cpp -o build/temp.linux-i686-2.7/musicplayer_player_output.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from musicplayer_player_output.cpp:9:0:
PythonHelpers.h: In function ‘PyObject* _handleModuleCommand(const char*, const char*, const char*, va_list)’:
PythonHelpers.h:161:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
PythonHelpers.h:164:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
ret = PyObject_Call(func, args, NULL);
^~~
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_utils.cpp -o build/temp.linux-i686-2.7/musicplayer_utils.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-24iBLC/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -UNDEBUG -I/usr/local/include -I/opt/local/include -I/usr/include/python2.7 -c musicplayer_player_decoding.cpp -o build/temp.linux-i686-2.7/musicplayer_player_decoding.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from musicplayer_player_decoding.cpp:14:0:
PythonHelpers.h: In function ‘PyObject* _handleModuleCommand(const char*, const char*, const char*, va_list)’:
PythonHelpers.h:161:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
PythonHelpers.h:164:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
ret = PyObject_Call(func, args, NULL);
^~~
musicplayer_player_decoding.cpp: In function ‘void player_resetStreamPackets(PlayerInStream*)’:
musicplayer_player_decoding.cpp:252:35: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&player->audio_pkt);
^
In file included from /usr/include/i386-linux-gnu/libavformat/avformat.h:319:0,
from PlayerInStream.hpp:9,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
musicplayer_player_decoding.cpp: In function ‘int stream_component_open(PlayerInStream*, AVFormatContext*, int)’:
musicplayer_player_decoding.cpp:372:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(stream_index < 0 || stream_index >= ic->nb_streams)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:374:37: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avctx = ic->streams[stream_index]->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:374:37: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avctx = ic->streams[stream_index]->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:374:37: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avctx = ic->streams[stream_index]->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp: In function ‘void closeInputStream(AVFormatContext*)’:
musicplayer_player_decoding.cpp:482:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < formatCtx->nb_streams; ++i) {
~~^~~~~~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:483:40: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avcodec_close(formatCtx->streams[i]->codec);
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:483:40: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avcodec_close(formatCtx->streams[i]->codec);
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:483:40: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
avcodec_close(formatCtx->streams[i]->codec);
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp: In member function ‘bool PlayerObject::openInStream()’:
musicplayer_player_decoding.cpp:716:32: warning: ‘new’ of type ‘LinkedList<PlayerInStream>::Item’ with extended alignment 32 [-Waligned-new=]
is.reset(new InStreams::Item());
^
musicplayer_player_decoding.cpp:716:32: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
musicplayer_player_decoding.cpp:716:32: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
musicplayer_player_decoding.cpp: In function ‘long int audio_decode_frame(PlayerObject*, PlayerInStream*, long int)’:
musicplayer_player_decoding.cpp:783:38: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext *dec = is->audio_st->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:783:38: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext *dec = is->audio_st->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:783:38: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext *dec = is->audio_st->codec;
^~~~~
In file included from PlayerInStream.hpp:9:0,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
musicplayer_player_decoding.cpp:807:23: error: ‘avcodec_alloc_frame’ was not declared in this scope
if (!(is->frame = avcodec_alloc_frame()))
^~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:807:23: note: suggested alternative: ‘avcodec_send_frame’
if (!(is->frame = avcodec_alloc_frame()))
^~~~~~~~~~~~~~~~~~~
avcodec_send_frame
musicplayer_player_decoding.cpp:810:5: error: ‘avcodec_get_frame_defaults’ was not declared in this scope
avcodec_get_frame_defaults(is->frame);
^~~~~~~~~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:810:5: note: suggested alternative: ‘avcodec_get_frame_class’
avcodec_get_frame_defaults(is->frame);
^~~~~~~~~~~~~~~~~~~~~~~~~~
avcodec_get_frame_class
musicplayer_player_decoding.cpp:815:73: warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
int len1 = avcodec_decode_audio4(dec, is->frame, &got_frame, pkt_temp);
^
In file included from /usr/include/i386-linux-gnu/libavformat/avformat.h:319:0,
from PlayerInStream.hpp:9,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavcodec/avcodec.h:4944:5: note: declared here
int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
^~~~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:939:21: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(pkt);
^
In file included from /usr/include/i386-linux-gnu/libavformat/avformat.h:319:0,
from PlayerInStream.hpp:9,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:958:22: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(pkt);
^
In file included from /usr/include/i386-linux-gnu/libavformat/avformat.h:319:0,
from PlayerInStream.hpp:9,
from musicplayer.h:44,
from musicplayer_player_decoding.cpp:11:
/usr/include/i386-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
musicplayer_player_decoding.cpp: In member function ‘void PlayerObject::openPeekInStreams()’:
musicplayer_player_decoding.cpp:1204:43: warning: ‘new’ of type ‘LinkedList<PlayerInStream>::Item’ with extended alignment 32 [-Waligned-new=]
s = new PlayerObject::InStreams::Item();
^
musicplayer_player_decoding.cpp:1204:43: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
musicplayer_player_decoding.cpp:1204:43: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
musicplayer_player_decoding.cpp: In member function ‘bool PlayerObject::readOutStream(float32_t*, size_t, size_t*)’:
musicplayer_player_decoding.cpp:1526:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i % player->outNumChannels == player->outNumChannels - 1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Buffer.hpp:6:0,
from musicplayer.h:39,
from musicplayer_player_decoding.cpp:11:
LinkedList.hpp: In instantiation of ‘LinkedList<T>::ItemPtr LinkedList<T>::push_front(LinkedList<T>::ItemPtr) [with T = PlayerInStream; LinkedList<T>::ItemPtr = IntrusivePtr<LinkedList<PlayerInStream>::Item>]’:
musicplayer_player_decoding.cpp:732:25: required from here
LinkedList.hpp:235:24: warning: ‘new’ of type ‘LinkedList<PlayerInStream>::Item’ with extended alignment 32 [-Waligned-new=]
if(!item) item.reset(new Item());
^~~~~~~~~~
LinkedList.hpp:235:24: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
LinkedList.hpp:235:24: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aEYF4_/musicplayer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-QiBIbG-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-aEYF4_/musicplayer/
I have all of the stated dependencies. Not sure what I am looking at here, so no idea what the issue is. Any idea how to get a working install?
I sifted through that log and found these errors:
musicplayer_player_decoding.cpp:807:23: error: ‘avcodec_alloc_frame’ was not declared in this scope
if (!(is->frame = avcodec_alloc_frame()))
^~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:807:23: note: suggested alternative: ‘avcodec_send_frame’
if (!(is->frame = avcodec_alloc_frame()))
^~~~~~~~~~~~~~~~~~~
avcodec_send_frame
musicplayer_player_decoding.cpp:810:5: error: ‘avcodec_get_frame_defaults’ was not declared in this scope
avcodec_get_frame_defaults(is->frame);
^~~~~~~~~~~~~~~~~~~~~~~~~~
musicplayer_player_decoding.cpp:810:5: note: suggested alternative: ‘avcodec_get_frame_class’
avcodec_get_frame_defaults(is->frame);
^~~~~~~~~~~~~~~~~~~~~~~~~~
avcodec_get_frame_class
I don't know C++ but it looks like something went wrong with the scope. Nice that it suggested alternatives.
Seems to be fixed by #12. Please accept the pull request.
Can you try again with the latest version?