Necessitas SDK for Mac OS X pre-release

  
mingw android  
查看个人资料   翻译成中文(简体)
 更多选项 4月21日, 上午5时53分
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/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-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...

If it doesn't work, my first question will be "did you reboot your Mac?" ;-)

Happy hacking.


      
   
  
Daniel Wood  
查看个人资料   翻译成中文(简体)
 更多选项 4月22日, 下午1时21分

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:


      
   
  
mingw android  
查看个人资料   翻译成中文(简体)
 更多选项 4月22日, 下午6时27分

Great. Thanks for the feedback.
On Apr 22, 2011 6:21 AM, "Daniel Wood" <s.d.wood...@googlemail.com> wrote:

 /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....
..

      
   
  
Artem Marchenko  
查看个人资料   翻译成中文(简体)
 更多选项 5月29日, 上午3时29分
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:


      
   
  
mingw android  
查看个人资料   翻译成中文(简体)
 更多选项 5月29日, 上午4时58分

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>
wrote:

> 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/
http://mingw-and-ndk.googlecode.com/files/arm-linux-androideabi-4.4.3.
 /Developer/Android/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/p
two Environment Variables:

      
   
  
mingw android  
查看个人资料   翻译成中文(简体)
 更多选项 5月29日, 上午6时10分
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...


      
   
  
Artem Marchenko  
查看个人资料   翻译成中文(简体)
 更多选项 5月29日, 上午7时21分
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:


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值