Gforth — GNU Forth for Android 手機

104 views
Skip to first unread message

燕南

unread,
Oct 24, 2017, 8:25:50 PM10/24/17
to 符式協會

燕南

unread,
Oct 24, 2017, 8:46:17 PM10/24/17
to 符式協會
Gforth <->JNI Interface<-> Android

JNI Interface
https://zh.wikipedia.org/wiki/Java%E6%9C%AC%E5%9C%B0%E6%8E%A5%E5%8F%A3

燕南於 2017年10月25日星期三 UTC+8上午8時25分50秒寫道:

燕南

unread,
Oct 24, 2017, 8:48:42 PM10/24/17
to 符式協會

All Android examples are packet into /sdcard/gforth/<version>/minos2. There is

  • minos2/gl-sample.fs: A simple OpenGL demo
  • minos2/omx-example.fs: Playing videos. Download my Jingle Bells as test stream into /storage/extSdCard/Filme, then you can start it with jb, or any other MPEG 2 transport stream file with “<filename>” play-ts, or a MKV file (H.264, MP3 or AAC) with “<filename>” play-mkv.
  • minos2/gl-slideshow.fs: Plays a slideshow. Put photos into a directory, and a file listing all filenames (including path). Load that file with “<slidelist>” slide-show.
  • minos2/android-recorder.fs: Records a video, when you start camera-test. The recorded video will end up in /storage/extSdCard/Filme/test.mp4.
  • unix/sensors.fs: Read out Android sensors

燕南於 2017年10月25日星期三 UTC+8上午8時25分50秒寫道:

Jeffer

unread,
Aug 5, 2018, 9:36:56 PM8/5/18
to 符式協會


燕南於 2017年10月25日星期三 UTC+8上午8時25分50秒寫道:
1. 先用 google-play 搜尋 gforth , 安裝 .
2. 設定 -- 應用程式 -- gnu.gforth -- 開 "儲存" 的權限
3. 用 檔案管理 , 找到 gforth/current/minos2/
    裏面 即有 gl-sample.fs

4. 開啟 Gforth fast
在終端 輸入
: sum56 5 6 + . ;
see sum56
require minos2/gl-sample.fs
即可看到 一個 會動的 三角形 .

5. 請注意 : 不是 Minos2/gl-sample.fs
6. 如果不行, 結束 forth , 用檔案總管, 在 主目錄下 , 建一個 "gforth" 的 子目錄
    再進一次 Gforth fast

Message has been deleted

燕南

unread,
Nov 2, 2018, 2:11:53 AM11/2/18
to 符式協會


燕南於 2017年10月25日星期三 UTC+8上午8時25分50秒寫道:

燕南

unread,
Nov 2, 2018, 2:13:03 AM11/2/18
to 符式協會


VS2017 VS2017安卓 中文Big5 編譯環境搞定 可輸出中文Big5


可以來搞 AndroidForth(Java)


安卓中文.jpg



燕南於 2017年10月25日星期三 UTC+8上午8時25分50秒寫道:
Reply all
Reply to author
Forward
0 new messages