RPCEmu 0.9.0 and Macs - beta testers wanted

ask about 32-bit emulators like ArcEm, Red Squirrel, Arculator or RPCEmu here
User avatar
Richard Hallas
Posts: 11
Joined: Thu Jun 28, 2018 7:09 am
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by Richard Hallas » Sun Oct 21, 2018 10:48 am

VincentVega wrote:
Wed Oct 17, 2018 7:53 pm
If anyone else has views on my use of "Application Support", then please let me know - if the prevailing view is that people would rather me use something else, then I'll change the patch.

The Windows/Linux versions of RPCEmu will load the support files from the same directory as the executable. On a Mac, this would actually be inside the application itself, namely in the "Contents/MacOS" folder, which is why I changed it. From looking at the source, Caliston builds look like they prompt you for a data directory on first start-up - would this be a better approach?
Bottom line is: I don't really think this matters greatly. It's certainly not something I'd complain about as a significant issue personally.

However, my take on it would be this.

It's important to follow Apple's guidelines, I agree (and there's plenty of evidence to show the wisdom of doing so, when Apple later does something that causes your software to break if you haven't heeded its advice!). Nevertheless, buying files that you may need to access regularly within Application Support, which is tucked away in the hidden-by-default Library folder, is really unfriendly and not at all helpful. I think the clue is in the name: Application Support is for support files for applications: files that apps need in order to run, but that the user typically shouldn't need to see. So if you've got a simple all-in-one package that you can install wherever you like by just dragging it – as is the case with most Mac App Store apps – it makes sense for such an app to silently keep its external resources tucked away in Application Support.

But with RPCEmu, changes are high that the user will want to access the support files pretty frequently. Indeed, for a whole working system's entire hard disk-based structure to be hidden away like that is pretty nonsensical when you think about it. Indeed, I've put my own 'simple' RPCEmu boot disk in Documents/RISC OS for easy access, and have pointed HostFS to that via a symlink; and then I've got separate symlinks within that to point to my main RISC OS storage on my NAS as well as other places.

I agree that moving things outside the application bundle is basically a good idea – not least because you don't want to destroy your data and settings if you upgrade the app! But I'd suggest that the support files could go EITHER in Application Support OR alongside the RPCEmu app in its own applications folder, for easier user accessibility. Alternatively, if you do put the files in Application Support, perhaps you could include a draggable alias to install along with the application, pointing to the home of the files in Application Support. That would allow people to access them easily and thus remove a lot of the problem.

As for prompting the user for a data directory at start-up… I think that's basically a good idea, but maybe not the whole story. How about…

On start-up:
1. Look for the support files in Application Support
2. If not found, look for them alongside the RPCEmu application itself
3. If still not found, prompt the user to locate them via your suggested data directory prompt.

This could also, of course, tie in with the proposed options to choose between multiple configurations.

NB It would be up to the user to ensure that data directories weren't present in both locations 1 AND 2! If they were, the one in Application Support would of course take precedence. Actually, perhaps that could be a good thing. If the user messes up their RISC OS boot sequence, for example, they could move it temporarily out of Application Support, and then if there's a simple bare-bones version installed by default alongside the application itself, that would be picked up and used as a fall-back position.
Richard Hallas

Former editor of RISC User and Foundation RISC User magazines
Designer of the RISC OS cogwheel logo • Designer of the RISC OS 5 icon set

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by myelin » Wed Oct 24, 2018 11:51 pm

This looks amazing and I would love to give it a try! However, something seems to be wrong with maemagel.com; it's just serving a blank homepage and 404 for all the links here.
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

User avatar
Richard Hallas
Posts: 11
Joined: Thu Jun 28, 2018 7:09 am
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by Richard Hallas » Mon Dec 03, 2018 11:07 am

Yes, what's happened to this thread? Are you there, VincentVega? Why's everything gone so quiet, and how come the links are down?

