Necessitas SDK for Mac OS X pre-release.

80 views
Skip to first unread message

mingw android

unread,
Apr 20, 2011, 5:53:30 PM4/20/11
to andro...@googlegroups.com
I posted this yesterday but I've since fixed an issue with Qt (instead
of downloading the official Nokia one, you need to get my build) and
it probably deserves its own topic.

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.

Daniel Wood

unread,
Apr 22, 2011, 1:21:54 AM4/22/11
to android-qt

I have been using this for a couple of days now without issues.

Thanks.


On Apr 20, 10:53 pm, mingw android <mingw.andr...@gmail.com> wrote:
> I posted this yesterday but I've since fixed an issue with Qt (instead
> of downloading the official Nokia one, you need to get my build) and
> it probably deserves its own topic.
>
> 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...
> (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/p rebuilt/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 onhttp://stackoverflow.com/questions/135688/setting-environment-variabl...,
> 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%20Necessi...http://sourceforge.net/p/necessitas/wiki/How%20to%20write%20Qt%20apps...

mingw android

unread,
Apr 22, 2011, 6:27:38 AM4/22/11
to andro...@googlegroups.com

Great. Thanks for the feedback.

Artem Marchenko

unread,
May 28, 2011, 3:29:36 PM5/28/11
to android-qt
Hi All

Thanks for the great effort!

I decided to give it a try and got stuck at step 11
I couldn't find "Windows announcement as reference", so I used the
Linux ones from http://sourceforge.net/p/necessitas/wiki/Setup%20QtCreator/

When I am trying to configure the Android tab and tell Android SDK
location to be /Developer/Android/android-sdk-mac_x86 I get an error
note telling that this location "doesn't seem to be an Android SDK top
folder". Unfortunately it doesn't tell what exactly is wrong.

I wasn't supposed to compile anything, right?

Best regards,
Artem.

P.S.
I did reboot

On Apr 22, 1:27 pm, mingw android <mingw.andr...@gmail.com> wrote:
> Great. Thanks for the feedback.
> stackoverflow.com/questions/135688/setting-environment-variabl...,>> 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%20Necessi....
> ..

mingw android

unread,
May 28, 2011, 4:58:30 PM5/28/11
to andro...@googlegroups.com

In a few hours I hope to release alpha 2 for mac so you may want to wait for that?

mingw android

unread,
May 28, 2011, 6:10:03 PM5/28/11
to andro...@googlegroups.com
If you don't want to wait (it may take a little longer), then the step
you need to check it:

(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

Artem Marchenko

unread,
May 28, 2011, 7:21:54 PM5/28/11
to android-qt
Oh, that was quick!

I did unzip that sdk to that exact location. Well, I think it is
anyway better to wait for alpha 2 if I can't get alpha 1 ready
quickly. Thanks for making it all possible!

On May 29, 1:10 am, mingw android <mingw.andr...@gmail.com> wrote:
> If you don't want to wait (it may take a little longer), then the step
> you need to check it:
>
> (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/dedf2f...
>
>
>
>
>
>
>
> On Sat, May 28, 2011 at 9:58 PM, mingw android <mingw.andr...@gmail.com> wrote:
> > In a few hours I hope to release alpha 2 for mac so you may want to wait for
> > that?
>
> > On May 28, 2011 8:29 PM, "Artem Marchenko" <artem.marche...@gmail.com>
> >>> >>  You should see thetopline of output:
Reply all
Reply to author
Forward
0 new messages