• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

DocKimbel
24-Jun-2013
[8641]
Endo, thanks for testing it.
AdrianS
24-Jun-2013
[8642]
It still won't install on my Galaxy Nexus with 4.2.2.
DocKimbel
24-Jun-2013
[8643]
AdrianS: do you have a previous version already installed? What is 
the installation error message?
AdrianS
24-Jun-2013
[8644]
It's a very nondescript message - "App not installed"
DocKimbel
24-Jun-2013
[8645x3]
The only reasons I can think of for that issue are:
1) Not enough internal memory available for new apps.
2) You have a debug version of the same app already installed.
Also, you might want to check if you have allowed installation of 
apps from "unstrusted sources". You need to have that option checked 
to be able to install apps coming from outside of the PlayStore.
untrusted sources
Pekr
24-Jun-2013
[8648]
works again on my htc sensation 4.0.3
AdrianS
24-Jun-2013
[8649]
Nenad, I've installed all kinds of apps by sideloading. Even one 
from you a while back, where the app ran, but all it showed was "Hello" 
as the title of a screen with no other content. Not sure what the 
difference is with the latest one you linked.
DocKimbel
24-Jun-2013
[8650]
The difference is that the new one is supposed to work. :-) Have 
you uninstalled the previous one? (It was most probably a "debug" 
version you had while the new one is a "release" version, this is 
one of the cases where the installer would block the new app installation)
Pekr
24-Jun-2013
[8651]
on my HTC, I even don't know how to uninstall. I just download, choose 
to launch, it says previous version is going to be removed, then 
I install, run, and it is ok ...
AdrianS
24-Jun-2013
[8652x2]
I've uninstalled any earlier apps from you. Do you still have that 
earlier one around just so that I can see if that one, at least, 
will install?
Just re-downloaded it - it now doesn't work either.
Pekr
24-Jun-2013
[8654]
AdrianS: does R3/Droid work for you? Not sure it would help Doc, 
but maybe he could check on some things with Cyphre?
AdrianS
24-Jun-2013
[8655x3]
Yeah, R3Droid works
But it was installed earlier - maybe if I tried to install it now 
it would fail. I just installed some self-built apps the other day 
though, so I'm not sure what could be the problem.
Tried to build an app just now with Processing and launched it on 
the phone with no problem.
DocKimbel
24-Jun-2013
[8658x5]
AdrianS: you would need to have a look at the logcat output to diagnose 
the issue. You can do that with ADB if you know how to use it, else 
the simplest way is to use one of the logcat viewing apps, like this 
one:

https://play.google.com/store/apps/details?id=org.jtb.alogcat&hl=en
I don't have the old one. I will release the demo app source very 
soon, so you'll be able to recompile it fully and test locally.
Pekr: I doubt that Red port on Android and R3/Droid have much in 
common. Though, as there's no R3/Droid source released, I can't be 
entirely sure.
R3/Droid is most probably using a NativeActivity container, while 
Red relies on a Activity one.
Also, R3 relies on the gcc toolchain, while Red has its own unique 
one. So, there's not much to share there.
Pekr
24-Jun-2013
[8663]
Dockimbel - I thought so, my idea was, that Cyphre used some ELF 
support from Adrian too ... or who did it ...
Bo
24-Jun-2013
[8664x2]
Works fine on my Android 4.1.2.
However, and I think you already know this, working with decimal 
numbers makes it close and go away.

2.0 - 1.0 ;crash
DocKimbel
24-Jun-2013
[8666x5]
Pekr: I strongly doubt that Cyphre is using Red's ELF emitter while 
compiling with gcc. ;-)
Bo: yes I'm aware of that, currently Red supports only armel ABI 
while it seems that armhf is required for Android.
The difference between those two ABIs is the way float arguments 
are passed on sub-routine calls, IIRC, armel requires the argument 
to be on stack while armhf passes them by registers.
It's not a big task to add armhf support to the ARM backend, probably 
2-3 days of work.
Okay, AdrianS install problem is solved (debug vs release version 
signature conflict). So, so far, no reported issues with the new 
Red APK! :-)
Kaj
24-Jun-2013
[8671x2]
Red has no floating point yet, only Red/System
Unless there's float support in the pending code
DocKimbel
25-Jun-2013
[8673]
No, there's not.
Luis
25-Jun-2013
[8674]
Yessssssss !!!!! on Galaxy Note II 4.1.2
DocKimbel
25-Jun-2013
[8675]
Great! Thanks for testing! :)
Pekr
25-Jun-2013
[8676]
either I have mess again on my system, or there's a compilation error 
for me, when trying to do:


do/args %red.r "-dlib -v 0 %red/bridges/java/hello.red -o %../red/bridges/java/hello" 


Script: "Red/System IA-32 code emitter" (none)
*** Compilation Error: missing argument
*** in file: %structures.reds
*** in function: exec/~java-instantiate-abstract
*** at line: 166
*** near: [jni-env/jni/NewObject]
DocKimbel
25-Jun-2013
[8677]
Yes, the bridge updates have not been commited yet, I'm still working 
on cleaning it up. It should be ready in about an hour I hope.
Pekr
25-Jun-2013
[8678]
ok, good to know, moving home from work, will try in the evening 
....
DocKimbel
25-Jun-2013
[8679]
Just found out how to set a black (ICS) skin for Red apps on Android. 
Looks great! :)
Bo
25-Jun-2013
[8680]
Is it still true that Red/System doesn't support loading/reading 
files?
Kaj
25-Jun-2013
[8681]
No, it does with my bindings
Bo
25-Jun-2013
[8682]
That's right, you have a C Language binding to do that, don't you?
Kaj
25-Jun-2013
[8683]
Yes, and a cURL binding for network files
Bo
25-Jun-2013
[8684]
I'm trying to load binary data to perform some bit-level operations 
on it.
Kaj
25-Jun-2013
[8685x2]
There's a binary example in my 6502 emulator, where it loads a ROM 
file
http://red.esperconsultancy.nl/Red-6502/dir?ci=tip
Bo
25-Jun-2013
[8687]
It sure would be nice if we had a centralized repository for Red 
and Red/System examples, like we have for Rebol at Rebol.org.
Kaj
25-Jun-2013
[8688x2]
That wouldn't scale, unless it were a repository of links
The file operation is in machine.reds under the ROM heading
Luis
25-Jun-2013
[8690]
Is possible an bridge from red to App Inventor components ? https://sites.google.com/site/mobileprogrammingusf/java-bridge