Shawn the R0ck
This documentation is about the process of port guile;you can
redistribute it and /or modify it under the terms of the GNU General
Public License as published by the Free Software Foundataion;either
version 2 of the License,or (at your option) any later version.
You should have read the GNU General Public License before start "RTFSC".
1.openWrt of ben_nanoNote
2.guile-1.4's source code
$tar zxvf guile-1.4.tar.gz
$cd ..
$mkdir build-guile
$cd build-guile
$../guile-1.4/configure --host=mipsel-openwrt-linux --with-cc=mipsel-openwrt-linux-gcc --with-linker=mipsel-openwrt-linux-ld --prefix=/hfg/guile-x
$grep -r CC= *
Now,you need to modify every files what you see from the list.from "CC= gcc" to "mipsel openwrt-linux-gcc".
$grep -r LD= *
Still do ur modifying from "LD= ld" to "mipsel-openwrt-linux-ld".Actually,you still need to modify very Makefile.
$make
if you got a error something like this".....bin/ld:cant found -lreadline".before run the below cmd,please copy the readline.so and ncurses.so to your specify folder(-B your_folder_name):
$mipsel-openwrt-linux-gcc -fPIC -shared readline.lo -lreadline -B /hfg/nanonote/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -lncurses -lc -Wl,-soname -Wl,libguilereadline.so.0 -o .libs/libguilereadline.so.0.0.0
You got your own scheme interpreter now.dont forget thank for free software movement.Use scp or whatever you like way to upload the /hfg/guile-x/* to "/usr/" of ben_nanoNOte.
finnally,add "export GUILE_LOAD_PATH=/usr/share/guile/1.4" to the /etc/profile on ben_nanoNOte
No comments:
Post a Comment