[Interest] static libs/osx

Paul Miller stelefx at gmail.com
Mon Dec 16 17:58:42 CET 2013


On 12/16/2013 10:38 AM, Thiago Macieira wrote:
> On segunda-feira, 16 de dezembro de 2013 14:26:12, Tim Blechmann wrote:
>>> Undefined symbols for architecture x86_64:
>>>    "_compress2", referenced from:
>>>        qCompress(unsigned char const*, int, int) in
>>> libQt5Bootstrap.a(qbytearray.o) "_uncompress", referenced from:
>>>        qUncompress(unsigned char const*, int) in
>>> libQt5Bootstrap.a(qbytearray.o)>
>>> ld: symbol(s) not found for architecture x86_64
>>>
>>> Undefined symbols for architecture x86_64:
>>>    "_compress2", referenced from:
>>>        qCompress(unsigned char const*, int, int) in
>>> libQt5Bootstrap.a(qbytearray.o)>
>>> clang: error: linker command failed with exit code 1 (use -v to see
>>> invocation) make[3]: *** [../../../bin/rcc] Error 1
>>>
>>>    "_uncompress", referenced from:
>>>        qUncompress(unsigned char const*, int) in
>>> libQt5Bootstrap.a(qbytearray.o)
>> any idea? or even better: some documentation on how to compile qt as
>> static library on osx
>
> No one tries that. You're entirely on your own. Patches will be accepted once
> you get it working.
>
> For those cases, see about including zlib.pri or zlib_dependency.pri in
> bootstrap.pri. See the other .pri files that include zlib (tools.pri, something
> in QtGui and something in QtNetwork too).

Also, simply adding -lz to your final link stage in your main 
application should do it.




More information about the Interest mailing list