From fb05cf6cb388513553b792636ee4f6c7502d028f Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 13 Jul 2014 21:44:42 +0400 Subject: [PATCH] static linking for liblzma in os x + xcode.md fixed --- Telegram/Telegram.xcodeproj/project.pbxproj | 4 ++-- XCODE.md | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Telegram/Telegram.xcodeproj/project.pbxproj b/Telegram/Telegram.xcodeproj/project.pbxproj index 402143fed..349b9e25c 100644 --- a/Telegram/Telegram.xcodeproj/project.pbxproj +++ b/Telegram/Telegram.xcodeproj/project.pbxproj @@ -1601,7 +1601,7 @@ "-L/usr/local/Qt-5.3.1/plugins/imageformats", "-lz", "-lm", - "-llzma", + /usr/local/lib/liblzma.a, ); PRODUCT_NAME = Telegram; QT_LIBRARY_SUFFIX = ""; @@ -1725,7 +1725,7 @@ "-L/usr/local/Qt-5.3.1/plugins/imageformats", "-lz", "-lm", - "-llzma", + /usr/local/lib/liblzma.a, ); PRODUCT_NAME = Telegram; QT_LIBRARY_SUFFIX = _debug; diff --git a/XCODE.md b/XCODE.md index a7a5080ce..3c606de05 100644 --- a/XCODE.md +++ b/XCODE.md @@ -33,14 +33,13 @@ Extract openssl-1.0.1h.tar.gz and copy everything from **openssl-1.0.1h** to **/ ####liblzma -http://tukaani.org/xz/ > Download [**xz-5.0.5.tar.gz](http://tukaani.org/xz/xz-5.0.5.tar.gz) +http://tukaani.org/xz/ > Download [**xz-5.0.5.tar.gz**](http://tukaani.org/xz/xz-5.0.5.tar.gz) Extract to **/Users/user/TBuild/Libraries** #####Building library -* in Terminal go to **/Users/user/TBuild/Libraries/xz-5.0.5** -* there run +In Terminal go to **/Users/user/TBuild/Libraries/xz-5.0.5** and there run ./configure make @@ -60,8 +59,7 @@ or download in ZIP and extract to **/Users/user/TBuild/Libraries**, rename **lib #####Building library -* in Terminal go to **/Users/user/TBuild/Libraries/libexif-0.6.20** -* there run +In Terminal go to **/Users/user/TBuild/Libraries/libexif-0.6.20** and there run ./configure make @@ -77,8 +75,7 @@ Apply patch – copy (with overwrite!) everything from **/Users/user/TBuild/tdes #####Building library -* in Terminal go to **/Users/user/TBuild/Libraries/QtStatic** -* there run +In Terminal go to **/Users/user/TBuild/Libraries/QtStatic** and there run ./configure -debug-and-release -opensource -static -opengl desktop -nomake examples -platform macx-clang y