-   Programming (
-   -   Compiling against customised libraries (

rhlee 06-05-2012 08:21 AM

Compiling against customised libraries
(Apologies if you've seen this on stackoverflow already.)

I've compiled mplayer2 against the prebuilt libavcodec library in ubuntu. It crashes under specific conditions.

Judging my the error message spat out, the problem lies with libavcodec. So what I would like to is do experiment with some of the libavcodec code. i.e. Compile my own version of libavcodec and then compile mplayer2 against that.

pkg-config will point towards the installed libavcodec libraries from ubuntu's apt-get. How do I point it to my own version of libavcodec? Or tell the configure script to use my version?

ntubski 06-05-2012 01:25 PM



A colon-separated (on Windows, semicolon-separated) list of directories to search for .pc files. The default directory will always be searched after searching the path; the default is libdir/pkgconfig:datadir/pkgconfig where libdir is the libdir where pkg-config and datadir is the datadir where pkg-config was installed.

(Apologies if you've seen this on stackoverflow already.)
Why didn't you give the link?

All times are GMT -5. The time now is 07:05 PM.