Remember iTwin, the secured wireless usb cable that connects 2 computers together? Last year, it was only available on the PC. iTwin just recently released a Mac version that supports Mac OS X Lion (10.7) and Snow Leopard (10.6). If you’ve bought an iTwin before, you don’t need to buy another one, just download the iTwin software for Mac and everything will just work. Yes, you can even connect a PC to a Mac too with iTwin.

For more information - http://www.itwin.com/mac/

 

My previous post, Compiling Android Source on Mac OS X 10.6 Snow Leopard, is outdated and doesn’t work with the new source code, so I thought I’ll update this for eclair.

Here are the steps.

1. Install XCode, Macports, repo, etc.

I assume everyone knows how to do this. Follow the instructions from the Get Android Source Code page. Just remember to create a new partition that is a case-sensitive partition if you’re using a non case-sensitive primary partition. I’ll start off after you’ve gotten the source from git.

2. Get the following patches.

Since there is only 1 patch to grab, I used repo for this.

Patch 12074 - Change Ic4caeff0: Enable building on java 1.6 without conflicts.

This patch will allow you to use Java 1.6 that comes with Snow Leopard instead of Java 1.5.

repo download platform/build 12074/5

The rest of the patches seems to have made it into the trunk, so it isn’t required to patch them anymore.

3. Edit the files.

However, there is 1 extra step you need to do in order to get a clean build. I can’t find the patch for this yet, so if anyone knows, please comment the patch number. You have to edit the following file:

system/core/libacc/acc.cpp

In a gist, change all the (int) to (size_t). Change the following lines:

Line 4557:

pGen->leaR0((int) glo, mkpCharPtr, ET_RVALUE);

to

pGen->leaR0((size_t) glo, mkpCharPtr, ET_RVALUE);

Line 4637:

pGen->loadFloat((int) glo, mkpFloat);

to

pGen->loadFloat((size_t) glo, mkpFloat);

Line 4643:

pGen->loadFloat((int) glo, mkpDouble);

to

pGen->loadFloat((size_t) glo, mkpDouble);

Line 4730-4731:

pVI->pForward = (void*) pGen->leaForward(
    (int) pVI->pForward, pVal);

to

pVI->pForward = (void*) pGen->leaForward(
    (size_t) pVI->pForward, pVal);

Line 5740:

pGen->resolveForward((int) name->pForward);

to

pGen->resolveForward((size_t) name->pForward);

4. Build and watch it fly.

make

Wait for an hour or two for the build to be completed and you’ll have a nice Android 2.1 build in the “out” directory.

 

After various attempts, I’ve finally figured out how to compile the android source code on Mac OS X 10.6 Snow Leopard. It works on both 64-bit and 32-bit kernels. Here are the steps.

1. Install XCode, Macports, repo, etc.

I assume everyone knows how to do this. Follow the instructions from the Android source page. Just remember to create a new partition that is a case-sensitive partition if you’re using a non case-sensitive primary partition. I’ll start off after you’ve gotten the source from git.

2. Get the following patches.

Notice that I didn’t use “repo download” to get those patches. I realized that repo sometimes “undo” the patches when you download another patch. All bash commands start at the root of your Android source directory.

Patch 12074 - Change Ic4caeff0: Enable building on java 1.6 without conflicts.

This patch will allow you to use Java 1.6 that comes with Snow Leopard instead of Java 1.5.

cd build
git pull git://android.git.kernel.org/platform/build refs/changes/74/12074/3

Patch 11845 – Change I155a531a: Add x86-64 checking for Darwin

This patch will add x86-64 checking for Darwin.

cd system/core
git pull git://android.git.kernel.org/platform/system/core refs/changes/45/11845/3

Patch 11846 – Change Id241a12d: Force gcc-4.0 for qemu build on Mac OS X

This patch allows qemu to build.

cd external/qemu
git pull git://android.git.kernel.org/platform/external/qemu refs/changes/46/11846/3

Patch 12597 – Change I0a8c2440: Use intptr_t for args expecting pointers

This patch allows libacc to compile.

cd system/core
git pull git://android.git.kernel.org/platform/system/core refs/changes/97/12597/1

3. Build and watch it fly.

make

I haven’t quite tested the image files and binaries but it seems to me like it works pretty well. Now to get my hands dirty and start messing around with the actual code.

Oh and remember, every time you do a repo sync, you might have to reapply some of the patches. I’m not too sure why. If there’s anyone who understands git well enough, please explain.

(UPDATE): New updated blog post for Android 2.1 – Compiling Android 2.1 Eclair Source on Mac OS X 10.6 Snow Leopard

 

Let’s just say this is the mother of all reviews. Counting at 23 pages, it gives an indepth review from the beginnings of time, through the entire installation process, to everything possible you can think of. It is an extremely good read if you want to know everything about Snow Leopard.

Original Article: Mac OS X 10.6 Snow Leopard: the Ars Technica review

© 2009 - 2011 JustinLee.sg Suffusion theme by Sayontan Sinha
Stop SOPA!

SOPA breaks our internet freedom!
Any site can be shut down whether or not we've done anything wrong.

Stop SOPA!