неделя, 2 май 2010 г.

Qt 4.6 on Snow Leopard

Hi folks.

Lately I've been trying to get QT 4.6.2 installed on my Mac. Well that's not that easy as it turned out. Qt 4.6 does have a bug in the installer for Snow Leopard. It just fails in the end. A little googling shows that you need to remove Documentation and Examples from the installation. How the hell you do that? Well, I managed to fix it as follows:

Download the latest installer from the Qt site(mine was 4.6.2). The file is QtSDK.mpkg. Rename the file to QtSDK. Yes, thats a regular directory, so just go inside with Finder. Go in Contents. Open Info.plist. There is a key called "IFPkgFlagPackageList". It contains an array of the subpackages to be installed. Just remove the keys for values Qt_examples and Qt_docs. Save the Info.plist. Go into QtSDK/Contents/Packages and delete Qt_examples.pkg and Qt_docs.pkg (don't know if that's really necessary). Then rename the QtSDK to QtSDK.mpkg again.

There you go. Double click and you should see Installation SUCCESS. Then you can just run again the original installer so you can get the docs and the examples.

Няма коментари: