|
From: | Tony Theodore |
Subject: | Re: [Mingw-cross-env-list] Error linking libavcodec |
Date: | Tue, 9 Dec 2014 02:25:10 +1100 |
Specifying libs manually is very hard to get right in the first place - harder to maintain. You have to get them in the right order: your project --> deps --> deps of deps ... --> system libs and essentially flatten the dependency graph by hand. You were missing either/both "-lopencore-amrwb -lopencore-amrnb” (at least), ffmpeg has so many plugins and a new one may be enabled in the future that will break your build.
Using pkg-config takes care of both the dep graph and insulates you from future upstream changes - for packages that use it, we try to make sure it “just works”. Cheers, Tony |
[Prev in Thread] | Current Thread | [Next in Thread] |