I'm building 592feef with
cmake -S whisper.cpp -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWHISPER_COMMON_FFMPEG=ON \
-DWHISPER_BUILD_EXAMPLES=ON \
-DWHISPER_BUILD_SERVER=ON \
-DWHISPER_BUILD_TESTS=OFF \
-DWHISPER_USE_SYSTEM_GGML=ON
cmake --build build
but when my ffmpeg is Paul B. Mahol's fork https://github.com/librempeg/librempeg there are build failures:
: && /usr/bin/c++ -march=native -mtune=native -O3 -pipe -fpermissive -fno-plt -fexceptions -Wno-unused-parameter -Wno-tautological-compare -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-error=incompatible-pointer-types -fPIC -Wp,-D_GLIBCXX_ASSERTIONS -Wno-zero-as-null-pointer-constant -Wno-array-bounds -Wno-dangling-reference -O3 -DNDEBUG -Wl,-O1,--as-needed,-z,relro,-z,now -Wl,--undefined-version -Wl,--dependency-file=examples/vad-speech-segments/CMakeFiles/whisper-vad-speech-segments.dir/link.d examples/vad-speech-segments/CMakeFiles/whisper-vad-speech-segments.dir/speech.cpp.o -o bin/whisper-vad-speech-segments -Wl,-rpath,./build/bin: examples/libcommon.a bin/libwhisper.so.1.9.2 /usr/lib/libavformat.so /usr/lib/libavcodec.so /usr/lib/libavutil.so /usr/lib/libswresample.so /usr/lib/libggml.so /usr/lib/libggml-base.so -ldl && :
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `av_buffersrc_add_frame_flags'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `av_buffersink_get_samples'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `avfilter_graph_alloc'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `avfilter_init_str'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `avfilter_link'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `av_buffersrc_close'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `avfilter_graph_config'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `avfilter_get_by_name'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `avfilter_graph_alloc_filter'
/usr/bin/ld: /usr/lib/libavcodec.so: undefined reference to `avfilter_graph_free'
I'm using librempeg since the beginning and none of my libav* users like mpv had such problems.
I'm building 592feef with
but when my ffmpeg is Paul B. Mahol's fork https://github.com/librempeg/librempeg there are build failures:
I'm using librempeg since the beginning and none of my libav* users like mpv had such problems.