Wednesday, January 25, 2006

Nokia 770 + Objective-C

I finally had the time to try to do something with the Nokia 770.. and ended up with a gcc + objective-c support that can cross compile for the arm processor. I simply used crosstool with the following script:


#!/bin/sh
set -ex
TARBALLS_DIR=$HOME/downloads
RESULT_TOP=/opt/crosstool
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES="c,objc"
export GCC_LANGUAGES

# Really, you should do the mkdir before running this,
# and chown /opt/crosstool to yourself so you don't need to run as root.
mkdir -p $RESULT_TOP

# Build the toolchain. Takes a couple hours and a couple gigabytes.

#eval `cat arm-softfloat.dat gcc-3.3.3-glibc-2.3.2.dat` sh all.sh --notest
#eval `cat arm-softfloat.dat gcc-3.4.0-glibc-2.3.2.dat` sh all.sh --notest
eval `cat arm-softfloat.dat gcc-3.4.1-glibc-2.3.3.dat` sh all.sh --notest
#eval `cat arm-softfloat.dat gcc-3.4.1-glibc-20040827.dat` sh all.sh --notest

echo Done.


Compiling a simple C program and copying it on the nokia worked fine, so I wrote a simple ObjC test program.. and after copying the libobjc.* files and changing the LD_LIBRARY_PATH to point to a local lib directory, it worked too.

So far, so good !

Now I just need to compile Foundation, then AppKit, then -back ... :-)

7 comments:

glen said...

Good idea. I'm very interested to hear more about this. Nokia 770 with an open development kit has an amazing possibilities...hopefully they'll keep making it and using linux.

Anonymous said...

Keep on working and posting useful information. cheers faxless payday loan

Anonymous said...

Thank you for the informative blog. i have few of my sites where u can get
additional resources for check cash advance . i hope you and your readers will find it interested. please
visit us at check cash advance

refinance said...

Thank you for the informative blog. i have put some information on refinance ,
if that can be a help to u and your readers.

quick payday loan said...

I decided to post on this blog as a way to keep my friends informed of whats going on with quick payday loan . It is more like a journal of my life that I'm happy to share.

home insurance said...

Anyways, really looking forward to your post. Thank you for the blog, keep up the good work home insurance

Anonymous said...

So far, two people have come out and said they think that Day By Day is at least sometimes funny. Neither has provided any physical evidence of this. so please have a look at Health insurance Quotes