gcc to build RISC OS
Ruchitha Kumar (8570) 6 posts |
I’m supposed to do this: ro-path is a script that redirects calls to host tools like gcc to ones that build for RISC OS. For instance: $ /home/riscos/env/ro-path ./build-me.sh but, I have an error executing this command: kaizen@Rk:~$ /home/kaizen/gccsdk/env/ro-path ./build-me.sh /home/kaizen/gccsdk/env/ro-path: line 27: ./build-me.sh: No such file or directory can I please know what might be the mistake? |
David Pitt (3386) 1248 posts |
The terminal has to be open in the folder containing build-me.sh, which itself should be set to be executable. djp@ubuntu1910:~/Work/gcc$ /home/djp/gccsdk/env/ro-path ./build-me.sh Worked here. HTH. |
Ruchitha Kumar (8570) 6 posts |
Thank you for the reply, but I’m unable to find the folder containing build-me.sh, it still doesn’t work for me. |
David Pitt (3386) 1248 posts |
http://www.riscos.info/index.php/Cross-compiling_software_with_GCCSDK The My source djp@ubuntu1910:~/Work/gcc$ /home/djp/gccsdk/env/ro-path gcc -o hello hello.c In the same folder create a file #!/bin/sh gcc -o hello hello.c This line then executes djp@ubuntu1910:~/Work/gcc$ /home/djp/gccsdk/env/ro-path ./build-me.sh |
Ruchitha Kumar (8570) 6 posts |
Thank you for making me understand it clearly. Now after this where can I find the RISC OS executable files. |
David Pitt (3386) 1248 posts |
Do you mean this, |
Ruchitha Kumar (8570) 6 posts |
Ah no, I was asking about: bash: ./hello: cannot execute binary file: Exec format error how can I execute this in ubuntu? |
David Pitt (3386) 1248 posts |
It can’t be done. The compiled |
Ruchitha Kumar (8570) 6 posts |
Thank you :) |
Steve Pampling (1551) 8172 posts |
Which is when you need to look at "this linked site:http://www.marutan.net/rpcemu/index.php for an emulation of an old RISC OS based system. Or you could buy a aspberry Pi |