配置未找到 ffnvcodec 依賴項

配置未找到 ffnvcodec 依賴項

跑步時

    ./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib

我遇見了

    ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec

即使我已經克隆了外部 Nvidia 標頭存儲庫https://git.videolan.org/git/ffmpeg/nv-codec-headers.git,然後運行 make & make install。

Make install 將 ffnvcodec.pc 放入 /usr/local/lib/pkgconfig/ 中,該檔案在我執行時列出

    pkg-config --variable pc_path pkg-config

預設未設定 PKG_CONFIG_PATH,但我嘗試將上述命令的輸出匯出到 PKG_CONFIG_PATH。

但這一切都沒有奏效。我在 macOS 上。我有什麼遺漏的嗎?

相關內容