![]() ![]() |
Apr 11 2004, 10:50 AM
Post
#1
|
|
|
Group: Members Posts: 15 Joined: 11-April 04 From: Princeton, NJ Member No.: 2,797 |
Has anyone tried cross compiling a full emacs (21) for the Zaurus? Are there obvious obstacles to doing so?
|
|
|
|
May 8 2005, 03:46 AM
Post
#2
|
|
|
Group: Members Posts: 11 Joined: 24-March 05 From: Oxford, UK Member No.: 6,704 |
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 # 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 temacs -batch -l loadup dump ... and realize that there are paths from my desktop system hardcoded into the temacs binary: CODE 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). |
|
|
|
May 8 2005, 07:05 AM
Post
#3
|
|
![]() Group: Members Posts: 1,099 Joined: 17-December 03 From: Athens, Greece Member No.: 1,210 |
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. |
|
|
|
May 8 2005, 09:41 AM
Post
#4
|
|
|
Group: Members Posts: 11 Joined: 24-March 05 From: Oxford, UK Member No.: 6,704 |
|
|
|
|
Jun 17 2005, 10:47 AM
Post
#5
|
|
|
Group: Members Posts: 15 Joined: 11-April 04 From: Princeton, NJ Member No.: 2,797 |
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.
|
|
|
|
Jan 7 2006, 10:03 PM
Post
#6
|
|
|
Group: Members Posts: 1 Joined: 2-January 06 Member No.: 8,836 |
QUOTE(hans @ Jun 17 2005, 01:47 PM) 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. 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 Thanks again! - dan |
|
|
|
Jan 7 2006, 10:52 PM
Post
#7
|
|
|
Group: Moderators Posts: 1,619 Joined: 29-October 03 From: Los Angeles Member No.: 809 |
c1000 and sharprom with xqt running emacs....iss possible. i had it running
|
|
|
|
Jan 8 2006, 02:51 AM
Post
#8
|
|
|
Group: Members Posts: 696 Joined: 17-January 04 Member No.: 1,468 |
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. |
|
|
|
Jun 28 2006, 04:34 AM
Post
#9
|
|
![]() Group: Members Posts: 332 Joined: 8-January 05 From: North East, USA Today Member No.: 6,159 |
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 |
|
|
|
Jun 28 2006, 07:22 PM
Post
#10
|
|
|
Group: Members Posts: 1,213 Joined: 9-June 05 From: Gobi Desert, Mongolia Member No.: 7,306 |
I have seen micro-emacs for stock
|
|
|
|
Jun 29 2006, 07:15 AM
Post
#11
|
|
|
Group: Members Posts: 902 Joined: 22-May 04 Member No.: 3,385 |
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. |
|
|
|
Jun 29 2006, 11:31 AM
Post
#12
|
|
|
Group: Members Posts: 1,213 Joined: 9-June 05 From: Gobi Desert, Mongolia Member No.: 7,306 |
I picked it up, looks kinda nice, but I need a crib sheet for the key combinations for the zaurus
|
|
|
|
Jul 3 2006, 11:40 AM
Post
#13
|
|
|
Group: Members Posts: 902 Joined: 22-May 04 Member No.: 3,385 |
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
scrn002.gif ( 27.96K )
Number of downloads: 103Does anyone know how to fix this? |
|
|
|
Jul 3 2006, 01:05 PM
Post
#14
|
|
![]() Group: Members Posts: 1,099 Joined: 17-December 03 From: Athens, Greece Member No.: 1,210 |
(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) |
|
|
|
Jul 3 2006, 01:23 PM
Post
#15
|
|
|
Group: Members Posts: 902 Joined: 22-May 04 Member No.: 3,385 |
Thanks a lot. Works great!
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 01:35 AM |