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. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest