Author Topic: full emacs for zaurus?  (Read 16801 times)

hans

  • Newbie
  • *
  • Posts: 15
    • View Profile
full emacs for zaurus?
« on: April 11, 2004, 02:50:40 pm »
Has anyone tried cross compiling a full emacs (21) for the Zaurus?  Are there obvious obstacles to doing so?
Zaurus C750, Sharp ROM
AmbiCom WL1100C-CF
256MB SD Card

pitr

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://peter-b.co.uk/
full emacs for zaurus?
« Reply #1 on: May 08, 2005, 07:46:24 am »
This is as far as I've got on my FC3 system (please bear with me, this
is my first attempt at cross-compiling an application):

First, I downloaded and installed binutils-cross-arm-2.11.2-0.i386.rpm,
linux-headers-arm-sa1100-2.4.6-3.i386.rpm,
gcc-cross-sa1100-2.95.2-0.i386.rpm, glibc-arm-2.2.2-0.i386.rpm

Code: [Select]
# Extract sources and configure them
tar -zxf emacs21.3.tar.gz
mkdir emacs-arm-build
cd emacs-arm-build

export PATH=/opt/Embedix/tools/bin/:$PATH
CC=arm-linux-gcc ../emacs-21.3/configure --build=i386-linux \
  --host=arm-linux --without-x

# Fix library paths
cd src
mv Makefile Makefile.orig
sed -e"s:/usr/lib/crt1.o:/opt/Embedix/tools/arm-linux/lib/crt1.o:" \
    -e"s:/usr/lib/crti.o:/opt/Embedix/tools/arm-linux/lib/crti.o:" \
    -e"s:/usr/lib/crtn.o:/opt/Embedix/tools/arm-linux/lib/crtn.o:" \
    < Makefile.orig > Makefile

# Make binary needed during compilation
make CC=gcc prefix-args
cd -

