LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2014, 11:27 AM   #1
Rizla
Member
 
Registered: Aug 2003
Location: Bristol, Uk
Distribution: Fedora Core 4
Posts: 48

Rep: Reputation: 15
Understanding pkg-config & PKG_CONFIG_PATH when compiling UFRaw


Hi,

I'm trying to compile UFRaw.
I've already compiled both gtk+2.0 and exiv2 into /usr/local/lib
pkg-config has both gtk+-2.0.pc and exiv2.pc in /usr/local/lib/pkgconfig

When I run ./configure with no PKG_CONFIG_PATH envar set, the script finds gtk libs, but not exiv2

If I set PKG_CONFIG_PATH to be /usr/local/lib/pkgconfig the configure script fails to find gtk+, but does find exiv2.

In each case (with or without PKG_CONFIG_PATH set) I can get the configure script to find the missing gtk or exiv by defining GTK_LIBS/GTK_CFLAGS or EXIV2_LIBS/EXIV2_CFLAGS from the data defined in the .pc files in /usr/local/lib/pkgconfig/.

To note, the following only return values if the PKG_CONFIG_PATH is set to /usr/local/lib/pkgconfig
pkg-config --modversion gtk+-2.0
pkg-config --modversion exiv2


I would have assumed that the configure script would find gtk with the PKG_CONFIG_PATH envar set as it does find exiv2 in the same location. I've checked for other pc files and there's nothing else for gtk ourside of /usr/local/

This is on Amazon Linux 64bit

Any help with why this is happening would be great.

Thanks,
 
Old 01-29-2014, 10:04 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Amazon Linux 64bit
?????????????

a guess
it is based on rhel

as such /usr/local is NOT in the system path
rhel based systems do not use that location by default

if you are NOT using "--prefix=/usr" in the configure line
then the DEBIAN default location of /usr/local will be used

and cause all kinds of problems


rebuild the software so that is installs to /usr ( and all the prerequisites )

or add a rather LONG string to the system variables

well many strings really

PATH
LD_LIBRARY_PATH
PKG_CONFIG_PATH

--- an example and might not work on your system
edit the file"/etc/profile" add these ( or create "/etc/profile.local" or whatever the WARNING in /etc/profile says to use)

/etc/profile.local
Code:
PATH=$PATH:/usr/local

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64:/usr/lib


PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64/pkgconfg:/usr/libpkgconfg

export PATH LD_LIBRARY_PATH PKG_CONFIG_PATH

PS.
however you REALLY should be using your package manager and installing the ufraw BUILT FOR YOUR INSTALL

Last edited by John VV; 01-29-2014 at 10:10 PM.
 
Old 01-30-2014, 05:25 AM   #3
Rizla
Member
 
Registered: Aug 2003
Location: Bristol, Uk
Distribution: Fedora Core 4
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks, thought it would be something along these line.
I would have loved to use the package manager, but there is no package for UFRaw available.

Thanks again .
 
  


Reply

Tags
compiling, configuring, gtk+, pkg-config



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
How to adjust PKG_CONFIG_PATH - fontconfig-2.4.0 config error intramaweb Linux - Software 2 09-20-2007 03:46 PM
Compiling splashy pkg-config problem arubin Slackware 10 09-09-2007 10:36 AM
DPKG & "files list file for package `pkg-config' contains empty filename" error :( Angelus Debian 2 04-02-2005 07:34 AM
SuSE 9.1: compiling probs using pkg-config bitpicker Linux - Distributions 3 10-29-2004 05:38 AM
compiling pkg-config-0.15.0 pawn-o-matic Linux - General 0 12-24-2003 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:31 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
Open Source Consulting | Domain Registration