breakfastquay / rubberband

Official mirror of Rubber Band Library, an audio time-stretching and pitch-shifting library.
http://breakfastquay.com/rubberband/
GNU General Public License v2.0
561 stars 89 forks source link

Doesn't build on windows (v3.1.1) #74

Closed jimsimonz closed 1 year ago

jimsimonz commented 1 year ago

Clean build not working on Windows, any ideas?

[1/25] Compiling C++ object librubberband_objlib.a.p/src_rubberband-c.cpp.obj
FAILED: librubberband_objlib.a.p/src_rubberband-c.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_rubberband-c.cpp.pdb" /Folibrubberband_objlib.a.p/src_rubberband-c.cpp.obj "/c" ../src/rubberband-c.cpp
CreateProcess failed: The system cannot find the file specified.
[2/25] Compiling C++ object librubberband_objlib.a.p/src_RubberBandStretcher.cpp.obj
FAILED: librubberband_objlib.a.p/src_RubberBandStretcher.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_RubberBandStretcher.cpp.pdb" /Folibrubberband_objlib.a.p/src_RubberBandStretcher.cpp.obj "/c" ../src/RubberBandStretcher.cpp
CreateProcess failed: The system cannot find the file specified.
[3/25] Compiling C++ object librubberband_objlib.a.p/src_faster_AudioCurveCalculator.cpp.obj
FAILED: librubberband_objlib.a.p/src_faster_AudioCurveCalculator.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_faster_AudioCurveCalculator.cpp.pdb" /Folibrubberband_objlib.a.p/src_faster_AudioCurveCalculator.cpp.obj "/c" ../src/faster/AudioCurveCalculator.cpp
CreateProcess failed: The system cannot find the file specified.
[4/25] Compiling C++ object librubberband_objlib.a.p/src_faster_CompoundAudioCurve.cpp.obj
FAILED: librubberband_objlib.a.p/src_faster_CompoundAudioCurve.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_faster_CompoundAudioCurve.cpp.pdb" /Folibrubberband_objlib.a.p/src_faster_CompoundAudioCurve.cpp.obj "/c" ../src/faster/CompoundAudioCurve.cpp
CreateProcess failed: The system cannot find the file specified.
[5/25] Compiling C++ object librubberband_objlib.a.p/src_faster_HighFrequencyAudioCurve.cpp.obj
FAILED: librubberband_objlib.a.p/src_faster_HighFrequencyAudioCurve.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_faster_HighFrequencyAudioCurve.cpp.pdb" /Folibrubberband_objlib.a.p/src_faster_HighFrequencyAudioCurve.cpp.obj "/c" ../src/faster/HighFrequencyAudioCurve.cpp
CreateProcess failed: The system cannot find the file specified.
[6/25] Compiling C++ object librubberband_objlib.a.p/src_faster_SilentAudioCurve.cpp.obj
FAILED: librubberband_objlib.a.p/src_faster_SilentAudioCurve.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_faster_SilentAudioCurve.cpp.pdb" /Folibrubberband_objlib.a.p/src_faster_SilentAudioCurve.cpp.obj "/c" ../src/faster/SilentAudioCurve.cpp
CreateProcess failed: The system cannot find the file specified.
[7/25] Compiling C++ object librubberband_objlib.a.p/src_faster_PercussiveAudioCurve.cpp.obj
FAILED: librubberband_objlib.a.p/src_faster_PercussiveAudioCurve.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_faster_PercussiveAudioCurve.cpp.pdb" /Folibrubberband_objlib.a.p/src_faster_PercussiveAudioCurve.cpp.obj "/c" ../src/faster/PercussiveAudioCurve.cpp
CreateProcess failed: The system cannot find the file specified.
[8/25] Compiling C++ object librubberband_objlib.a.p/src_faster_R2Stretcher.cpp.obj
FAILED: librubberband_objlib.a.p/src_faster_R2Stretcher.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_faster_R2Stretcher.cpp.pdb" /Folibrubberband_objlib.a.p/src_faster_R2Stretcher.cpp.obj "/c" ../src/faster/R2Stretcher.cpp
CreateProcess failed: The system cannot find the file specified.
[9/25] Compiling C++ object librubberband_objlib.a.p/src_faster_StretcherChannelData.cpp.obj
FAILED: librubberband_objlib.a.p/src_faster_StretcherChannelData.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_faster_StretcherChannelData.cpp.pdb" /Folibrubberband_objlib.a.p/src_faster_StretcherChannelData.cpp.obj "/c" ../src/faster/StretcherChannelData.cpp
CreateProcess failed: The system cannot find the file specified.
[10/25] Compiling C++ object librubberband_objlib.a.p/src_faster_StretcherProcess.cpp.obj
FAILED: librubberband_objlib.a.p/src_faster_StretcherProcess.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_faster_StretcherProcess.cpp.pdb" /Folibrubberband_objlib.a.p/src_faster_StretcherProcess.cpp.obj "/c" ../src/faster/StretcherProcess.cpp
CreateProcess failed: The system cannot find the file specified.
[11/25] Compiling C++ object librubberband_objlib.a.p/src_common_Allocators.cpp.obj
FAILED: librubberband_objlib.a.p/src_common_Allocators.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_common_Allocators.cpp.pdb" /Folibrubberband_objlib.a.p/src_common_Allocators.cpp.obj "/c" ../src/common/Allocators.cpp
CreateProcess failed: The system cannot find the file specified.
[12/25] Compiling C++ object librubberband_objlib.a.p/src_common_FFT.cpp.obj
FAILED: librubberband_objlib.a.p/src_common_FFT.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_common_FFT.cpp.pdb" /Folibrubberband_objlib.a.p/src_common_FFT.cpp.obj "/c" ../src/common/FFT.cpp
CreateProcess failed: The system cannot find the file specified.
[13/25] Compiling C++ object librubberband_objlib.a.p/src_common_Log.cpp.obj
FAILED: librubberband_objlib.a.p/src_common_Log.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_common_Log.cpp.pdb" /Folibrubberband_objlib.a.p/src_common_Log.cpp.obj "/c" ../src/common/Log.cpp
CreateProcess failed: The system cannot find the file specified.
[14/25] Compiling C++ object librubberband_objlib.a.p/src_common_Profiler.cpp.obj
FAILED: librubberband_objlib.a.p/src_common_Profiler.cpp.obj
"cl" "-Ilibrubberband_objlib.a.p" "-I." "-I.." "-I..\rubberband" "-I..\src" "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++14" "/permissive-" "/O2" "/Gw" "-DUSE_BUILTIN_FFT" "-DUSE_BQRESAMPLER" "-DLACK_SINCOS" "-DNO_THREAD_CHECKS" "-DNO_TIMING" "-DNDEBUG" "-D_WIN32" "-DNOMINMAX" "-D_USE_MATH_DEFINES" "-DGETOPT_API=" "/Fdlibrubberband_objlib.a.p\src_common_Profiler.cpp.pdb" /Folibrubberband_objlib.a.p/src_common_Profiler.cpp.obj "/c" ../src/common/Profiler.cpp
CreateProcess failed: The system cannot find the file specified.
ninja: build stopped: subcommand failed.
cannam commented 1 year ago

Hmm... I haven't seen this myself and I'm not too intimately familiar with Windows build problems, but I would guess that the error

CreateProcess failed: The system cannot find the file specified.

means that Ninja was unable to execute the compiler (cl) at all, rather than that the arguments to the compiler were wrong.

(If the problem had been a wrong path to a source file or a problem with one of the other arguments to the compiler, then I would expect to see an error message from the compiler instead.)

Is it possible that something funny has happened to your local environment, e.g. the PATH variable? For example I guess this could happen if you configured using Meson in a command prompt with some compiler environment set up in it, and then ran Ninja in a different command prompt without any compiler path configured.

jimsimonz commented 1 year ago

Thanks you're right the build tool environment wasn't set.