I'm finding RPCEmu 0.9.0 on the Mac extremely useful, but there's a least one major bug in HostFS that wasn't there in the previous version, and a fix would be lovely…
Richard Hallas

Former editor of RISC User and Foundation RISC User magazines
Designer of the RISC OS cogwheel logo • Designer of the RISC OS 5 icon set

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by myelin » Sun May 05, 2019 4:22 am

I got this working a while back and only just now got around to building a binary for others to download:

https://github.com/myelin/rpcemu-macos/ ... /0.9.1-pp1

You probably need to install Qt yourself, and I'm sure there are all sorts of other incompatibilities, so please reply in here to let me know if it works for you!
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

User avatar
geraldholdsworth
Posts: 500
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by geraldholdsworth » Sun May 05, 2019 5:18 pm

I tried it, but crashed as soon as it opened. I haven't installed QT yet...in fact, what is QT? Where do I get it?

Oh, this is on High Sierra.

Gerald.
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by myelin » Sun May 05, 2019 6:41 pm

geraldholdsworth wrote:
Sun May 05, 2019 5:18 pm
I tried it, but crashed as soon as it opened. I haven't installed QT yet...in fact, what is QT? Where do I get it?

Oh, this is on High Sierra.
Can you try this at the command line? This gives one line of debug output when I run it (and then opens the main window and works), so with any luck it'll give you an error message, probably something mentioning /usr/local/opt/qt/lib or /usr/local/Cellar/qt/5.12.1.

Code: Select all

DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_LIBRARIES_POST_LAUNCH=1 DYLD_PRINT_RPATHS=1 rpcemu-interpreter.app/Contents/MacOS/rpcemu-interpreter
QT is the cross-platform UI library RPCEmu uses, and at least with this build I think it needs to be installed separately. To install it, install Homebrew from http://brew.sh, then run this at the command line:

Code: Select all

brew install qt
I did the build on Mojave, so it's also possible that it's linked against different system libraries to what you have on your machine. Bear with me... I know very little about building and distributing software for macOS, so I'm going to have to learn this by trial and error :)
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

User avatar
geraldholdsworth
Posts: 500
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by geraldholdsworth » Sun May 05, 2019 6:56 pm

myelin wrote:
Sun May 05, 2019 6:41 pm
Can you try this at the command line? This gives one line of debug output when I run it (and then opens the main window and works), so with any luck it'll give you an error message, probably something mentioning /usr/local/opt/qt/lib or /usr/local/Cellar/qt/5.12.1.

Code: Select all

DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_LIBRARIES_POST_LAUNCH=1 DYLD_PRINT_RPATHS=1 rpcemu-interpreter.app/Contents/MacOS/rpcemu-interpreter
I get:

Code: Select all

dyld: loaded: /Users/geraldholdsworth/Downloads/rpcemu-macos-0.9.1-pp1/rpcemu-interpreter.app/Contents/MacOS/rpcemu-interpreter
dyld: loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
dyld: loaded: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
dyld: Library not loaded: /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets
  Referenced from: /Users/geraldholdsworth/Downloads/rpcemu-macos-0.9.1-pp1/rpcemu-interpreter.app/Contents/MacOS/rpcemu-interpreter
  Reason: image not found
Abort trap: 6
So I guess it is the QT I need.
myelin wrote:
Sun May 05, 2019 6:41 pm
QT is the cross-platform UI library RPCEmu uses, and at least with this build I think it needs to be installed separately. To install it, install Homebrew from http://brew.sh, then run this at the command line:
I'll get that done, hopefully tonight, and get back to you.

Gerald.
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

User avatar
geraldholdsworth
Posts: 500
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by geraldholdsworth » Sun May 05, 2019 7:08 pm

OK, got it working now. Thank you.

I'll have a play with it over the next few days and report any issues.

Gerald.
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by myelin » Sun May 05, 2019 7:11 pm

