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). |
|
|
|
hans full emacs for zaurus? Apr 11 2004, 10:50 AM
telemetric_au CODE# Fix library paths
cd src
mv Makefile Makefil... May 11 2007, 03:16 AM
pgas For what rom/server?
for x/qt it is in the feed ht... May 8 2005, 07:05 AM
pitr QUOTE(pgas @ May 8 2005, 04:05 PM)For what ro... May 8 2005, 09:41 AM
hans I don't have any insight (still!) about cr... Jun 17 2005, 10:47 AM
easyE QUOTE(hans @ Jun 17 2005, 01:47 PM)But I was ... Jan 7 2006, 10:03 PM
Cresho c1000 and sharprom with xqt running emacs....iss p... Jan 7 2006, 10:52 PM
DrWowe EMACS has a very special build procedure that make... Jan 8 2006, 02:51 AM
miskinis I use the EMACS that Pgas built for pdaXrom. A fe... Jun 28 2006, 04:34 AM
bam I have seen micro-emacs for stock Jun 28 2006, 07:22 PM
ShiroiKuma There is full Emacs22 (Unicode version) available ... Jun 29 2006, 07:15 AM
bam I picked it up, looks kinda nice, but I need a cri... Jun 29 2006, 11:31 AM
ShiroiKuma I wonder if any of you Emacs users have seen the p... Jul 3 2006, 11:40 AM
pgas (add-hook 'shell-mode-hook 'ansi-color-for... Jul 3 2006, 01:05 PM
ShiroiKuma Thanks a lot. Works great! Jul 3 2006, 01:23 PM![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 10:53 PM |