LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Compiling against customised libraries (http://www.linuxquestions.org/questions/programming-9/compiling-against-customised-libraries-948625/)

rhlee 06-05-2012 09: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 02:25 PM

Set PKG_CONFIG_PATH:

Quote:

PKG_CONFIG_PATH
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.
http://linux.die.net/man/1/pkg-config
Quote:

(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 02:46 PM.