Open emendelson opened 7 years ago
First, can you confirm you're building the 32-bit version? 64-bit has issues on newer Mac versions: https://github.com/cebix/macemu/issues/99
Otherwise, as silly as it sounds, I suggest duplicating the .app. Sometimes launch services has issues recognizing a newly-built app. And since the error is from launch services, I would suggest trying that.
On Sun, Nov 12, 2017 at 4:59 PM, emendelson notifications@github.com wrote:
Probably I'm making an elementary mistake, but when I build SheepShaver (from the latest code) in Xcode under High Sierra, the build is successful, but when I try to run the app, I get this error (from the "open" command):
LSOpenURLsWithRole() failed with error -10810 for the file /Emulators/SheepShaver/SheepShaver-TestHS.app.
The only advice I found online was that it might be worth using chmod +x on the executable; that didn't help.
Is there anything I need to know in order to build current code under current Xcode?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cebix/macemu/issues/143, or mute the thread https://github.com/notifications/unsubscribe-auth/AABE8DoZ5hSoZUCczqP_EE-WAhMf1iiBks5s12pNgaJpZM4QbD94 .
Thank you for this. I was building with native architecture, x86_64, so I tried changing everything to i386 only (forgive me if I'm being stupid about this - I'm mostly a beginner), and got a long series of Apple Mach-O Linker (ld) Errors:
When I went back to native architecture, I was able to build again, but duplicating the app didn't help. I also reset launch services, but that didn't help either.
I won't ask you to waste your time on this, but if there's ever an update to the Xcode project file, I'll gladly give it a try. Thank you again!
A user who uses the name "kanjitalk755" at emaculation.com has made a patch that allows SheepShaver to build and run correctly in High Sierra under Xcode 8 (I haven't yet tried it in Xcode 9). (EDIT: It works in Xcode 9 also.) The patch (and a binary) are here:
http://fast-uploader.com/file/7066306862054/
I needed to click around on the page (using Chrome) before the patch downloaded, but it applied perfectly to current code, and the build worked perfectly. (EDIT: But see below on a full-screen-related problem.)
Is there any hope that the patch might be incorporated into macemu?
I have an Xcode project file in my branch, that works with Xcode 8. I've been planning on putting it into a pull request for a separate feature (an SDL2 backend), however that's still a bit of a ways off. I'd be happy to put that into a separate pull request, if anyone likes.
@asvitkine , does such a pull request, one with just an Xcode 8+9 compatible project file, sound ok to you?
Sounds good to me.
On Wed, Nov 15, 2017 at 1:07 PM, David Ludwig notifications@github.com wrote:
I have an Xcode project file in my branch, that works with Xcode 8. I've been planning on putting it into a pull request for a separate feature (an SDL2 backend), however that's still a bit of a ways off. I'd be happy to put that into a separate pull request, if anyone likes.
@asvitkine https://github.com/asvitkine , does such a pull request, one with just an Xcode 8+9 compatible project file, sound ok to you?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cebix/macemu/issues/143#issuecomment-344678581, or mute the thread https://github.com/notifications/unsubscribe-auth/AABE8PtEaaaU4wqNaZEv-UkLQTme7i3pks5s2yhkgaJpZM4QbD94 .
I'm adding this to this thread because I have no way of knowing whether this issue occurs on any platform other than High Sierra with the patch mentioned above:
When I switch to full-screen, the desktop goes blank, and stays blank if I switch back to windowed mode. I won't try to guess what's causing this, but I wonder if it occurs on other platforms?
EDIT: Actually, the SheepShaver desktop becomes visible again if you switch the focus away from SheepShaver and then back again. (This may be another reason to hope for SDL2 support someday...)
Another issue being discussed on https://www.emaculation.com/forum/viewtopic.php?f=20&t=9483&view=unread&sid=8d6f1a6ee800c6bda3e1740d82c644cb#unread -- we're getting stack/heap collision errors during boot or shortly after Finder load on the High Sierra build under Mac OS 7.5.5 and Mac OS 7.6.1. These errors do not exist on the Snow Leopard builds, even when running under High Sierra.
I have forked this repository and modified. 64-bit SheepShaver can be built and run on current macOS. I hope SheepShaver will survive after Apple discontinue 32-bit support.
https://github.com/kanjitalk755/macemu/
I stopped using the following features and implemented alternative methods.
JIT is not supported because it accesses zero page and/or kernel data direct rather than using access wrapper.
It have a bug yet: to set memory of guest OS greater than 256MB, it crushes.
Hello kanjitalk755,
Thank you for your fork. There is no Issues tab on your page, so I'll add another bug here (the same one reported above): When you switch between full-screen and windowed mode, the SheepShaver window is blank until you click in it, or use Alt-Tab, or something else that refreshes it. (The same bug is in the main branch.)
@emendelson , I am able to both build SheepShaver using Xcode 9.1, then run it, on High Sierra. I did so using the .sheepvm provided by https://jamesfriend.com.au/running-hypercard-stack-2014. This was done using an unmodified copy of the macemu sources, from https://github.com/cebix/macemu/commit/e07640979e08650157abd9f854b5ee0b747467e0 .
Might the error you're getting be some attribute of your SheepShaver setup?
@DavidLudwig, something is clearly wrong with my build setup. I'm able to build and run kanjitalk755's branch, but the current state of the main branch (and your fork with SDL2.Framework placed in the build directory so that the build can find it) gives the -10810 error.
My guess is that something is wrong with my build environment - I'm running High Sierra on a system that has been updated and messed with (incompetently) through three or four versions of OS X/macOS. I'm about to switch to a completely fresh High Sierra system, and will try again when I have everything running there. Meanwhile, there's no reason to waste anyone else's time on this - and thank you for letting me know that something's wrong here, and not wrong with the code.
@DavidLudwig - I can confirm that you are (as expected) entirely right. I was able to build a working copy of SheepShaver using the current code, exactly as you described, on my new High Sierra system. Thank you again for posting this. (Next step is to try your SDL2-based build...)
EDIT: And now I think I see where I went wrong. I clicked on the Xcode warning that said I should update the project settings to the current environment. I did this, and I think this is where everything went wrong and produced an executable that wouldn't start. That's a guess, but it seems right.
FYI, MacPorts now has an updated Portfile for sheepshaver that will install the 2017-12-15 version on all systems from Leopard to High Sierra.
'sudo port install sheepshaver' should do it for you. It is set up to install the 32bit version at present, as the 64bit version still seems too buggy.
Enjoy!
@kencu Excuse me I have question : do you know how to launch sheepshaver after installation from macports ? the install was successful, but I cannot find any executable...
The best method is to go into:
/Applications/MacPorts/SheepShaver
and run SheepShaverGUI.app
to set things up the way you want them. You can launch SheepShaver from that GUI, or, after you have it set up, you can just run SheepShaver.app
to run the emulator directly.
I also wrote up a short sheet of SheepShaver idiosyncracies that you might find helpful.
Woh ! such a fast and complete answer, thank you very much...
@kencu I just had to find all dependencies and to make my OS9 image read-only, and it's now installing ;) many thanks
I am now trying the MacPorts build of SheepShaver, in the vain attempt to get some audio :-/
Probably I'm making an elementary mistake, but when I build SheepShaver (using both Xcode 8.3.3 and Xcode (9.1) under High Sierra, the build is successful, but when I try to run the app, I get this error (from the "open" command):
LSOpenURLsWithRole() failed with error -10810 for the file /Emulators/SheepShaver/SheepShaver-TestHS.app.
The only advice I found online was that it might be worth using chmod +x on the executable; that didn't help.
Is there anything I need to know in order to build current code under current Xcode? I thought the problem might have to do with using 9.1, but the same thing happens with a build in 8.3.3.