LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 10-02-2012, 10:40 AM   #1
romagnolo
Member
 
Registered: Jul 2009
Location: Montaletto
Distribution: Debian GNU/Linux
Posts: 89

Rep: Reputation: 4
Build Gimp from custom-path libraries


I'm installing Gimp (2.6.10) on Debian. The system has all the required libraries (dependencies) installed in the default directories, so giving to Gimp
Code:
./configure && make && make install
completes fine, and installs Gimp.

But I compiled some of the dependencies manually, for needed performance. These are GEGL, Glib, and BABL. All them are correctly installed in
Code:
--prefix /usr/handsoftware
I configure Gimp with these essential flags: (there are more flags to strip down unused features from the binary)
Code:
./configure --prefix=/usr/handsoftware/ PKG_CONFIG_PATH="../gegl/:../babl/" CXXFLAGS="-march=pentium4 -O3" CXXFLAGS="-march=pentium4 -O3"
where PKG_CONFIG_PATH points to the source directories of GEGL and BABL from which these libraries were compiled and installed. I don't know if this setting is correct nor required.

This ./configures correctly, but make fails pointing out that gegl.h is missing.

gegl.h is installed in two points in my system:
1) in the GNU include standard directory, where it's been installed by APT
2) in ../gegl/ , as pointed by PKG_CONFIG_PATH
I have to point Gimp to the manually-installed includes rather than to the ones installed by APT, as the formers are those compatible with the manually installed library. Can I do this?
 
Old 10-03-2012, 08:13 AM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
I do not think PKG_CONFIG_PATH is an option to configure. I tbelieve configure is looking for it as an env var. Also, you cannot use relative paths, they must be full pathnames. Try this:
Code:
export PKG_CONFIG_PATH="full/path/to/gegl:/full/path/to/babl:$PKG_CONFIG_PATH"
./configure [options]
Most configure scripts should give you help with:
Code:
./configure --help
Hope this helps.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build a custom distro with custom boot and libraries adrian2009 Linux - Distributions 3 08-09-2012 03:16 AM
LXer: Printing Your Custom GIMP Holiday Cards LXer Syndicated Linux News 0 12-18-2009 05:02 AM
How to make a custom wallpaper with Gimp or other?? linus72 Linux - Software 3 07-26-2009 08:26 PM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM
Custom distro installer that uses GTK libraries fotoguy Linux - Software 2 06-02-2006 11:29 PM


All times are GMT -5. The time now is 02:48 AM.

Main Menu
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