PDA

View Full Version : Woking with tiff Files



nareshqt
5th June 2008, 08:13
Hi,

I want to get some of the Tags in a given Tiff file,
Please give me an idea on how can i achieve that.....

Thanks,
knrcse

marcel
5th June 2008, 08:38
try with libtiff...
or, if you don't want any 3rd party deps, build your own parser with qt. it is not that hard, jujst take the tiff spec and use a QDataStream to take chunks out and interpret them
I estimate 8 hours for this.

Good Luck!

nareshqt
5th June 2008, 11:46
Hi,
Thanks for ur quick responce..
I started trying with libtiff.
i downloaded Tiff3.8.2 and done the configuration...
the libtiff.dylib which i got is working with PPC only..
so i downloaded Tiff in intel machine and configured and got the libtiff.dylib for intel architecure

then i combined the above two using LIPO tool to get the Universal dylib..

eventhough its giving the fallowing errors

---------------------------------------------------------
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiff.3.dylib malformed object (unknown load command 8)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiff.dylib malformed object (unknown load command 8)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiff.dylib malformed object (unknown load command 8)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiffxx.3.dylib malformed object (unknown load command 8)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiffxx.dylib malformed object (unknown load command 8)
/Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiffxx.dylib malformed object (unknown load command 8)
--------------------------------------------------------


is ther any wrong in the procedure...


Thanks,
knrcse

patrik08
5th June 2008, 12:22
Have you -qt-gif -qt-libpng -qt-libjpeg -qt-libtiff on configure cache? QT...

I work on a mini mac PPC Tiger i have install the latest xcode all sdk
and i configure qt4.4 on two dir

/Developer/qt && /Developer/qts

the qts ist -static universal to fast make the bundle dir
and qt no universal to work

i must only swap dir on profile file...

if Qt4.4 has included lib tif why not use it...

Your Lipo error only display it that you use not all lib as universal!
only one lib from all is only PPC , and you have a build error...

nareshqt
9th June 2008, 11:22
Hi ,
I am trying with 3rd party library Tiff 3.8.2 .
I had build Universal binary for libTiff.dylib. which is not working.
TIFFOpen() itself failing by giving fallowing message..

----------------------------
Not a TIFF file, bad version number 10752
----------------------------

i don't know wher the things are going wrong..

Pls let me know, if any one knows about the above problem...


Thanks ,
knrcse