How to build Qt 4.8 Libraries for Macintosh : a Rough Note

原创 2016年08月29日 16:21:31

     I have done the work for a long time, this is a rough note for the purpose: build Qt libraries on/for Mac.

    零.  You need to download the Old mac SDK. however, the download location in Apple's website is difficult to be found.  In here, I give a link where is straightforward to download the OS X SDKs.:
https://github.com/phracker/MacOSX-SDKs

After download the SDKs,  I put them in the root directory (/).

   一. Download  Qt 4.8 everywhere. The latest and final 4.8 version is 4.8.7, but for my case, I used 4.8.5 and 4.8.6. I do not sure if the 4.8.7 could pass the compilation though my configuration successfully.


 二.  My configuration applying Qt 4.8 + Mac is :


 ./configure   --prefix=$PWD/built \

                -platform macx-g++ \

                -sdk /Developer/SDKs/MacOSX10.5.sdk \

                -arch x86 \

                -no-avx -no-sse4.1 -no-sse4.2 \

                -opensource  -release \

                -no-stl -no-webkit -no-qt3support -no-phonon-backend -no-phonon

The parameters are:

-arch x86: the lbraries would be built in 32 bit.

 -platform macx-g++ : use gcc for this compilation, if you adopt clang ( macx-llvm), there would occur duplicate  function body error.

                
 -sdk /Developer/SDKs/MacOSX10.5.sdk :  Set OSX 10.5 SDK as target SDK.

  
-no-avx -no-sse4.1 -no-sse4.2

      disable some cpu instructions, to avoid crash in some old machines.




-no-stl -no-webkit -no-qt3support -no-phonon-backend -no-phonon

      Disable some middleware which is not be installed in this mach machinese, those middleware are like quicktime, mysqrl driver and so forth. If you do not add those parameters, it might incur compilation error for the necessary libraries could not been found.


版权声明:本文歡迎轉載 但請留下原文出處

相关文章推荐

How to Install Dev-C++ and the GLUT Libraries for Compiling OpenGL Programs with ANSI C

How to Install Dev-C++ and the GLUT Libraries for Compiling OpenGL Programs with ANSI C (versio...

How to Build Your Own Rogue GSM BTS for Fun and Profit

From:https://evilsocket.net/2016/03/31/how-to-build-your-own-rogue-gsm-bts-for-fun-and-profit/ ...

How to build a cross compiler for your Raspberry Pi

Step 1. Build the Toolchain Since we are going to run in laptop with an Intel processor, and we w...
  • Charein
  • Charein
  • 2014年02月26日 20:16
  • 2286

[Backup] How to build and use Pansenti / meta-pansenti for Gumstix Overo Ironstorm

The original post Building small board systems with the Yocto Project is not available, here is the ...
  • Pyen
  • Pyen
  • 2013年11月12日 02:22
  • 2007

How to Build An Action and Emotion Database for Simulated Driver’s State Recognition

Introduction   We use video data from simulated driving scenarioto analyze the state of the driver. ...
  • air1894
  • air1894
  • 2014年11月30日 19:13
  • 615

How to build Android adb for ARM .

Thanks to Google I’ve just found searching in many Forum threads the way to build adb on ARM arch. ...

How to write shared libraries.pdf

  • 2013年05月07日 11:54
  • 749KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:How to build Qt 4.8 Libraries for Macintosh : a Rough Note
举报原因:
原因补充:

(最多只允许输入30个字)