Dear Rick,

I dont think so. Will check that. Thanks!

Best regards
Thomas
________________________________
Von: Rick McGuire <object.r...@gmail.com>
Gesendet: Donnerstag, Juni 3, 2021 9:49 PM
An: Open Object Rexx Developer Mailing List
Betreff: Re: [Oorexx-devel] ooRexx > Android

Did you also transfer the rxapi executable? That process will get launched when 
rexximage runs, so it might be hanging up because the daemon isn't getting 
created on startup.

Rick

On Thu, Jun 3, 2021 at 3:30 PM Thomas Kahr 
<tho...@vaime.at<mailto:tho...@vaime.at>> wrote:
Greetings,

as mentioned yesterday, I want to give a brief update to my progress.

I already had the chance to try the build on the emulated device.

Out of the box it is not working. When trying to execute "./rexx -v" I
get an error which says that "librexx.so" is not found.
The problem here is that r-path is not available for Android and so its
a problem to find the libraries.

A workaround for now is to use "LD_LIBRARY_PATH=./lib bin/rexx -v"
This works and I'm getting the version info. At least that's a good sign.

The problem with this solution is, nothing else works. I tried multiple
things including a small hello-world file but every time I want to
execute rexx commands I wont get an output. It seems like its stuck
somehow. Only <STRG>C helps. I attached a screenshot.

Its not a problem with the shell itself because my small c++ sample
program (sums two integers given by the user)  works just fine even with
the user input.
The Shell running on the Android device is mksh. See
https://www.commandlinux.com/man-page/man1/mksh.1.html

My thoughts on that problem:

First of all @Erich Steinboeck you told me it will be necessary to
manually, or automatically upload rexximage together with librexx.so and
librexxapi.so and the *.orx Files to the device.
To finish my build I did not do that for now. Instead, I took the
rexximage executable from another Linux build and let CMake generate the
rexx.img from this rexximage file. I'm aware that this is probably the
wrong way but it was faster to implement for now. Although I'm pretty
sure that this is not the problem here. Btw. its possible to connect via
command line to the device.

I tried your suggestion manually. So I pushed the rexximage (generated
during the build with the Android-Toolchain) together with librexx.so
and librexxapi.so to the device. "./rexximage rexx.img" again, gives an
error regarding librexx.so. But with the LD_LIBRARY_PATH-Command its
executable but with the same result which I got from the rexx
executable. It is stuck. Therefore the problem must arise earlier.

My suspicion is that something is maybe wrong with the libraries. To
further limit the problem down to a specific file I wanted to try out
which library file gets linked in which order. It seems that
"librexx.so" is first followed by librexxapi.so. When removing
"librexxapi.so" and trying to build the rexx.img. I get the error
message that "librexxapi.so" could not be found. Therefore I assume that
"librexx.so" is fine. At least it isn't stuck till now. When I'm
re-adding "librexxapi.so" the process freezes again. So I derive that
the problem has to be in "librexxapi.so".

It is built at around 13-15 percent. The only thing I changed here was
to replace the open64() function with the open() function from fentl.h
library. There is a flag for open() called O_LARGEFILE which should have
the same effect as open64() but I did not use this flag.

A few info's to the host and target system:
Host System x86_64 Arch Linux
Target System x86 Android API LVL 29
I also tried Target System x86_64 Android API LVL 30

As a side note I want to mention that I have 34 files in the /lib-Folder
for a standard Linux build.
There are only 24 files in the /lib-Folder for an Android build.

Of course maybe I'm totally wrong with my assumptions but I"m limited to
my observations here.

Maybe someone has further ideas?

Have a great day and best regards

Thomas



_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net<mailto:Oorexx-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to