No option to open TIFs (probably more of a compile question)
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
No option to open TIFs (probably more of a compile question) | Tom Cat | 25 Apr 20:29 |
No option to open TIFs (probably more of a compile question) | Carol Spears | 25 Apr 21:23 |
No option to open TIFs (probably more of a compile question) | Tom Cat | 25 Apr 21:32 |
No option to open TIFs (probably more of a compile question) | Carol Spears | 25 Apr 22:11 |
No option to open TIFs (probably more of a compile question) | Tom Cat | 25 Apr 22:41 |
No option to open TIFs (probably more of a compile question) | Carol Spears | 26 Apr 00:57 |
No option to open TIFs (probably more of a compile question) | Owen | 26 Apr 07:22 |
No option to open TIFs (probably more of a compile question) | Tom Cat | 26 Apr 18:19 |
No option to open TIFs (probably more of a compile question) | Tom Cat | 28 Apr 17:22 |
No option to open TIFs (probably more of a compile?question) | Pär Forsling | 27 Apr 00:35 |
No option to open TIFs (probably more of a compile question)
Hi folks,
I'm sorry to barge in here, but I don't really know where else to turn.
I'm on RH9. I finally decided to upgrade the GIMP from 1.3.x to 2.2.6 (more about that in a minute).
The problem I have right now is that it will not open or write tiff's. Now I suspect it is b/c of how I installed it.
I installed into a custom location (with the --prefix option when I ran configure). During the upgrade, the first thing I discovered was that I needed to upgrade GTK+ and GLib. A while ago I tried upgrading those packages and realized that was a terrible idea. So I found http://www.cryptnet.net/fdp/gtk/local_install.html which told me how to install them in a different directory and use them.
So that's what I did, I installed GTK+ 2.6.7 and glib 2.6.4 into my
$HOME/usr directory. I ran into a problem with them complaining about
some things and I ended up installing the following into the custom
directory as well:
atk 1.9.0
fontconfig 2.2.96
freetype 2.1.9
glib 2.6.4
gtk+ 2.6.7
pango 1.8.1
pkgconfig 0.17.1
libtiff 3.7.2
During the install I had to set a number of environmental vars:
SED=sed
LDFLAGS=-L/home/strycat/usr/lib
LD_LIBRARY_PATH=/home/strycat/usr/lib
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/strycat/bin:/home/strycat/usr/bin/
LD_RUN_PATH=/home/strycat/usr/lib
PKG_CONFIG_LIBDIR=/home/strycat/usr/lib/pkgconfig/:/home/strycat/usr/lib/
PKG_CONFIG_PATH=/home/strycat/usr/:/home/strycat/usr/lib/pkgconfig/:/home/strycat/usr/lib/
LIBTIFF=/home/strycat/usr/lib -ltiff
FREETYPE_CONFIG='/home/strycat/usr/bin/freetype-config'
Now once I did all of that that I compiled the gimp. It complained about not having gimp-print so I used the --disable-print option when I ran configure. It complied and installed fin into $HOME/usr
However it doesn't seem to know anything about tiff files now. I'm pretty sure I've done something wrong while compiling it. Can anyone help? I've been struggling with this all weekend.
Thanks,
Tom
No option to open TIFs (probably more of a compile question)
On Mon, Apr 25, 2005 at 02:29:01PM -0400, Tom Cat wrote:
However it doesn't seem to know anything about tiff files now. I'm pretty sure I've done something wrong while compiling it. Can anyone help? I've been struggling with this all weekend.
do you have libtiff-dev or whatever red hat calls these things? if you are building gimp, you need the header files which distributions deliver separately.
carol
No option to open TIFs (probably more of a compile question)
Thanks for the reply. I didn't install the rpms, I complied everything from source. It was the only way I knew I could force them into my custom directory. I downloaded libtiff from http://www.libtiff.org/
On 4/25/05, Carol Spears wrote:
On Mon, Apr 25, 2005 at 02:29:01PM -0400, Tom Cat wrote:
However it doesn't seem to know anything about tiff files now. I'm pretty sure I've done something wrong while compiling it. Can anyone help? I've been struggling with this all weekend.
do you have libtiff-dev or whatever red hat calls these things? if you are building gimp, you need the header files which distributions deliver separately.
carol
No option to open TIFs (probably more of a compile question)
On Mon, Apr 25, 2005 at 03:32:40PM -0400, Tom Cat wrote:
Thanks for the reply. I didn't install the rpms, I complied everything from source. It was the only way I knew I could force them into my custom directory. I downloaded libtiff from http://www.libtiff.org/
a few things here, and not much actual help, so if you want to quit reading it, this is the warning.
1) google is trying to change the way the gimp lists respond to mail, i think.
2) you are using an old linux distribution. i am sorry about that. it is the ultimate in cheap and lazy and you will still be able to get gimp to work.
3) i was successful in getting gimp to build in /usr/ and i was successful in getting gimp to build in /usr/local/. the reason my experiences are limited to this is that someone who is competent with computers is running my system.
good luck with your build,
carol
No option to open TIFs (probably more of a compile question)
I'm confused what do you mean by item #1?
As for #2 & #3, I have a very stable system. That is part of the reason, I want to install the gimp in $HOME/usr not /usr or /usr/local. It doesn't seem know anything about tiffs. I've also tried the libtiff at ftp://ftp.gimp.org/pub/gimp/libs/ I had to recompile gtk+ and set CFLAGS='-I/home/strycat/usr/include' to get that to compile. However gimp does not give any errors but it just seems to ignore libtiff. Is there some option I can force it to look for libtiff?
Thanks,
-Tom
On 4/25/05, Carol Spears wrote:
On Mon, Apr 25, 2005 at 03:32:40PM -0400, Tom Cat wrote:
Thanks for the reply. I didn't install the rpms, I complied everything from source. It was the only way I knew I could force them into my custom directory. I downloaded libtiff from http://www.libtiff.org/
a few things here, and not much actual help, so if you want to quit reading it, this is the warning.
1) google is trying to change the way the gimp lists respond to mail, i think.
2) you are using an old linux distribution. i am sorry about that. it is the ultimate in cheap and lazy and you will still be able to get gimp to work.
3) i was successful in getting gimp to build in /usr/ and i was successful in getting gimp to build in /usr/local/. the reason my experiences are limited to this is that someone who is competent with computers is running my system.
good luck with your build,
carol
No option to open TIFs (probably more of a compile question)
On Mon, Apr 25, 2005 at 04:41:09PM -0400, Tom Cat wrote: On 4/25/05, Carol Spears wrote:
1) google is trying to change the way the gimp lists respond to mail, i think.
I'm confused what do you mean by item #1?
many pidgeons will die before the curmudgeons change the way they write their mail.
2) you are using an old linux distribution. i am sorry about that. it is the ultimate in cheap and lazy and you will still be able to get gimp to work.
3) i was successful in getting gimp to build in /usr/ and i was successful in getting gimp to build in /usr/local/. the reason my experiences are limited to this is that someone who is competent with computers is running my system.
As for #2 & #3, I have a very stable system. That is part of the reason, I want to install the gimp in $HOME/usr not /usr or /usr/local. It doesn't seem know anything about tiffs. I've also tried the libtiff at ftp://ftp.gimp.org/pub/gimp/libs/ I had to recompile gtk+ and set CFLAGS='-I/home/strycat/usr/include' to get that to compile. However gimp does not give any errors but it just seems to ignore libtiff. Is there some option I can force it to look for libtiff?
my computer is stable. much more stable than this world i think. i brag about being lazy, so when i say something is the ultimate of lazy, it is a compliment. whoever is running your computer is making you do his work. please congratulate your system administrator for a job well done for me.
my computer is stable and i can build gimp. i failed some in lazy for this to happen, however.
ask your system administrator for the help. they have the permission because they have the smarts for it, right?
all i did was admit that i have never done this.
carol
No option to open TIFs (probably more of a compile question)
On Mon, 25 Apr 2005 14:29:01 -0400 Tom Cat wrote:
During the install I had to set a number of environmental vars:
SED=sed LDFLAGS=-L/home/strycat/usr/lib
LD_LIBRARY_PATH=/home/strycat/usr/lib PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/strycat/bin:/home/strycat/usr/bin/ LD_RUN_PATH=/home/strycat/usr/lib
PKG_CONFIG_LIBDIR=/home/strycat/usr/lib/pkgconfig/:/home/strycat/usr/lib/ PKG_CONFIG_PATH=/home/strycat/usr/:/home/strycat/usr/lib/pkgconfig/:/home/strycat/usr/lib/ LIBTIFF=/home/strycat/usr/lib -ltiff FREETYPE_CONFIG='/home/strycat/usr/bin/freetype-config'
What happens if as root you run 'ldconfig -v'?
or better still 'ldconfig -v|grep tiff'
Does libtiff show up where expected?
Owen
No option to open TIFs (probably more of a compile question)
I think this has hit on the problem.... libtiff is showing up in /usr/lib instead of $HOME/usr/lib It is also the ancient version instead of the new version.
Now how the heck to I get it to look in the right place? Another env variable? Another option in the configure script?
Thanks.
On 4/26/05, Owen wrote:
On Mon, 25 Apr 2005 14:29:01 -0400 Tom Cat wrote:
During the install I had to set a number of environmental vars:
SED=sed LDFLAGS=-L/home/strycat/usr/lib
LD_LIBRARY_PATH=/home/strycat/usr/lib PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/strycat/bin:/home/strycat/usr/bin/ LD_RUN_PATH=/home/strycat/usr/lib
PKG_CONFIG_LIBDIR=/home/strycat/usr/lib/pkgconfig/:/home/strycat/usr/lib/ PKG_CONFIG_PATH=/home/strycat/usr/:/home/strycat/usr/lib/pkgconfig/:/home/strycat/usr/lib/ LIBTIFF=/home/strycat/usr/lib -ltiff FREETYPE_CONFIG='/home/strycat/usr/bin/freetype-config'What happens if as root you run 'ldconfig -v'?
or better still 'ldconfig -v|grep tiff'
Does libtiff show up where expected?
Owen
No option to open TIFs (probably more of a compile?question)
Tom Cat wrote:
I think this has hit on the problem.... libtiff is showing up in /usr/lib instead of $HOME/usr/lib It is also the ancient version instead of the new version.
Now how the heck to I get it to look in the right place? Another env variable? Another option in the configure script?
You can set the $LD_PRELOAD env. variable before you start gimp, preferably in a wrapper script. Example:
#!/bin/bash LD_PRELOAD=/path/to/libtiff.so.3.7.1 exec /path/to/gimp "$@"
See http://uberhip.com/godber/interception/html/slide_5.html for explanation of LD_PRELOAD.
No option to open TIFs (probably more of a compile question)
Thanks to everyone who responded (both on and off the list).
As I suspected I needed to recompile the gimp. However I also needed to recompile glib, gtk, pango, atk, fontconfig, freetype, and libtiff. The thread at http://www.linuxquestions.org/questions/member.php?action=mailform&userid=179995 was very helpful and amit rao was extremely nice in providing personal help.
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/home/strycat/usr/lib/pkgconfig LD_LIBRARY_PATH=/usr/local/lib:/home/strycat/usr/lib PATH=$PATH:/home/strycat/usr/bin
All of the aforementioned packages needed to have the --prefix=/home/strycat/usr added to the ./configure line.
I still have a few minor problems (couldn't find SGV or libgtkhtml) but the main problem of no tiff support has been resolved.
After all of this, the GIMP 2.2 had better be the best program in the whole world.
Thanks again to everyone who helped.
-Tom
On 4/26/05, Tom Cat wrote:
I think this has hit on the problem.... libtiff is showing up in /usr/lib instead of $HOME/usr/lib It is also the ancient version instead of the new version.
Now how the heck to I get it to look in the right place? Another env variable? Another option in the configure script?
Thanks.
On 4/26/05, Owen wrote:
On Mon, 25 Apr 2005 14:29:01 -0400 Tom Cat wrote:
During the install I had to set a number of environmental vars:
SED=sed LDFLAGS=-L/home/strycat/usr/lib
LD_LIBRARY_PATH=/home/strycat/usr/lib PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/strycat/bin:/home/strycat/usr/bin/ LD_RUN_PATH=/home/strycat/usr/lib
PKG_CONFIG_LIBDIR=/home/strycat/usr/lib/pkgconfig/:/home/strycat/usr/lib/ PKG_CONFIG_PATH=/home/strycat/usr/:/home/strycat/usr/lib/pkgconfig/:/home/strycat/usr/lib/ LIBTIFF=/home/strycat/usr/lib -ltiff FREETYPE_CONFIG='/home/strycat/usr/bin/freetype-config'What happens if as root you run 'ldconfig -v'?
or better still 'ldconfig -v|grep tiff'
Does libtiff show up where expected?
Owen