2009-06-09 12:27:40     qt ...again

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-06-09 12:27:40     qt ...again

Nikolay Chokoev (IRELAND)

Message: 75411   

 

Hi,

 

I'm trying to build qt static (FLAT), but when I compile an application I have:

 

bfin-uclinux-g++ -elf2flt -Wl,-O1 -o test main.o    -Wl,-rpath-link,/usr/dlnx764/svn/uclinux-dist/staging/usr/lib -L/usr/dlnx764/svn/uclinux-dist/staging/usr/lib -lQtGui -lQtNetwork -lQtCore -lpthread

/usr/dlnx764/svn/uclinux-dist/staging/usr/lib/libQtGui.a(qprintengine_pdf.o): In function `QPdfEnginePrivate::writeCompressed(char const*, int)':

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qprintengine_pdf.cpp:(.text+0x60): undefined reference to `_compress'

/usr/dlnx764/svn/uclinux-dist/staging/usr/lib/libQtGui.a(qprintengine_pdf.o): In function `QPdfEnginePrivate::writeCompressed(QIODevice*)':

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qprintengine_pdf.cpp:(.text+0x3112): undefined reference to `_deflateInit_'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qprintengine_pdf.cpp:(.text+0x31a4): undefined reference to `_deflate'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qprintengine_pdf.cpp:(.text+0x325e): undefined reference to `_deflateEnd'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qprintengine_pdf.cpp:(.text+0x3298): undefined reference to `_deflate'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/painting/qprintengine_pdf.cpp:(.text+0x32ce): undefined reference to `_deflateEnd'

/usr/dlnx764/svn/uclinux-dist/staging/usr/lib/libQtGui.a(qzip.o): In function `QZipWriterPrivate::addEntry(QZipWriterPrivate::EntryType, QString const&, QByteArray const&)':

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0xf30): undefined reference to `_deflateInit2_'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0xf6e): undefined reference to `_crc32'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0xf7a): undefined reference to `_crc32'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0x1276): undefined reference to `_deflate'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0x1282): undefined reference to `_deflateEnd'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0x12bc): undefined reference to `_deflateEnd'

/usr/dlnx764/svn/uclinux-dist/staging/usr/lib/libQtGui.a(qzip.o): In function `QZipReader::fileData(QString const&) const':

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0x24fc): undefined reference to `_inflateInit2_'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0x256e): undefined reference to `_inflate'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0x257a): undefined reference to `_inflateEnd'

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/gui/text/qzip.cpp:(.text+0x25c4): undefined reference to `_inflateEnd'

/usr/dlnx764/svn/uclinux-dist/staging/usr/lib/libQtCore.a(qbytearray.o): In function `qUncompress(unsigned char const*, int)':

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qbytearray.cpp:(.text+0x1cf8): undefined reference to `_uncompress'

/usr/dlnx764/svn/uclinux-dist/staging/usr/lib/libQtCore.a(qbytearray.o): In function `qCompress(unsigned char const*, int, int)':

/usr/dlnx764/svn/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.5.1/src/corelib/tools/qbytearray.cpp:(.text+0x1ee4): undefined reference to `_compress2'

collect2: ld returned 1 exit status

make[3]: *** [test] Error 1

make[3]: Leaving directory `/usr/dlnx764/svn/uclinux-dist/user/picturetest/picturetest-0.1.0/picturetest-qt'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/usr/dlnx764/svn/uclinux-dist/user/picturetest'

make[1]: *** [picturetest/_only] Error 2

make[1]: Leaving directory `/usr/dlnx764/svn/uclinux-dist/user'

make: *** [user/picturetest/_only] Error 2

How to solve it?

 

Regards,

Nikolay

QuoteReplyEditDelete

 

 

2009-06-09 16:17:06     Re: qt ...again

Mike Frysinger (UNITED STATES)

Message: 75414   

 

those are zlib functions, so link in zlib if you're using it

 

QuoteReplyEditDelete

 

 

2009-06-10 04:17:49     Re: qt ...again

Nikolay Chokoev (IRELAND)

Message: 75438   

 

thanks!

Attachments

    Outcomes