Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-05-2012, 08:21 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 11

Rep: Reputation: 0
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?
Old 06-05-2012, 01:25 PM   #2
Senior Member
Registered: Nov 2005
Distribution: Arch
Posts: 2,997

Rep: Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194

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?
1 members found this post helpful.


compile, configure, libraries, pkg-config

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC8 customised distro (inc customised packages) scaryAardvark Linux - Software 4 06-16-2008 08:10 AM
Compiling with static libraries trek413 Linux - Newbie 4 10-19-2006 07:14 PM
Compiling new libraries boris-78 Linux - Newbie 4 09-07-2006 01:26 PM
compiling development libraries deadlyhead Linux - Newbie 3 06-05-2005 03:52 AM
Compiling C code with libraries OldGuru Programming 4 09-18-2004 07:06 PM

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration