How to build Qt 4.8 Libraries for Macintosh : a Rough Note
来源:互联网 发布:cheshenkaiche最新域名 编辑:程序博客网 时间:2024/06/05 01:08
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.
0 0
- How to build Qt 4.8 Libraries for Macintosh : a Rough Note
- How to build MPI libraries for 64-bit integers
- how to build a cgal program in qt under ubuntu
- How to build a cross compiler for your Raspberry Pi
- How To Build a Yacc
- How To Build a Yacc
- How to "Build" a Computer
- How to Build a PREEMPT_RTkernel
- How to Build a House
- How To Build A Pipeline
- How to build OpenOCD for windows
- How to Build FFmpeg for Android
- How to build Android adb for ARM
- How to build Android adb for ARM .
- How to Build FFmpeg for Android
- How to Build FFmpeg for Android
- How to Build FFmpeg for Android
- How To Build CyanogenMod Android for smartphone
- 编译WordCount实例
- [安卓开发] 总结一些android的云测试平台
- Android画图最基本的三个对象(Color,Paint,Canvas)
- iOS8新添加的左滑出现按钮组的方法
- linux socket异步
- How to build Qt 4.8 Libraries for Macintosh : a Rough Note
- An introduction to Lib UV
- M3U , PLSv2 and ASX Play List Specification
- java JDBC入门
- Linux ssh免密钥登陆配置
- 进程间通信之消息队列
- Universal-Image-Loader源码阅读(28)-ImageDownloader
- (ACM数论)求N的阶乘末尾有多少个0
- 利用eclipse 创建maven项目