Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #30386 > unrolled thread
| Started by | Steve Graham <jsgrahamus@yahoo.com> |
|---|---|
| First post | 2014-05-14 12:52 -0700 |
| Last post | 2014-06-15 17:49 -0700 |
| Articles | 9 — 5 participants |
Back to article view | Back to comp.lang.forth
Gforth on Android Steve Graham <jsgrahamus@yahoo.com> - 2014-05-14 12:52 -0700
Re: Gforth on Android Bernd Paysan <bernd.paysan@gmx.de> - 2014-05-15 01:41 +0200
Re: Gforth on Android Steve Graham <jsgrahamus@yahoo.com> - 2014-05-14 17:12 -0700
Re: Gforth on Android Marvin <marvin_littlewood_426716@yahoo.co.uk> - 2014-06-12 02:08 -0700
Re: Gforth on Android BruceMcF <agila61@netscape.net> - 2014-06-10 21:34 -0700
Re: Gforth on Android Bernd Paysan <bernd.paysan@gmx.de> - 2014-06-11 16:19 +0200
Re: Gforth on Android bruce.mcfarling@gmail.com - 2014-06-13 23:19 -0700
Re: Gforth on Android Bernd Paysan <bernd.paysan@gmx.de> - 2014-06-14 14:57 +0200
Re: Gforth on Android BruceMcF <agila61@netscape.net> - 2014-06-15 17:49 -0700
| From | Steve Graham <jsgrahamus@yahoo.com> |
|---|---|
| Date | 2014-05-14 12:52 -0700 |
| Subject | Gforth on Android |
| Message-ID | <ll0hhr$j16$1@speranza.aioe.org> |
Can Gforth on the Android be used to make turnkey apps? Can it interface with the Android GUI? Thanks, Steve
[toc] | [next] | [standalone]
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Date | 2014-05-15 01:41 +0200 |
| Message-ID | <ll0uur$jl9$1@online.de> |
| In reply to | #30386 |
Steve Graham wrote: > Can Gforth on the Android be used to make turnkey apps? Yes, sort-of. At the moment, we can't compile C bindings into an image, so you have to load the Android-specific stuff from source (this is on my to-do list). And the cross compilation build procedure which produces the apk still contains too much magic for the average developer ;-). > Can it interface with the Android GUI? I have a JNI interface, but using that to interface the Android GUI wouldn't be a very pleasent job. The Android GUI is tossing Java stuff all over the place, and you really don't want to program this in another language. It's not designed for language neutral bindings, not even for JNI interfacing, as you need to subclass Java classes to get what you want. Maybe some easy things work well from Forth via JNI (plus XML for the GUI description), but in general, this is all too much in Java land. I'm working on MINOS2, which will be a Forth GUI library similar to MINOS, but with modern look and feel (animation, shaded stuff and such). -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
[toc] | [prev] | [next] | [standalone]
| From | Steve Graham <jsgrahamus@yahoo.com> |
|---|---|
| Date | 2014-05-14 17:12 -0700 |
| Message-ID | <ll10q3$rc3$1@speranza.aioe.org> |
| In reply to | #30387 |
Bernd Paysan wrote: > Steve Graham wrote: >> Can Gforth on the Android be used to make turnkey apps? > > Yes, sort-of. At the moment, we can't compile C bindings into an image, so > you have to load the Android-specific stuff from source (this is on my to-do > list). And the cross compilation build procedure which produces the apk > still contains too much magic for the average developer ;-). > >> Can it interface with the Android GUI? > > I have a JNI interface, but using that to interface the Android GUI wouldn't > be a very pleasent job. The Android GUI is tossing Java stuff all over the > place, and you really don't want to program this in another language. It's > not designed for language neutral bindings, not even for JNI interfacing, as > you need to subclass Java classes to get what you want. Maybe some easy > things work well from Forth via JNI (plus XML for the GUI description), but > in general, this is all too much in Java land. > > I'm working on MINOS2, which will be a Forth GUI library similar to MINOS, > but with modern look and feel (animation, shaded stuff and such). > Thanks. Are there any examples of using it to code simple projects? Steve
[toc] | [prev] | [next] | [standalone]
| From | Marvin <marvin_littlewood_426716@yahoo.co.uk> |
|---|---|
| Date | 2014-06-12 02:08 -0700 |
| Message-ID | <d5d327eb-b850-4005-9bae-074f5ddb602e@googlegroups.com> |
| In reply to | #30387 |
MINOS2 sounds interesting... As an alternative, it might be possible to interface gforth to the SL4A environment. I don't know how compatible Apache and GNU licensing is but I suspect that supporting this option might not be within the gforth team's remit. The process seems to require using a remote procedure call over a network socket connection to the SL4A server to send and receive JSON objects. One option for handling JSON is to create a Forth/C binding to the JANSSON library. Another is to await the next FFL release which promised (in 2011) JSON capabilities. See: https://code.google.com/p/android-scripting/ and: http://www.digip.org/jansson/ and: https://code.google.com/p/ffl/ Mark
[toc] | [prev] | [next] | [standalone]
| From | BruceMcF <agila61@netscape.net> |
|---|---|
| Date | 2014-06-10 21:34 -0700 |
| Message-ID | <03d56ea2-da46-4104-bda0-adc7a31d3c66@googlegroups.com> |
| In reply to | #30386 |
On Wednesday, May 14, 2014 3:52:34 PM UTC-4, Steve Graham wrote: > Can Gforth on the Android be used to make turnkey apps? Can it > interface with the Android GUI? How is the command line set up ... when I try to run it on my Nook HD, I get a black screen. I have a sneaking suspicion it might be a "black text on black screen" kind of situation. Is that is something that is set in a start-up file to make it possible to experiment with different settings and see is something shows up?
[toc] | [prev] | [next] | [standalone]
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Date | 2014-06-11 16:19 +0200 |
| Message-ID | <ln9oic$5ej$1@online.de> |
| In reply to | #31394 |
BruceMcF wrote: > On Wednesday, May 14, 2014 3:52:34 PM UTC-4, Steve Graham wrote: >> Can Gforth on the Android be used to make turnkey apps? Can it >> interface with the Android GUI? > > How is the command line set up ... when I try to run it on my Nook HD, I > get a black screen. I have a sneaking suspicion it might be a "black text > on black screen" kind of situation. Highly unlikely. You can actually set text and background colors, but if it was black/black by default, others would see the same problem. So the better guess is that you have some unique conditions that don't show up on other devices. Don't worry, usually I find out what it is. > Is that is something that is set in a start-up file to make it possible to > experiment with different settings and see is something shows up? Two things for troublshooting: in /sdcard, you find a gforthout.log and a gfortherr.log. In /sdcard/gforth/site-forth, there's a starta.fs, which is read in at startup. This reads a few android-specific files, especially the GL terminal, but also the remote telnet terminal. If you don't see a crash in gfortherr.log, you can try adding a single t at the end of starta.fs, then start Gforth and telnet to Port 4444 - if you get Gforth there, then you have an OpenGL problem. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
[toc] | [prev] | [next] | [standalone]
| From | bruce.mcfarling@gmail.com |
|---|---|
| Date | 2014-06-13 23:19 -0700 |
| Message-ID | <b9318b0b-6156-4956-8006-ad7a6fb4bee5@googlegroups.com> |
| In reply to | #31404 |
On Wednesday, June 11, 2014 10:19:54 AM UTC-4, Bernd Paysan wrote: > BruceMcF wrote: >> How is the command line set up ... when I try to run it on >> my Nook HD, I get a black screen. I have a sneaking >> suspicion it might be a "black text on black screen" kind >> of situation. > Highly unlikely. You can actually set text and background > colors, but if it was black/black by default, others would > see the same problem. So the better guess is that you > have some unique conditions that don't show up on other > devices. Don't worry, usually I find out what it is. > Two things for troublshooting: in /sdcard, you find a > gforthout.log and a gfortherr.log. The gfortherr.log says: Registering native methods chdir(/sdcard) Starting gforth -- starta.fs Starting Gforth... /sdcard/gforth/site-forth/android.fs:17: warning: redefined androidapp window $1A625E0 app window $1A625E0 Started, rval=-56 ainput=0x53ce1b48, acmd=0x53ce1b68, akey=0x53ce1b88 bootmessage=0x53cad808 starting gforth_quit
[toc] | [prev] | [next] | [standalone]
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Date | 2014-06-14 14:57 +0200 |
| Message-ID | <lnhgr5$aes$1@online.de> |
| In reply to | #31519 |
bruce.mcfarling@gmail.com wrote: > On Wednesday, June 11, 2014 10:19:54 AM UTC-4, Bernd Paysan wrote: >> BruceMcF wrote: >>> How is the command line set up ... when I try to run it on >>> my Nook HD, I get a black screen. I have a sneaking >>> suspicion it might be a "black text on black screen" kind >>> of situation. > >> Highly unlikely. You can actually set text and background >> colors, but if it was black/black by default, others would >> see the same problem. So the better guess is that you >> have some unique conditions that don't show up on other >> devices. Don't worry, usually I find out what it is. > >> Two things for troublshooting: in /sdcard, you find a >> gforthout.log and a gfortherr.log. > > The gfortherr.log says: > > Registering native methods > chdir(/sdcard) > Starting gforth -- starta.fs > Starting Gforth... > > /sdcard/gforth/site-forth/android.fs:17: warning: redefined androidapp > window $1A625E0 app window $1A625E0 > Started, rval=-56 > ainput=0x53ce1b48, acmd=0x53ce1b68, akey=0x53ce1b88 > bootmessage=0x53cad808 > starting gforth_quit Ok, that looks fine. Next, add a "t" at the last line of /sdcard/gforth/site-forth/starta.fs and try telnet <your tablet's ip> 4444. Then you can e.g "include gl-sample.fs" and see if a simpler GL shader program works on your device. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
[toc] | [prev] | [next] | [standalone]
| From | BruceMcF <agila61@netscape.net> |
|---|---|
| Date | 2014-06-15 17:49 -0700 |
| Message-ID | <8a066c00-64df-4a14-a41e-c7d7a30cb71e@googlegroups.com> |
| In reply to | #31529 |
On Saturday, June 14, 2014 8:57:08 AM UTC-4, Bernd Paysan wrote: > Ok, that looks fine. Next, add a "t" at the last line of > /sdcard/gforth/site-forth/starta.fs and try telnet <your tablet's ip> 4444. > Then you can e.g "include gl-sample.fs" and see if a simpler GL shader > program works on your device. I don't know if I've ever had telnet on my netbook upstairs, but googling to find out how to find my Nook's IP address turned up the answer in no time, so I'll give it a try tomorrow.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.forth
csiph-web