georgbuechner / dissonance

A command line and keyboard based strategy-game written in c++, where audio-input determines the AI-strategy and lays the seed for the map-generation.
GNU General Public License v3.0
32 stars 3 forks source link

Problem install aubio #76

Closed georgbuechner closed 2 years ago

georgbuechner commented 2 years ago

make aubio_general
make[1]: Entering directory '/home/user/Documents/programming/dissonance'
mkdir -p deps
# Install aubio
wget -O deps/aubio-0.4.7.tar.bz2 https://aubio.org/pub/aubio-0.4.7.tar.bz2
--2022-04-24 18:10:14--  https://aubio.org/pub/aubio-0.4.7.tar.bz2
SSL_INIT
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving aubio.org (aubio.org)... 2001:41d0:2:7f1f::1, 94.23.252.31
Connecting to aubio.org (aubio.org)|2001:41d0:2:7f1f::1|:443... failed: Connection timed out.
Connecting to aubio.org (aubio.org)|94.23.252.31|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 372173 (363K) [application/x-bzip2]
Saving to: ‘deps/aubio-0.4.7.tar.bz2’

deps/aubio-0.4.7.tar.bz2                             100%[=====================================================================================================================>] 363,45K   304KB/s    in 1,2s    

2022-04-24 18:12:26 (304 KB/s) - ‘deps/aubio-0.4.7.tar.bz2’ saved [372173/372173]

# sudo ln -sf /usr/bin/python3 /usr/bin/python
cd deps && tar xf aubio-0.4.7.tar.bz2 && rm aubio-0.4.7.tar.bz2
cd deps/aubio-0.4.7 && ./waf configure build
Setting top to                           : /home/ananym/Documents/programming/dissonance/deps/aubio-0.4.7 
Setting out to                           : /home/ananym/Documents/programming/dissonance/deps/aubio-0.4.7/build 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for header stdlib.h             : yes 
Checking for header stdio.h              : yes 
Checking for header math.h               : yes 
Checking for header string.h             : yes 
Checking for header limits.h             : yes 
Checking for header stdarg.h             : yes 
Checking for header getopt.h             : yes 
Checking for header unistd.h             : yes 
Checking for library m                   : yes 
Checking for C99 __VA_ARGS__ macro       : yes 
Checking for size of smpl_t              : float 
Checking for size of lsmp_t              : double 
Checking if complex.h is enabled         : no 
Checking for FFT implementation          : ooura 
Checking for program 'pkg-config'        : /usr/bin/pkg-config 
Checking for 'sndfile'                   : yes 
Checking for 'samplerate'                : yes 
Checking for 'jack'                      : yes 
Checking for 'libavcodec'                : yes 
Checking for 'libavformat'               : yes 
Checking for 'libavutil'                 : yes 
Checking for 'libswresample'             : yes 
Checking for all libav libraries         : yes 
Checking if using source_wavread         : yes 
Checking if using sink_wavwrite          : yes 
Checking for program 'txt2man'           : not found 
Checking for program 'doxygen'           : not found 
Checking for program 'sphinx-build'      : not found 
'configure' finished successfully (1.188s)
Waf: Entering directory `/home/ananym/Documents/programming/dissonance/deps/aubio-0.4.7/build'
[  1/236] Compiling src/spectral/dct_accelerate.c
[  2/236] Compiling src/io/utils_apple_audio.c
[  3/236] Compiling src/fvec.c
[  4/236] Compiling src/spectral/dct.c
[  5/236] Compiling src/vecutils.c
[  6/236] Compiling src/io/sink_apple_audio.c
[  7/236] Compiling src/cvec.c
[  8/236] Compiling src/spectral/awhitening.c
[  9/236] Compiling src/io/source_wavread.c
[ 10/236] Compiling src/utils/scale.c
[ 11/236] Compiling src/utils/parameter.c
[ 12/236] Compiling src/io/source_sndfile.c
[ 13/236] Compiling src/io/source_avcodec.c
[ 14/236] Compiling src/io/ioutils.c
[ 15/236] Compiling src/synth/sampler.c
[ 16/236] Compiling src/io/source.c
[ 17/236] Compiling src/onset/peakpicker.c
[ 18/236] Compiling src/spectral/ooura_fft8g.c
[ 19/236] Compiling src/spectral/mfcc.c
[ 20/236] Compiling src/onset/onset.c
[ 21/236] Compiling src/io/audio_unit.c
../src/io/source_avcodec.c: In function ‘new_aubio_source_avcodec’:
../src/io/source_avcodec.c:188:32: error: ‘AVStream’ has no member named ‘codec’
  188 |     if (avFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                ^~
../src/io/source_avcodec.c:221:53: error: ‘AVStream’ has no member named ‘codec’
  221 |   avCodecCtx = avFormatCtx->streams[selected_stream]->codec;
      |                                                     ^~
../src/io/source_avcodec.c:222:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  222 |   codec = avcodec_find_decoder(avCodecCtx->codec_id);
      |         ^
../src/io/source_avcodec.c: In function ‘aubio_source_avcodec_readframe’:
../src/io/source_avcodec.c:377:3: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
  377 |   av_init_packet (&avPacket);
      |   ^~~~~~~~~~~~~~
In file included from /usr/include/libavcodec/avcodec.h:45,
                 from ../src/io/source_avcodec.c:25:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
../src/io/source_avcodec.c:418:9: warning: implicit declaration of function ‘avcodec_decode_audio4’; did you mean ‘avcodec_decode_subtitle2’? [-Wimplicit-function-declaration]
  418 |   len = avcodec_decode_audio4(avCodecCtx, avFrame, &got_frame, &avPacket);
      |         ^~~~~~~~~~~~~~~~~~~~~
      |         avcodec_decode_subtitle2

Waf: Leaving directory `/home/user/Documents/programming/dissonance/deps/aubio-0.4.7/build'
Build failed
 -> task in 'lib_objects' failed with exit status 1 (run with -v to display more information)
make[1]: *** [Makefile:23: aubio_general] Error 1
make[1]: Leaving directory '/home/user/Documents/programming/dissonance'
make: *** [Makefile:27: aubio] Error 2
    ~/Documents/programming/dissonance    v2 ?1  make build                   
`
georgbuechner commented 2 years ago

Systeminfo: 5.15.28-1-MANJARO pip version: pip 21.0 from /usr/lib/python3.10/site-packages/pip (python 3.10) gcc version: gcc (GCC) 11.2.0 Conan version 1.47.0

georgbuechner commented 2 years ago

This did not occur again and does not seem to be a problem. Please report if it is after all.