LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 06-05-2012, 09:21 AM   #1
rhlee
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, 02:25 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,541

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


Reply

Tags
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 09:10 AM
Compiling with static libraries trek413 Linux - Newbie 4 10-19-2006 08:14 PM
Compiling new libraries boris-78 Linux - Newbie 4 09-07-2006 02:26 PM
compiling development libraries deadlyhead Linux - Newbie 3 06-05-2005 04:52 AM
Compiling C code with libraries OldGuru Programming 4 09-18-2004 08:06 PM


All times are GMT -5. The time now is 03:49 PM.

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