[Interest] MacOS 10.4 + QT 4.7.4 + my app linking error

Sergey sh0375 at gmail.com
Tue Nov 27 14:14:44 CET 2012


I didn't link with zlib at all.
I solved problem adding this line to the pro file:

include(...qt/4.7.4/qt-everywhere-opensource-src-4.7.4/src/3rdparty/zlib_dependency.pri)

- I use exact path to the qt sources

$$[QT_INSTALL_PREFIX]/SRC does not contain sources of qt. It looks like 
"make install" does not copy source files to the installation folder.
Is there a way to confugure qt build process so that source files would 
be placed to the $$[QT_INSTALL_PREFIX]/SRC?

27.11.2012 16:26, Michael Jackson wrote:
> On Nov 27, 2012, at 6:04 AM, Sergey <sh0375 at gmail.com> wrote:
>
>> Hello,
>>
>> I built QT 4.7.4 on MacOS 10.4 Tiger.
>> When I build my app, I get this error while linking:
>>
>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386
>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
>> _CFDataGetBytePtr
>> _CFDataGetLength
>> _CFDataGetTypeID
>> _CFGetTypeID
>> ___CFConstantStringClassReference
>> _FrontWindow
>> _GetCurrentProcess
>> _SelectWindow
>> _SetFrontProcess
>> _ShowWindow
>> _deflate
>> _deflateEnd
>> _deflateInit2_
>> _deflateInit_
>> _inflate
>> _inflateEnd
>> _inflateInit2_
>> _inflateInit_
>> _zError
>> _zlibVersion
>> collect2: ld returned 1 exit status
>>
>>
>> Where these symbols must be defined and how to add them to linking process?
>>
>>
>> --
>> Thanks!
> Looks like you are building for i386 but the zLib that you are linking against was built for another arch (ppc I am assuming since you are on 10.4). Which zLib are you linking against? System supplied or  Qt supplied or somewhere else?
>
> ----
> Mike J.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>




More information about the Interest mailing list