@magorium
I pushed an update to alt-runtime branch. It is now possible to pass command line arguments to your program when started from linux console. For this I had to change the signature of __kick_start function (https://github.com/deadw00d/AROS/blob/4ac824e890b4ed0f623e16bb30a4818c5c835066/arch/all-runtime/axrt/startup/startup.c#L107). You will also need to create empty C, Libs and S directories in your ~/.axrt/ directory or Shell will flash each time you start a program.
Thank you for the update and sorry for the delay.
I'm still waiting for some merge requests to come through but thought i gave it another whirl nonetheless (at least the changes are in my local repo).
Upfront: i did not create the directories as instructed (i wanted to see what happens
) and used a custom AXRT_ROOT which resulted for me in:
FPC1: begin
FPC1: load ax runtime library
FPC1: ax runtime library loaded successful
FPC1: Obtain ax runtime library function entries
FPC1: ax runtime library function entries obtained
FPC1: set axrt environment
FPC1: invoke kick start axrt startup entry
<<INFO>>: AxRT 41.3
<<INFO>>: Using absolute paths.
<<INFO>>: AXRT_ROOT environment variable set
<<INFO>>: RUNTIME_ROOT: /home/magorium/bin/AXRT_413/
<<INFO>>: AXRTSYS : ROOT:home/magorium/bin/AXRT_413/
<<INFO>>: USERSYS : ROOT:home/magorium/.axrt/
libaxrt-4.0.so: cannot open shared object file: No such file or directory
libaxrt-4.0.so: cannot open shared object file: No such file or directory
libaxrt-4.0.so: cannot open shared object file: No such file or directory
libaxrt-4.0.so: cannot open shared object file: No such file or directory
libaxrt-4.0.so: cannot open shared object file: No such file or directory
libaxrt-4.0.so: cannot open shared object file: No such file or directory
<<INFO>>: CURRENT_DIR : ROOT:home/magorium/bin/AXRT_413/work/fpc/
<<INFO>>: PROGRAM DIR : ROOT:home/magorium/bin/AXRT_413/work/fpc/
<<INFO>>: PROGRAM NAME: axrt_window
Runtime error 216 at $0000000100000000
$0000000100000000
$00007F705B8FE2DD
$00007F705B8DF025
$00007F705B8D8EEC
$00007F706008B86E
$00007F7060A7FFA3
Now, the question becomes is the crash more likely due to the "libaxrt-4.0.so: cannot open shared object file: No such file or directory" messages or is it more likely that something is amiss in my own code ? TIA
edit: see msg below