m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.55k stars 266 forks source link

chromaprint fails to build #416

Closed pat357 closed 7 years ago

pat357 commented 7 years ago

  Running git update for libchromaprint in libchromaprint-git
Already on 'ab-suite'
HEAD is now at 40de979 Update .gitlab-ci.yml
remote: Counting objects: 71, done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 71 (delta 43), reused 0 (delta 0)
Unpacking objects: 100% (71/71), done.
From https://bitbucket.org/acoustid/chromaprint
   40de979..e2275cf  master     -> origin/master
HEAD is now at e2275cf Expire artifacts

┌ libchromaprint git ............................................................. [Updates found]
Running uninstall in libchromaprint-git
Running cmake in libchromaprint-git
<<  snip >>
-- Using FFTW3 for FFT calculations
-- Using swresample for audio conversion
-- Configuring done
-- Generating done
-- Build files have been written to: K:/Mingw644/build/libchromaprint-git/build-32bit
Running install in libchromaprint-git
[1/43] Building C object src/CMakeFiles/chromaprint_p.dir/avresample/resample2.c.o
[2/43] Building CXX object src/CMakeFiles/chromaprint_p.dir/utils/base64.cpp.o
[3/43] Building CXX object src/CMakeFiles/chromaprint.dir/audio_processor.cpp.o
FAILED: src/CMakeFiles/chromaprint.dir/audio_processor.cpp.o
K:\Mingw644\msys64\mingw32\bin\c++.exe   -DCHROMAPRINT_NODLL -DHAVE_CONFIG_H -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I../ -I. -I../src -IK:/Mingw644/msys64/mingw32/include -IK:/Mingw644/local32/include -mthreads -mtune=native -O3 -pipe -std=c++11 -Wall -O3 -DNDEBUG -MD -MT src/CMakeFiles/chromaprint.dir/audio_processor.cpp.o -MF src\CMakeFiles\chromaprint.dir\audio_processor.cpp.o.d -o src/CMakeFiles/chromaprint.dir/audio_processor.cpp.o -c K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp
In file included from K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:11:0:
K:\Mingw644\build\libchromaprint-git\src\audio_processor.h:59:8: error: 'vector' in namespace 'std' does not name a template type
   std::vector<int16_t> m_buffer;
        ^~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.h:61:8: error: 'vector' in namespace 'std' does not name a template type
   std::vector<int16_t> m_resample_buffer;
        ^~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp: In constructor 'chromaprint::AudioProcessor::AudioProcessor(int, chromaprint::AudioConsumer*)':
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:25:4: error: class 'chromaprint::AudioProcessor' does not have any field named 'm_buffer'
  : m_buffer(kMaxBufferSize),
    ^~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:27:4: error: class 'chromaprint::AudioProcessor' does not have any field named 'm_resample_buffer'
    m_resample_buffer(kMaxBufferSize),
    ^~~~~~~~~~~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp: In member function 'void chromaprint::AudioProcessor::LoadMono(const int16_t*, int)':
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:43:20: error: 'm_buffer' was not declared in this scope
  int16_t *output = m_buffer.data() + m_buffer_offset;
                    ^~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp: In member function 'void chromaprint::AudioProcessor::LoadStereo(const int16_t*, int)':
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:52:20: error: 'm_buffer' was not declared in this scope
  int16_t *output = m_buffer.data() + m_buffer_offset;
                    ^~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp: In member function 'void chromaprint::AudioProcessor::LoadMultiChannel(const int16_t*, int)':
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:61:20: error: 'm_buffer' was not declared in this scope
  int16_t *output = m_buffer.data() + m_buffer_offset;
                    ^~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp: In member function 'int chromaprint::AudioProcessor::Load(const int16_t*, int)':
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:75:45: error: 'm_buffer' was not declared in this scope
  length = std::min(length, static_cast<int>(m_buffer.size() - m_buffer_offset));
                                             ^~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp: In member function 'void chromaprint::AudioProcessor::Resample()':
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:94:23: error: 'm_buffer' was not declared in this scope
   m_consumer->Consume(m_buffer.data(), m_buffer_offset);
                       ^~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:99:43: error: 'm_resample_buffer' was not declared in this scope
  int length = av_resample(m_resample_ctx, m_resample_buffer.data(), m_buffer.data(), &consumed, m_buffer_offset, kMaxBufferSize, 1);
                                           ^~~~~~~~~~~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:99:69: error: 'm_buffer' was not declared in this scope
  int length = av_resample(m_resample_ctx, m_resample_buffer.data(), m_buffer.data(), &consumed, m_buffer_offset, kMaxBufferSize, 1);
                                                                     ^~~~~~~~
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp: In member function 'virtual void chromaprint::AudioProcessor::Consume(const int16_t*, int)':
K:\Mingw644\build\libchromaprint-git\src\audio_processor.cpp:154:7: error: 'm_buffer' was not declared in this scope
   if (m_buffer.size() == m_buffer_offset) {
       ^~~~~~~~
[4/43] Building CXX object src/CMakeFiles/chromaprint.dir/chroma.cpp.o
[5/43] Building CXX object src/CMakeFiles/chromaprint.dir/fft_lib_fftw3.cpp.o
[6/43] Building CXX object src/CMakeFiles/chromaprint.dir/chromaprint.cpp.o
FAILED: src/CMakeFiles/chromaprint.dir/chromaprint.cpp.o
K:\Mingw644\msys64\mingw32\bin\c++.exe   -DCHROMAPRINT_NODLL -DHAVE_CONFIG_H -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I../ -I. -I../src -IK:/Mingw644/msys64/mingw32/include -IK:/Mingw644/local32/include -mthreads -mtune=native -O3 -pipe -std=c++11 -Wall -O3 -DNDEBUG -MD -MT src/CMakeFiles/chromaprint.dir/chromaprint.cpp.o -MF src\CMakeFiles\chromaprint.dir\chromaprint.cpp.o.d -o src/CMakeFiles/chromaprint.dir/chromaprint.cpp.o -c K:\Mingw644\build\libchromaprint-git\src\chromaprint.cpp
In file included from K:\Mingw644\build\libchromaprint-git\src\chromaprint.cpp:13:0:
K:\Mingw644\build\libchromaprint-git\src\fingerprint_matcher.h: In member function 'int chromaprint::Segment::public_score() const':
K:\Mingw644\build\libchromaprint-git\src\fingerprint_matcher.h:34:10: error: 'round' is not a member of 'std'
   return std::round(score * 100);
          ^~~
[7/43] Building CXX object src/CMakeFiles/chromaprint.dir/chroma_resampler.cpp.o
[8/43] Building CXX object src/CMakeFiles/chromaprint.dir/chroma_filter.cpp.o
ninja: build stopped: subcommand failed.
[1/37] Building CXX object src/CMakeFiles/chromaprint_p.dir/fft_lib_fftw3.cpp.o
[2/37] Building CXX object src/CMakeFiles/chromaprint_p.dir/chromaprint.cpp.o
FAILED: src/CMakeFiles/chromaprint_p.dir/chromaprint.cpp.o
K:\Mingw644\msys64\mingw32\bin\c++.exe   -DCHROMAPRINT_NODLL -DHAVE_CONFIG_H -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I../ -I. -I../src -IK:/Mingw644/msys64/mingw32/include -IK:/Mingw644/local32/include -mthreads -mtune=native -O3 -pipe -std=c++11 -Wall -O3 -DNDEBUG -MD -MT src/CMakeFiles/chromaprint_p.dir/chromaprint.cpp.o -MF src\CMakeFiles\chromaprint_p.dir\chromaprint.cpp.o.d -o src/CMakeFiles/chromaprint_p.dir/chromaprint.cpp.o -c K:\Mingw644\build\libchromaprint-git\src\chromaprint.cpp
In file included from K:\Mingw644\build\libchromaprint-git\src\chromaprint.cpp:13:0:
K:\Mingw644\build\libchromaprint-git\src\fingerprint_matcher.h: In member function 'int chromaprint::Segment::public_score() const':
K:\Mingw644\build\libchromaprint-git\src\fingerprint_matcher.h:34:10: error: 'round' is not a member of 'std'
   return std::round(score * 100);
          ^~~
ninja: build stopped: subcommand failed.
This is required for other packages, so this script will exit.
  Creating diagnostics file in libchromaprint-git

All relevant logs have been anonymously uploaded to https://0x0.st/_xH.zip
pat357 commented 7 years ago

Seems to be "solved", so I''l close this too...