PDA

View Full Version : libtiff plugin ld errors



jeffpogo
19th May 2009, 17:11
I am trying to build the libtiff plugin using windows xp, mingw, and qt 4.5.1 does any one have any ideas on what is wrong? Thank you.

C:\Qt\2009.02\qt\src\plugins\imageformats\tiff>mingw32-make
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/2009.02/qt/src/plugins/imageformats/t
iff'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\2009.02\qt\plugins\imageformats\
libqtiffd4.a -o ..\..\..\..\plugins\imageformats\qtiffd4.dll object_script.qtiff
d.Debug -L"c:\Qt\2009.02\qt\lib" -L"c:\Qt\2009.02\qt\lib" tmp\obj\debug_shared\
qtiffd_resource_res.o -LC:\GnuWin\OpenSSL\0.9.8h\lib -LC:\GnuWin\libtiff\3.8.2\l
ib -LC:\pgsql\8.3\lib -lQtGuid4 -lQtCored4
Creating library file: c:\Qt\2009.02\qt\plugins\imageformats\libqtiffd4.a
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x731): In function `ZN12QTiffHandle
r4readEP6QImage':
C:/Qt/2009.02/qt/src/plugins/imageformats/tiff/qtiffhandler.cpp:134: undefined r
eference to `_imp__TIFFClientOpen'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x772):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:148: undefined reference to `_imp__TIFFGetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x78e):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:149: undefined reference to `_imp__TIFFGetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x90d):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:153: undefined reference to `_imp__TIFFReadRG
BAImageOriented'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x947):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:157: undefined reference to `_imp__TIFFGetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x963):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:158: undefined reference to `_imp__TIFFGetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x97f):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:159: undefined reference to `_imp__TIFFGetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0xb52):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:180: undefined reference to `_imp__TIFFClose'

./tmp\obj\debug_shared\qtiffhandler.o(.text+0xc79): In function `ZN12QTiffHandle
r5writeERK6QImage':
C:/Qt/2009.02/qt/src/plugins/imageformats/tiff/qtiffhandler.cpp:194: undefined r
eference to `_imp__TIFFClientOpen'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0xcd3):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:210: undefined reference to `_imp__TIFFSetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0xcf7):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:210: undefined reference to `_imp__TIFFSetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0xd1c):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:210: undefined reference to `_imp__TIFFSetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0xd62):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:210: undefined reference to `_imp__TIFFSetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0xdaf):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:210: undefined reference to `_imp__TIFFSetFie
ld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0xdda):C :/Qt/2009.02/qt/src/plugins/
imageformats/tiff/qtiffhandler.cpp:210: more undefined references to `_imp__TIFF
SetField' follow
./tmp\obj\debug_shared\qtiffhandler.o(.text+0xe0c): In function `ZN12QTiffHandle
r5writeERK6QImage':
C:/Qt/2009.02/qt/src/plugins/imageformats/tiff/qtiffhandler.cpp:217: undefined r
eference to `_imp__TIFFClose'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x1077): C:/Qt/2009.02/qt/src/plugins
/imageformats/tiff/qtiffhandler.cpp:237: undefined reference to `_imp__TIFFWrite
Scanline'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x1089): C:/Qt/2009.02/qt/src/plugins
/imageformats/tiff/qtiffhandler.cpp:238: undefined reference to `_imp__TIFFClose
'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x1141): C:/Qt/2009.02/qt/src/plugins
/imageformats/tiff/qtiffhandler.cpp:244: undefined reference to `_imp__TIFFClose
'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x1250): In function `ZNK12QTiffHand
ler6optionEN15QImageIOHandler11ImageOptionE':
C:/Qt/2009.02/qt/src/plugins/imageformats/tiff/qtiffhandler.cpp:261: undefined r
eference to `_imp__TIFFClientOpen'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x1283): C:/Qt/2009.02/qt/src/plugins
/imageformats/tiff/qtiffhandler.cpp:275: undefined reference to `_imp__TIFFGetFi
eld'
./tmp\obj\debug_shared\qtiffhandler.o(.text+0x129f): C:/Qt/2009.02/qt/src/plugins
/imageformats/tiff/qtiffhandler.cpp:276: undefined reference to `_imp__TIFFGetFi
eld'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [..\..\..\..\plugins\imageformats\qtiffd4.dll] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/2009.02/qt/src/plugins/imageformats/ti
ff'
mingw32-make: *** [debug-all] Error 2

jeffpogo
19th May 2009, 22:07
It works with the qt-libtiff ... (I got rid of the GnuWin32 tiff library)

I am going to use linux to write my application now.