Great! I’m figuring out how to bundle Qt with it too.

The only issue I’ve found is that it seems to get stuck thinking you have the mouse down sometimes, possibly if you drag something out of the RPCEmu window. Doing a two finger (adjust?) tap seems to reset it though.
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by myelin » Mon May 06, 2019 2:25 pm

Here's a build which includes Qt, so you shouldn't need to install it with Homebrew any more:

https://github.com/myelin/rpcemu-macos/ ... /0.9.1-pp2

The GitHub issue tracker is starting to see some use, so I guess that's where to report bugs now :)

https://github.com/myelin/rpcemu-macos/issues
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

User avatar
geraldholdsworth
Posts: 500
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by geraldholdsworth » Mon May 06, 2019 2:29 pm

myelin wrote:
Sun May 05, 2019 7:11 pm
The only issue I’ve found is that it seems to get stuck thinking you have the mouse down sometimes, possibly if you drag something out of the RPCEmu window. Doing a two finger (adjust?) tap seems to reset it though.
I've noticed some issues with the mouse - when I narrow it down (so you can, hopefully, replicate it) I'll put it up on the issue tracker on GitHub.
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

User avatar
gingerbeardman
Posts: 1
Joined: Sun May 05, 2019 12:12 am
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by gingerbeardman » Mon May 06, 2019 2:37 pm

Thanks for this!

If you switch away from RPCEmu by clicking on another application window that click seems to be noticed by RPCEmu. When you come back it thinks mouse is held down. Workaround is to Cmd+Tab to other apps, or left click desktop when you return.

I also find clicks less than responsive, especially noticeable when setting RPCEmu prefs and dismissing alerts - they always seem to need more than one click which is odd.

I have reported some other small issues on GitHub.

Is Network capability out of the question? (Big Ask)
Last edited by gingerbeardman on Mon May 06, 2019 2:38 pm, edited 1 time in total.

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by myelin » Wed May 08, 2019 1:10 pm

FYI for Stardot readers, all of these are being discussed in various issue reports in the GitHub tracker. The original author of the macOS patches has returned and is helping :) I've added links below.
gingerbeardman wrote:
Mon May 06, 2019 2:37 pm
If you switch away from RPCEmu by clicking on another application window that click seems to be noticed by RPCEmu. When you come back it thinks mouse is held down. Workaround is to Cmd+Tab to other apps, or left click desktop when you return.

I also find clicks less than responsive, especially noticeable when setting RPCEmu prefs and dismissing alerts - they always seem to need more than one click which is odd.

I have reported some other small issues on GitHub.

Is Network capability out of the question? (Big Ask)
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

User avatar
Richard Hallas
Posts: 11
Joined: Thu Jun 28, 2018 7:09 am
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by Richard Hallas » Sat May 11, 2019 11:05 am

myelin wrote:
Wed May 08, 2019 1:10 pm
FYI for Stardot readers, all of these are being discussed in various issue reports in the GitHub tracker. The original author of the macOS patches has returned and is helping :) I've added links below.
THANK YOU! :D
Richard Hallas

Former editor of RISC User and Foundation RISC User magazines
Designer of the RISC OS cogwheel logo • Designer of the RISC OS 5 icon set

User avatar
myelin
Posts: 723
Joined: Tue Apr 26, 2016 9:17 pm
Location: Mountain View, CA, USA
Contact:

Re: RPCEmu 0.9.0 and Macs - beta testers wanted

Post by myelin » Sun May 12, 2019 12:50 pm

New build! This includes the latest patch from Timothy, and fixes some bugs to do with mouse behaviour and crashing.

https://github.com/myelin/rpcemu-macos/ ... /0.9.1-pp3
SW/EE from New Zealand, now in Mountain View, CA, making BBC/Electron hardware projects for fun.
Most interesting: Arcflash, FX2+PiTubeDirect Tube/Cartridge adapter, USB cart interface.

Post Reply