static linking for liblzma in os x + xcode.md fixed

This commit is contained in:
John Preston 2014-07-13 21:44:42 +04:00
parent 8e3ba09047
commit fb05cf6cb3
2 changed files with 6 additions and 9 deletions

View File

@ -1601,7 +1601,7 @@
"-L/usr/local/Qt-5.3.1/plugins/imageformats", "-L/usr/local/Qt-5.3.1/plugins/imageformats",
"-lz", "-lz",
"-lm", "-lm",
"-llzma", /usr/local/lib/liblzma.a,
); );
PRODUCT_NAME = Telegram; PRODUCT_NAME = Telegram;
QT_LIBRARY_SUFFIX = ""; QT_LIBRARY_SUFFIX = "";
@ -1725,7 +1725,7 @@
"-L/usr/local/Qt-5.3.1/plugins/imageformats", "-L/usr/local/Qt-5.3.1/plugins/imageformats",
"-lz", "-lz",
"-lm", "-lm",
"-llzma", /usr/local/lib/liblzma.a,
); );
PRODUCT_NAME = Telegram; PRODUCT_NAME = Telegram;
QT_LIBRARY_SUFFIX = _debug; QT_LIBRARY_SUFFIX = _debug;

View File

@ -33,14 +33,13 @@ Extract openssl-1.0.1h.tar.gz and copy everything from **openssl-1.0.1h** to **/
####liblzma ####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** Extract to **/Users/user/TBuild/Libraries**
#####Building library #####Building library
* in Terminal go to **/Users/user/TBuild/Libraries/xz-5.0.5** In Terminal go to **/Users/user/TBuild/Libraries/xz-5.0.5** and there run
* there run
./configure ./configure
make make
@ -60,8 +59,7 @@ or download in ZIP and extract to **/Users/user/TBuild/Libraries**, rename **lib
#####Building library #####Building library
* in Terminal go to **/Users/user/TBuild/Libraries/libexif-0.6.20** In Terminal go to **/Users/user/TBuild/Libraries/libexif-0.6.20** and there run
* there run
./configure ./configure
make make
@ -77,8 +75,7 @@ Apply patch copy (with overwrite!) everything from **/Users/user/TBuild/tdes
#####Building library #####Building library
* in Terminal go to **/Users/user/TBuild/Libraries/QtStatic** In Terminal go to **/Users/user/TBuild/Libraries/QtStatic** and there run
* there run
./configure -debug-and-release -opensource -static -opengl desktop -nomake examples -platform macx-clang ./configure -debug-and-release -opensource -static -opengl desktop -nomake examples -platform macx-clang
y y