# Gather everything needed to build final emacs binary on the Zaurus
make; make
export SDIR=../emacs-21.3
export DDIR=../emacs-arm
mkdir -p $(DDIR)/{lisp,info,bin,etc}
cp src/temacs $(DDIR)/bin
cp $(SDIR)/lisp/*.elc $(DDIR)/lisp
cp $(SDIR)/lisp/{paths,loadup,loaddefs,version}.el $(DDIR)/lisp
cp -r /usr/share/emacs/21.3/etc/* $(DDIR)/etc

So, I happily copy the emacs-arm directory over to my Zaurus and run:

Code: [Select]
temacs -batch -l loadup dump
... and realize that there are paths from my desktop system hardcoded
into the temacs binary:

Code: [Select]
Warning: arch-independent data dir (/usr/local/share/emacs/21.3/etc/) does not exist
Warning: Lisp directory `/home/peter/src/emacs-21.3/lisp' does not exist.
Cannot open load file: loadup

Where do I go from here?  Suggestions gratefully received.  And better ways of cross-compiling Emacs would be even better!

(Also posted to comp.emacs).
Proud owner of a C-3000

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
full emacs for zaurus?
« Reply #2 on: May 08, 2005, 11:05:53 am »
For what rom/server?
for x/qt it is in the feed http://xqt.sourceforge.jp/feed/
I guess for debian it is readily available too.

For pdaxrom it compiles natively without trouble (you only need space and  perhaps a swap)

The only "problem" is that you cannot (Afaik) cross compile it.
SLC-860 cacko / senao wifi

pitr

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://peter-b.co.uk/
full emacs for zaurus?
« Reply #3 on: May 08, 2005, 01:41:55 pm »
Quote
For what rom/server?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=78786\"][{POST_SNAPBACK}][/a][/div]

C-3000 Sharp ROM. AFAIK the only other ROMs available for the C-3000 are OpenZaurus and Cacko, both of which would provide the same challenges to get it working.  
Proud owner of a C-3000

hans

  • Newbie
  • *
  • Posts: 15
    • View Profile
full emacs for zaurus?
« Reply #4 on: June 17, 2005, 02:47:03 pm »
I don't have any insight (still!) about cross compiling emacs.  But I was happy to find an ipk for emacs that works with the X/Qt server at: http://xqt.sourceforge.jp/feed/  It works like a charm.
Zaurus C750, Sharp ROM
AmbiCom WL1100C-CF
256MB SD Card

easyE

  • Newbie
  • *
  • Posts: 1
    • View Profile
full emacs for zaurus?
« Reply #5 on: January 08, 2006, 01:03:06 am »
Quote
But I was happy to find an ipk for emacs that works with the X/Qt server at: http://xqt.sourceforge.jp/feed/  It works like a charm.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=84699\"][{POST_SNAPBACK}][/a][/div]

That's a great find!  I have been looking for a full emacs for a couple weeks now.  I assume that X/Qt refers to the X/Qt OZ ROM.  You were running on a C7XX?  Would this distro and package run on my 5600?  I currently run the Sharp ROM that came with my 5600, but would happily switch (and am open to suggestions - but i don't want to take us too far off topic, maybe a nudge toward a good discussion would be nice)

Like other emacs users, I try to do nearly everything withing its friendly confines  .  Have you been able to test gnus, tramp, or calendar?  What other interesting packages/modes have you been able to use?

Thanks again!

- dan

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
full emacs for zaurus?
« Reply #6 on: January 08, 2006, 01:52:19 am »
c1000 and sharprom with xqt running emacs....iss possible.  i had it running
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
full emacs for zaurus?
« Reply #7 on: January 08, 2006, 05:51:02 am »
EMACS has a very special build procedure that makes it difficult to cross-compile (it compiles parts of itself then uses some OS magic to dump its in-memory image to a file)

The Debian one is mayne the easiest one.  I'm really appeciating PocketWorkstation, it's put an end to most of porting hassles.

miskinis

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
    • http://
full emacs for zaurus?
« Reply #8 on: June 28, 2006, 08:34:30 am »
I use the EMACS that Pgas built for pdaXrom.  A few days ago I even got
cc-mode working (downloaded from sourceforge, and built with LISP), with
full C code syntax coloring/indenting, and performed some customizations, to
eliminate the toolbar, menubar, scrollbar, change the colors of many things,
added some keybindings, etc..  I displayed the calendar, but I never have tried to
interact with it.

I will post a screenshot or two if anyone is interested within a few days,

John
« Last Edit: June 28, 2006, 08:35:43 am by miskinis »
_John Miskinis_

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
full emacs for zaurus?
« Reply #9 on: June 28, 2006, 11:22:48 pm »
I have seen micro-emacs for stock
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
full emacs for zaurus?
« Reply #10 on: June 29, 2006, 11:15:33 am »
There is full Emacs22 (Unicode version) available for the Sharp ROM as well as for pdaXrom at: http://www.focv.com/ipkg/

The top package has console support and X support, to be run in X/Qt.

The second package from the top is only for console, if you don't intend to use X/Qt to run Emacs.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
full emacs for zaurus?
« Reply #11 on: June 29, 2006, 03:31:56 pm »
I picked it up, looks kinda nice, but I need a crib sheet for the key combinations for the zaurus
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
full emacs for zaurus?
« Reply #12 on: July 03, 2006, 03:40:59 pm »
I wonder if any of you Emacs users have seen the problem I have with the above mentioned version of emacs on the Z. Everything is fine, but when running M-x shell, and listing directories, the output is garbled like this
 [ Invalid Attachment ]

Does anyone know how to fix this?
« Last Edit: July 03, 2006, 03:41:19 pm by ShiroiKuma »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
full emacs for zaurus?
« Reply #13 on: July 03, 2006, 05:05:13 pm »
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)

in your .emacs

http://www.gnu.org/software/emacs/manual/h...ll-Options.html

(or use ansi-term)
SLC-860 cacko / senao wifi

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
full emacs for zaurus?
« Reply #14 on: July 03, 2006, 05:23:07 pm »
Thanks a lot. Works great!  
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze