From 4d9a0a88e4f40720ffc547a9d2ab1fe84da380f0 Mon Sep 17 00:00:00 2001 From: David Botton Date: Thu, 28 Dec 2023 13:39:28 -0500 Subject: [PATCH] Android Termux install --- ANDROID-TERMUX.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ANDROID-TERMUX.md diff --git a/ANDROID-TERMUX.md b/ANDROID-TERMUX.md new file mode 100644 index 0000000..6e560a6 --- /dev/null +++ b/ANDROID-TERMUX.md @@ -0,0 +1,46 @@ +## Using Termux on Android devilces for Common Lisp and CLOG Developent + +Install Termux +https://f-droid.org/en/packages/com.termux/ + +pkg upgrade +pkg install openssh +pkg install emacs +pkg install zstd +pkg install libsqlite + +curl -OL "https://github.com/bohonghuang/sbcl-termux-build/releases/download/2.3.3/sbcl-2.3.3-arm64-termux.tar.zst" +unzstd -c "sbcl-2.3.3-arm64-termux.tar.zst" | tar -xf - +cd "sbcl-2.3.3" +sh install.sh + +``` +curl -o ql.lisp http://beta.quicklisp.org/quicklisp.lisp +sbcl --no-sysinit --no-userinit --load ql.lisp \ + --eval '(quicklisp-quickstart:install :path "~/.quicklisp")' \ + --eval '(ql:add-to-init-file)' \ + --quit +sbcl --eval '(ql:quickload :quicklisp-slime-helper)' --quit +``` + +Add to ~/.emacs.d/init.el + +``` +(load (expand-file-name "~/.quicklisp/slime-helper.el")) +(setq inferior-lisp-program "sbcl") +``` + +start emacs + +M-x slime +(ql:quickload :clog) + +A failure will occur for sqlite, choose {use-value} +("/data/data/com.termux/files/usr/lib/libsqlite3.so") + +(ql:quickload :clog/tools) +(clog-tools:clog-builder) + +For the moment running the builder locally works but dragging windows does not so at the command line you can use ifconfig to obtain the IP of you phone or tablet and you can now use: +http://xxxx:8080/builder +on machines on the same network. \ No newline at end of file