Necessitas for Mac OS X preview release.
I've been sat on this since Friday, but figured I may as well go ahead
and release as I've given it some amount of testing.
Interestingly, debugging speed seems a good bit better on OS X than on
Linux or Windows. I've only tested this on 64bit Snow Leopard, and I
suspect that Lighthouse may fail on 32bit systems. The next release
will be tested on both and should work on Leopard (10.5) and Snow
Leopard (10.6).
Here are the instructions, assuming you've got ant and Java installed.
xcode may or may not be needed. I have it installed. Please read my
Necessitas Windows pre-release announcement for more details if you
get stuck.
Required downloads:
(1) http://dl.google.com/android/android-sdk_r10-mac_x86.zip
(2) http://dl.google.com/android/ndk/android-ndk-r5b-darwin-x86.tar.bz2
(3) http://mingw-and-ndk.googlecode.com/files/Mac-OS-X-Qt-Git.tar.bz2
(4) http://mingw-and-ndk.googlecode.com/files/arm-linux-androideabi-4.4.3-darwin-x86-gdb-7.2.50.20110211.tar.bz2
(5) http://mingw-and-ndk.googlecode.com/files/p7zip-macosx.tar.bz2
(6) http://mingw-and-ndk.googlecode.com/files/Qt%20Creator.tar.bz2
(7) http://mingw-and-ndk.googlecode.com/files/4.7.60-macosx.7z
Instructions:
1. Make a folder /Developer/Android
2. Unzip (1) to /Developer/Android (so that you have
/Developer/Android/android-sdk-mac_x86)
3. Untar (2) to /Developer/Android (so that you have
/Developer/Android/android-ndk-r5b)
4. Unzip (3) to /Developer (so that you have /Developer/Qt-Git)
5. Untar (4) to /Developer/Android/android-ndk-r5b (it will overwrite
some files from the NDK)
To check that this worked, from terminal, enter:
/Developer/Android/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-gdb
--version
You should see the top line of output:
GNU gdb (GDB) 7.2.50.20110211-ma
6. Untar (5) to $SOMEWHERE and copy $SOMEWHERE/opt/bin/7za to
somewhere on your path (e.g. /usr/local/bin, so that you have
/usr/local/bin/7za).
7. Untar (6) and, if you already have Qt Creator installed, rename Qt
Creator.app to Necessitas Qt Creator.app then copy this app into
/Applications
8. Unz7a (7) to /Developer/Android (so that you have /Developer/Android/4.7.60)
9. Following Matthew McCullough's answer on
http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x,
set two Environment Variables:
ANDROID_NDK_ROOT to /Developer/Android/android-ndk-r5b
ANDROID_NDK_HOST to darwin-x86
10. Reboot your Mac.
11. Run Qt Creator, using the steps in the Windows announcement as
reference, changing:
Tools->Settings... to Qt Creator->Preferences...
Qt Creator->Preferences...->Debugger->Source Paths Mapping's Target
path to /Developer (Source path is still /opt/necessitas)
The Linux instructions for reference:
http://sourceforge.net/p/necessitas/wiki/How%20to%20install%20Necessitas%20SDK/
http://sourceforge.net/p/necessitas/wiki/How%20to%20write%20Qt%20apps%20for%20Android/
If it doesn't work, my first question will be "did you reboot your Mac?" ;-)
Happy hacking.
Great. Thanks for the feedback.
In a few hours I hope to release alpha 2 for mac so you may want to wait for that?
(1) http://dl.google.com/android/android-sdk_r10-mac_x86.zip
2. Unzip (1) to /Developer/Android (so that you have
/Developer/Android/android-sdk-mac_x86)
The reference for the Windows install (now redundant as alpha 2 has
been released for Windows) is:
http://groups.google.com/group/android-qt/browse_thread/thread/dedf2f01c06c7054?pli=1