ERROR: librtmp not found 解決方案
阿新 • • 發佈:2018-12-14
pkg-config --exists librtmp||echo no 顯示 no 說明pkg-config 沒有找到相應的 librtmp.pc 問題是librtmp自動生成的/MinGW/lib/pkgconfig/librtmp.pc 檔案格式有問題 原文是 prefix=/mingw exec_prefix=${prefix} libdir=/mingw/lib incdir=${prefix}/include Name: librtmp Description: RTMP implementation Version: v2.4 Requires: libssl,libcrypto URL: http://rtmpdump.mplayerhq.hu Libs: -L${libdir}[email protected]@ -lrtmp -lz -lssl -lcrypto Libs.private: -lws2_32 -lwinmm -lgdi32 Cflags: -I${incdir} [email protected]@ 修改成 prefix=/mingw exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: librtmp Description: RTMP implementation URL: http://rtmpdump.mplayerhq.hu Version: v2.4 Requires.private: Libs: -L${libdir}[email protected]@ -lrtmp Libs.private: -lws2_32 -lwinmm -lgdi32 -lm Cflags: -I${includedir} 修改之後 pkg-config --exists librtmp||echo no 就不顯示 no