Building RPCEmu for Linux
M. Uddin (9477) 7 posts |
Hi there, according to the RISC OS USB that l just ordered, l need to do the following step, which l’m stumbling on: (2) Unpack the RPCEmu sources somewhere To explain: l copied the tar.gz file onto my desktop. |
David Boddie (1934) 222 posts |
What exactly did you type? Can you cut and paste the input and output from the terminal window, please? Start the first line of text with bc. to make it appear as code in the forum. |
M. Uddin (9477) 7 posts |
I got the file: and transferred it to a folder i named RISC OS on my desktop. I did everything in the part before Step 1. Within the unpacked folder, l then commenced Step 2. The result is this: |
Steve Fryatt (216) 2105 posts |
What is the “RISC OS USB”, and who did you order it from? Many of us are only likely to be familiar with the official RPCEmu distro from https://www.marutan.net/rpcemu/index.php and the sources in .tar.gz files in the downloads section there – if you’re using something else, then there could be differences. The references to patching things makes me wonder if you’re using the Cloverleaf distro – if so, telling us that upfront would help a lot, as there could be differences in the process. I got the file: OK.
Woah. Hang on. What do you mean “I then unpacked it”? I did everything in the part before Step 1. There’s something amiss here. You said that you “then unpacked it” earlier, but here you’re describing an attempt to unpack the files using
If you’ve already unpacked the files from the TAR, that’s not going to work, and the “No such file or directory” for src-original.tar.gz isn’t surprising. Also, what do you mean by “Step 1”, “Step 2”…? Are they the steps from https://www.marutan.net/rpcemu/linuxcompile.html |
M. Uddin (9477) 7 posts |
err … think local: Reluctant to just paste the entire Linux info sheet as that could make it unreasonable to some to purchase the USB, if they could D.i.y. By unpacked it, i mean, unzipped it / extracted it. Yes it does seem strange to try to extract the already extracted, but l’m just following the instructions in the Linux folder of the USB |
Steve Fryatt (216) 2105 posts |
Another one I’m not familiar with, unfortunately. I’ve already got the pre-requisite packages installed on this Ubuntu 20.04 system here (step 1 from here). I’ve downloaded a copy of the latest .tar.gz of the sources from here, and placed it in a new folder in the root of my disc: ~/demo. This means that I’m working from a clean start (aside from the pre-requisites, which don’t look to be your problem). Opening a new terminal window, which defaults to ~/, compilation is then just a case of dropping into the demo folder, then following the instructions for extracting and compiling:
At the end, there’s the new rpcemu-interpreter executable ready to run – once you’ve copied ROMs into the correct places and so on, of course. If you wanted the dynarec option, you could furtle with rpcemu-0.9.4/src/qt5/rpcemu.pro as described in the instructions, before running the buildit.sh script. |
Steve Fryatt (216) 2105 posts |
Whilst the above is clearly not what you’re doing, the instructions should be the same if you start from the same relative position to the rpcemu-0.9.4.tar.gz file. That said, I’m unsure what you’re patching in the original instructions with the
line? Presumably this is yet another modified version of RPCEmu (which is why I thought “Cloverleaf” earlier)? |
M. Uddin (9477) 7 posts |
I haven’t a clue, honestly. I just have these insructions. |
John McCartney (426) 148 posts |
I think your best course of action would be to do as Steve suggested: go to the RPCEmu home website here. From there you can download the latest version of RPCEmu which is 0.9.4 and it has some much improved networking functionality compared with version 0.9.3. |
James Byrne (3371) 29 posts |
It looks like the instructions supplied don’t quite work. It would be a good idea to mail ROOL about this. The Contact us page advises using notify@riscosopen.org for issues with purchases. |
M. Uddin (9477) 7 posts |
Apologies for the delay, l got massively sidetracked. @James Byrne Just to be clear, l’m trying to make the RISC OS emulator work based on the instructions on the pen drive purchased from RISC OS Open. In that pen drive there’s a folder called “RPCEmu Linux” and in that folder there’s a file called “Readme-Linux.txt”, and it is these instructions which are baffling. They simply do not work, and l’m not really looking at alternative setups, l wanted the one l purchased, to work or l wanted to know how to make that work. I am running Linux Mint 21.1 Cinnamon, Linux kernel 5.15.0-67-generic Here are the instructions given in “Readme-Linux.txt”: B E G I N P A S T E ####################### Building RPCEmu for Linux RPCEmu is a fairly self-contained piece of software with one major Source code and patches for RPCEmu are in the “Sources/src-original.tar.gz”
For building, work with those copies of the files. Don’t try to build things (1) Install pre-requisites Using your distribution Package Manager or command-line tools, install the The following package names are used on Debian/Ubuntu/Linux Mint: - build-essential You should install these using the Synaptic package manager, or at the Similar package names will be used on other Linux distributions. (2) Unpack the RPCEmu sources somewhere (3) Configure and build RPCEmu If you encounter errors at this stage you’ll have to try Google searches This will have built the interpreter version of RPCEmu. Next build the to CONFIG += debug_and_release dynarecthen configure and build again: ./buildit.sh make(4) Run RPCEmu If RPCEmu runs, then you will probably get an error about not being able to If you see RISC OS try to start up but it crashes, e.g. with a SWI Not RPCEmu in use The ‘boot drive’ of the Risc PC is inside the “hostfs” folder, inside the E N D P A S T E ####################### |
Matthew Phillips (473) 721 posts |
It certainly looks like there is an inconsistency between steps 1 and 2. In step 1 it says:
Perhaps you could first try not decompressing the src-original.tar.gz file, and just copying the patches to the same folder so that they sit alongside the tar.gz file. Then try step 2 as written. That will decompress the tar.gz file, and with a bit of luck the patches will be written in such a way that they apply from the directory you have changed to beforehand. If that does not work, try following step 1 exactly as written, and amend step 2 to:
I think the first option involves the fewest corrections to the instructions. |
John C McCulloch (7726) 6 posts |
Hi there, I have read all the above comments, I wonder if anyone on here has an Archlinux based distro. The AUR has rpcemu v0.9.4 which is compiled and all one has to do is download and install same. One then has to run Thunar as Root to populate the HostFS and Rom directories, add in a suitable RISC OS rom file obtainable from ROOL and fill the HostFS directory with the ROOL Harddisc4 Folder from the RiscPC section on ROOL, and then run the rpcemulator-recompiler as an executable file. Bobs your uncle RISC OS 5 in all its glory. Job done. |
John C McCulloch (7726) 6 posts |
Hi there, I have read all the above comments, I wonder if anyone on here has an Archlinux based distro. The AUR has rpcemu v0.9.4 which is compiled and all one has to do is download and install same. One then has to run Thunar as Root to populate the HostFS and Rom directories, add in a suitable RISC OS rom file obtainable from ROOL and fill the HostFS directory with the ROOL Harddisc4 Folder from the RiscPC section on ROOL, and then run the rpcemulator-recompiler as an executable file. Bobs your uncle RISC OS 5 in all its glory. Job done. |
John C McCulloch (7726) 6 posts |
Hi there, I have read all the above comments, I wonder if anyone on here has an Archlinux based distro. The AUR has rpcemu v0.9.4 which is compiled and all one has to do is download and install same. One then has to run Thunar as Root to populate the HostFS and Rom directories, add in a suitable RISC OS rom file obtainable from ROOL and fill the HostFS directory with the ROOL Harddisc4 Folder from the RiscPC section on ROOL, and then run the rpcemulator-recompiler as an executable file. Bobs your uncle RISC OS 5 in all its glory. Job done. |
M. Uddin (9477) 7 posts |
@John C McCulloch l don’t think your post directly relates to the issue at hand, which is the RISC OS USB stick purchased via the online shop. Just so you know, l’ve solved the matter. Here are my edited instructions: Building RPCEmu for Linux RPCEmu is a fairly self-contained piece of software with one major Source code and patches for RPCEmu are in the “Sources/src-original.tar.gz”
Your folder should now contain the tar.gz file and the four patch files. For building, work with those copies of the files. Don’t try to build things (1) Install pre-requisites Using your distribution Package Manager or command-line tools, install the The following package names are used on Debian/Ubuntu/Linux Mint: - build-essential You should install these using the Synaptic package manager, or at the Similar package names will be used on other Linux distributions. (2) Unpack the RPCEmu sources somewhere [[[[ #### MY EDIT: FOR THIS LAST LINE TO WORK, FETCH THE FOLLOWING PATCH FILES FROM src-patches AND PLACE THEM IN Sources FOLDER. You should end up with 5 files in total side by side on the first level of the folder: src-original.tar.gz filer-ellipsis.patch hostfs-4gig.patch no-tlb-flush-mmuoff.patch fullscreen-mouse.patchYou must run the command from the Sources folder i.e. cd ~/Desktop/RISC OS/My Edit/RISC OS USB Stick/Sources
(3) Configure and build RPCEmu If you encounter errors at this stage you’ll have to try Google searches This will have built the interpreter version of RPCEmu. Next build the to CONFIG += debug_and_release dynarecthen configure and build again: ./buildit.sh make(4) Run RPCEmu If RPCEmu runs, then you will probably get an error about not being able to [[[ #### MY NOTE: S T A R T H E R E F O R R E P E A T V I S I T S F R O M A F T E R I N I T I A L S E T U P #### ]]] If you see RISC OS try to start up but it crashes, e.g. with a SWI Not RPCEmu in use The ‘boot drive’ of the Risc PC is inside the “hostfs” folder, inside the |
M. Uddin (9477) 7 posts |
Thanks to Andrew Hodgkinson for helping me get through this. I was able to connect to the internet and browse Wikipedia. I could not use eBay nor YouTube out of the box but l gather there are plugins for RISC OS that can be purchased for this? |