[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] chicken scheme on handhelds.
From: |
Matthew Welland |
Subject: |
Re: [Chicken-users] chicken scheme on handhelds. |
Date: |
Wed, 8 Nov 2006 22:07:28 -0700 |
User-agent: |
KMail/1.9.1 |
I have an openembedded .bb file and I can make a chicken .ipk package just
fine. What I haven't been able to do is get eggs to build in the same
environment. However using the scratchbox cross compiling environment I was
able to compile chicken and eggs and I built the ezxdisp 3d clock example
and it ran fine on my ipaq. I have never been able to get a Familiar linux
install of gcc to make exectuables so building on the Ipaq itself I haven't
been able to do.
My wish list for developing using scheme on the Ipaq (and potentially other
handhelds):
1. cross compile and package chicken libs (most of chicken itself
isn't needed). - DONE
2. cross compile and package sqlite egg - compiles on scratchbox
but libs in scratchbox not in sync with openembedded
3. select a GUI. This is a problem. The status of available options is:
i. bb - pretty good but I can't figure out how to do vector graphics
(fltk seems to be the Rodney Dangerfield of GUI toolkits, it
don't get no respect. Personally I like it but I have to be
able to draw arbitrary lines, polygons, circles etc. and
I couldn't figure out how to do that with bb)
ii. gtk - doesn't seem to be available
iii. tk - too slow for a handheld? Many folks seem not to like tk
iv. Qt - too clumsy and complicated to use for neophytes.
v. Fox, Widestudio, wxwindows, et. al. - no eggs available.
I like Fox and use ruby fox a fair amount at work. An egg for Fox
would be great.
vi. build a gui on cairo, opengl (vincent(*) would be really cool) or sdl
Yeah, right. Actually I'm really tempted to take a stab at this.
tinyclos + widgets built on slick cairo graphics sounds cool.
How hard could it be :-)
4. cross compile and package a gui - depends on #3
5. start writing some cool scheme apps for embedded devices
(*) Vincent: http://sourceforge.net/projects/ogl-es
Scratchbox: http://www.scratchbox.org/
Fox: http://www.fox-toolkit.org/
Widestudio: http://www.widestudio.org/
Openembedded: http://openembedded.org/
I would love to see all the bits of progress recorded on the wiki. It would
be nice to have a place to put the various files (the .ipk files I have
made for instance) to help people get going also.
Matt
--
==============chicken-scheme-openembedded-recipe================
DESCRIPTION = "Chicken Scheme, interpreter and compiler"
LICENSE = "GPL"
PRIORITY = "optional"
MAINTAINER = "Matt Welland <address@hidden>"
SECTION = "devel/scheme"
DEPENDS = "chicken-native qemu-native"
SRC_URI
= "http://www.call-with-current-continuation.org/chicken-${PV}.tar.gz"
S = "${WORKDIR}/chicken-${PV}"
inherit autotools
export NURSERY=3490
export BOOTSTRAP_PATH=/usr/local/bin
QEMU = "qemu-arm -L ${STAGING_DIR}/${TARGET_SYS}"
# LDFLAGS += "-L${CROSS_DIR}/${TARGET_SYS}/lib"
# This stuff (tweaked) would allow to run the nursery cmd
# # export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${S}/.libs"
# echo '$CC $*' > ${S}/armcc.sh
# chmod a+x ${S}/armcc.sh
# # cp "${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so.1" "${S}"
# # xterm
# ${QEMU} chicken-setup -k -c "-cc ${S}/armcc.sh" sqlite3
do_compile() {
perl -pi.bak -e 's/BOOTSTRAP_PATH = ./BOOTSTRAP_PATH = \/usr\/local\/bin/'
Makefile
oe_runmake csi BOOTSTRAP_PATH=/usr/local/bin
}
=============================================
On Wednesday 08 November 2006 13:50, john wrote:
> I will try and put a skelton of the wiki document up this weekend and
> be good if you can add what ever your setup is. I crossed compiled
> Chicken but build eggs on board for simplicity for example. I have
> cross compiled eggs with no problem also. Probably the easiest method
> is to use scratchbox and build everything through that. I have not
> built eggs through that yet though. So many options and many different
> kinds of hardware. Be good to narrow down the most productive methods
> and what range of hardware these work on. Nintendo DS anyone? :)
>
> That phone looks interesting yeh. You can get hold of a trolltech
> greenphone now but they are pricey!
>
> Cheers.
>
> On 08/11/06, Shawn Rutledge <address@hidden> wrote:
> > Good idea about the wiki.
> >
> > The trouble is most handhelds don't have a compiler installed (they
> > tend to be short on flash). So I run chicken in a chroot environment
> > on a CF card in the Zaurus. (The chroot environment is Debian-arm.)
> >
> > Ideally the Scheme compiler would run fast on a handheld, and just in
> > case it's not fast enough, it would also be possible to cross-compile
> > Scheme to an ARM binary, on a PC. So far gcc is a tad slow on an ARM
> > (but not too terrible - I do actually use it; maybe it's like running
> > x86 gcc on a 386); and I don't think cross-compiling is practical, is
> > it? If somebody ever finishes the ARM backend for tcc (a very fast C
> > compiler) we could use that on the handheld itself. And you have to
> > be able to afford to actually install it on the handheld. Later I
> > might work on getting chicken into OpenEmbedded, if that hasn't been
> > done yet, but I think I would have to leave out something else in
> > order to have enough space for chicken plus gcc and all of the libs.
> >
> > I also want to try to do it on the OpenMoko phone (announced
> > yesterday) ASAP, but haven't figured out how to get one yet.
> >
> > On 08 Nov 2006 12:17:18 -0200, Mario Domenech Goulart
> >
> > <address@hidden> wrote:
> > > Hello John,
> > >
> > > On Wed, 8 Nov 2006 13:53:46 +0000 john <address@hidden> wrote:
> > > > I know there are one or two people out there playing around with
> > > > Chicken on handheld devices like the Sharp Zaurus, Nokia 770 etc.
> > > > Anyway, I have created a group on orkut (orkut.com) dedicated to
> > > > this topic. If you have an orkut account and are interested, please
> > > > come and join. If you need an orkut account let me know.
> > >
> > > How about filling a wiki page with this topic? Maybe at the
> > > "Tutorials" section for people getting started to Chicken on
> > > handhelds or even a whole section about Chicken on handhelds?
> > >
> > > I have a SL-5600 borrowed from a friend and an old version of Chicken
> > > installed on it (got it from
> > > http://www.mneuroth.de/privat/zaurus/chicken.html). But I can't do
> > > much with it, since I don't have a compiler installed and admitedly I
> > > haven't invested much time on it.
> > >
> > > I think a wiki section about Chicken on handhelds would be great.
> > >
> > > Best wishes,
> > > Mario
> > >
> > >
> > > _______________________________________________
> > > Chicken-users mailing list
> > > address@hidden
> > > http://lists.nongnu.org/mailman/listinfo/chicken-users
> >
> > _______________________________________________
> > Chicken-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/chicken-users
>
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/chicken-users
--
http://www.kiatoa.com, a self-governing site where *you* can be the boss!
You make and choose the stories and the classifieds are always free.
Also, many "best of" polls. Come join in the ballot stuffing!