Skip to content

librempeg incompatibility #3992

Description

@kiefernforst

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions